+ Reply to Thread
Results 1 to 8 of 8

Vlookup help!

  1. #1
    Registered User
    Join Date
    12-08-2010
    Location
    San Antonio, TX
    MS-Off Ver
    Excel 2010
    Posts
    15

    Unhappy Vlookup help!

    I need help, I am not even sure there is a way t do what I need. The following is a formula I already have working, however, I need to add one more thing to it. The cell it references has more information then I need in it and I just want to return the first word in th cell. In this case it is the vendor name. The isna is to keep the #NA from showing. Can anyone help? Excel 2003

    IF(ISNA(VLOOKUP(B$2:B$22,'PURCHASE ORDERS'!A$2:L$207,12,FALSE)) = TRUE, " ", VLOOKUP(B$2:B$22,'PURCHASE ORDERS'!A$2:L$207,12,FALSE))

    Cat

    The following is how my formula looks now and it works, thank you for your help!
    =IF(ISNA(VLOOKUP(B$2:B$52,'PURCHASE ORDERS'!A$2:L$207,12,FALSE)),"",LEFT(VLOOKUP(B$2:B$52,'PURCHASE ORDERS'!A$2:L$207,12,FALSE),FIND(" ",VLOOKUP(B$2:B$52,'PURCHASE ORDERS'!A$2:L$207,12,FALSE))-1))
    Last edited by Catdumana; 12-09-2010 at 10:32 AM.

  2. #2
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,446

    Re: Vlookup help!

    A simplified example:

    =IF(ISNA(VLOOKUP(A2,H2:J15,2,FALSE)),"",LEFT(VLOOKUP(A2,H2:J15,2,FALSE),FIND(" ",VLOOKUP(A2,H2:J15,2,FALSE))-1))

    Note: you don't need the "=TRUE"

    Regards
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  3. #3
    Registered User
    Join Date
    12-08-2010
    Location
    San Antonio, TX
    MS-Off Ver
    Excel 2010
    Posts
    15

    Smile Re: Vlookup help!

    Thank You for your help, with a little tweaking (=IF(ISNA(VLOOKUP(B$2:B$52,'PURCHASE ORDERS'!A$2:L$207,12,FALSE)),"",LEFT(VLOOKUP(B$2:B$52,'PURCHASE ORDERS'!A$2:L$207,12,FALSE),FIND(" ",VLOOKUP(B$2:B$52,'PURCHASE ORDERS'!A$2:L$207,12,FALSE))-1))) I got it to work in my worksheet.

    Cat

  4. #4
    Registered User
    Join Date
    12-08-2010
    Location
    San Antonio, TX
    MS-Off Ver
    Excel 2010
    Posts
    15

    Re: Vlookup help!

    You are welcome and I did learn quite a bit that way. The reason I had true in there is because of the example I found when trying to figure out how to keep the #NA from showing. As for the range, this is how I was taught to do it way back when. I have a work book that has many sheets in it. One sheet is my part master which is used to populate my on hand and on order columns, then I have a purchase order sheet that populates the PO number and now the vendor that PO is issued to. The rest are my bills of material. So if I got you right I only need the cell it needs to look for even if it is looking on another worksheet for it?

    Cat

  5. #5
    Registered User
    Join Date
    12-08-2010
    Location
    San Antonio, TX
    MS-Off Ver
    Excel 2010
    Posts
    15

    Re: Vlookup help!

    So I took out the range and just put in the cell and wa la it works, once again thanx I learned something new!

    Cat

  6. #6
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,446

    Re: Vlookup help!

    Yep, ...

    VLOOKUP(B$2,'PURCHASE ORDERS'!A$2:L$207,12,FALSE)

    should do it. Give it a try.

    Regards

  7. #7
    Registered User
    Join Date
    12-08-2010
    Location
    San Antonio, TX
    MS-Off Ver
    Excel 2010
    Posts
    15

    Re: Vlookup help!

    I did and it worked, still fixing them! I have a lot of worksheets in this one. I tried to upload it so you could see it but even zipped it would not go.

    Thanx again Cat

  8. #8
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,446

    Re: Vlookup help!

    You're welcome.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1