+ Reply to Thread
Results 1 to 5 of 5

vlookup with 2nd column criteria match

Hybrid View

  1. #1
    Registered User
    Join Date
    01-11-2013
    Location
    AUS
    MS-Off Ver
    Excel 2007
    Posts
    5

    vlookup with 2nd column criteria match

    Good Afternoon,

    Struggling with the corner way, or anyway for that matter, of implementing the below situation.

    On one tab I have invoiced data in a table "SalesData" with a couple columns for customer, sku, date, rev, etc. On a second tab I have information relating to the skus (table "SKU_INFO") with classification information, but the SKU is repeated for each type of classification, ie

    SKU Classification Attribute
    123 Size large
    123 color blue
    123 style 454624
    125 Size small
    125 color yellow
    125 style 333424

    On the salesdata table I want to add a vlookup/if (?) combo that will lookup the color only for the sold sku, so I would need a vlookup on sku where classification equals "color". Is this possible?

    Thanks

  2. #2
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    53,048

    Re: vlookup with 2nd column criteria match

    Hi and welcome to the forum

    Hard to say without seeing some sample data, but my (blind) suggestion would be to add a helper column on sheet1 (?) to combine the SKU and "color", then do the vlookup based on that? If the helper is to the right of the rest of the data, you will need to use index/match, not vlookup
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  3. #3
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: vlookup with 2nd column criteria match

    Looks to me that YES. Is possible. Pls upload a small sample workbook
    Regards

    Fotis.

    -This is my Greek whisper to Europe.

    --Remember, saying thanks only takes a second or two. Click the little star * below, to give some Rep if you think an answer deserves it.

    Advanced Excel Techniques: http://excelxor.com/

    --KISS(Keep it simple Stupid)

    --Bring them back.

    ---See about Acropolis of Athens.

    --Visit Greece.

  4. #4
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    53,048

    Re: vlookup with 2nd column criteria match

    To attach a file to your post,
    click advanced (next to quick post),
    scroll down until you see "manage file",
    click that and select "add files" (top right corner).
    click "select files" find your file, click "open" click "upload" click 'done" bottom right. click "submit reply"

    Once the upload is completed the file name will appear below the input boxes in this window.
    You can then close the window to return to the new post screen.

  5. #5
    Registered User
    Join Date
    01-11-2013
    Location
    AUS
    MS-Off Ver
    Excel 2007
    Posts
    5

    Re: vlookup with 2nd column criteria match

    Thanks for the welcome and quick replies.

    FDibbins - I like the idea of joining SKU with attribute color and then doing a vlookup based on that value. I have that as
    =VLOOKUP([@SKU]&"Color",SKU_INFO[[Column2]:[Column1]],2,FALSE) and it works fine. Thanks. Is this the quickest and more efficient formula as my SKU list will be approx 60,000 lines and the sales data approx 120,000.

    Sample data attached. sample.xlsx

+ 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