+ Reply to Thread
Results 1 to 3 of 3

Index/Match where data has duplicate values

  1. #1
    Registered User
    Join Date
    10-05-2012
    Location
    san diego ca
    MS-Off Ver
    2010
    Posts
    2

    Index/Match where data has duplicate values

    I want to find data in a sheet based on two criteria (like a dual vlookup): Dept # and Object code. When I use the Index with match the data coming into the summary sheet is puling in some intances and not others. And it is not always accurate. What is the best way to lookup two criteria on one sheet against a second sheet where there would be duplcates in either criteria. Thank you for any help.
    Attached Files Attached Files

  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
    52,946

    Re: Index/Match where data has duplicate values

    index/match works as follows...
    =index(range,match row,match column)

    in your formula
    =INDEX('Prelim Bud'!$U$2:$U$5627,MATCH($D$5,'Prelim Bud'!$C$2:$C$5627,0),MATCH(C6,'Prelim Bud'!$D$2:$D$5627,0))

    you are using 2 rows - MATCH($D$5,'Prelim Bud'!$C$2:$C$5627,0)
    and MATCH(C6,'Prelim Bud'!$D$2:$D$5627,0))

    see the attached. i added a helper column at E and concatenated C&D and then used a simple vlookup in column G to find what you were looking for.

    however, i think what you are trying to do is sum all instances of those combinations? if that is the case, then look at the sumifs() i used on sheet2 column H.

    let me knoe if this is what you were after?
    Attached Files Attached Files
    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
    Registered User
    Join Date
    10-05-2012
    Location
    san diego ca
    MS-Off Ver
    2010
    Posts
    2

    Re: Index/Match where data has duplicate values

    HI - thank you very much! I was trying to do the vlookup one - I spent seriously 4 hours messing with it. Thank you so much

+ 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