+ Reply to Thread
Results 1 to 6 of 6

Vlookup Help - multiple column id's

Hybrid View

  1. #1
    Registered User
    Join Date
    08-30-2005
    Posts
    6

    Vlookup Help - multiple column id's

    i am using vlookup in an invoice situation

    i have my products columns set up as - sku / description / price

    i use the sku to pull over the description and price to the invoice

    i would like to add another column which would be an alternate sku number
    and then on the invoice - we could enter either the sku number or alt sku number and have them bring over the info

    here is the formula i am using now with just the one sku column

    =IF(ISBLANK(B11),"",VLOOKUP(B11,Products,3,FALSE))

    Thanks fr any help and or suggestions

  2. #2
    Forum Moderator davesexcel's Avatar
    Join Date
    02-19-2006
    Location
    Regina
    MS-Off Ver
    MS 365
    Posts
    13,523

    Re: Vlookup Help - multiple column id's

    Change the 3 to a 4 in your formula?

  3. #3
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Vlookup Help - multiple column id's

    Possibly something like:

    =IF(ISBLANK(B11),"",IF(ISNA(VLOOKUP(B11,Products,3,FALSE)),VLOOKUP(B11,Products2,2,FALSE),VLOOKUP(B11,Products,3,FALSE)))

    where Products2 is the name of the alternate table starting with the alternate sku in left most column.
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  4. #4
    Registered User
    Join Date
    08-30-2005
    Posts
    6

    Re: Vlookup Help - multiple column id's

    Thanks for the quick replies - but i am getting an error - so bear with me

    my products range now consists of

    sku / alt sku / description / price

    what would this do to the formula?

  5. #5
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Vlookup Help - multiple column id's

    Say that table is in d2:G100, then

    =IF(ISBLANK(B11),"",IF(ISNA(VLOOKUP(B11,$D$2:$G$100,4,FALSE)),VLOOKUP(B11,$E$2:$G$100,3,FALSE),VLOOKUP(B11,$D$2:$G$100,4,FALSE)))


    So if it doesn't find it by looking up the B11 sku in D2:D100, the it looks in E2:E100, and it will pull the Price from appropriate column.

    Adjust ranges to suit or to match your named ranges.

  6. #6
    Registered User
    Join Date
    08-30-2005
    Posts
    6

    Re: Vlookup Help - multiple column id's

    Got it - works perfectly - Thanks!

+ 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