+ Reply to Thread
Results 1 to 5 of 5

INDEX / MATCH / VLOOKUP - returning values from worksheets based upon matching cells

  1. #1
    Registered User
    Join Date
    02-18-2009
    Location
    Lancashire, England
    MS-Off Ver
    Excel 2003
    Posts
    21

    INDEX / MATCH / VLOOKUP - returning values from worksheets based upon matching cells

    Morning all

    Wonder if you can help with this, it's similar to something I've done before (got the solution from here) but doesnt seem to work with this data.

    See the attached file (TEST.xls) I am looking match the "PO Number" from sheet 1 with the "Cust Ref" from sheet 2. If there is a match, I would like to populate sheet 5 with the appropriate "Req-Ref" from sheet 2

    Hope this makes sense, thanks in advance

    Phil
    Attached Files Attached Files

  2. #2
    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: INDEX / MATCH / VLOOKUP - returning values from worksheets based upon matching cells

    Hi

    in Sheet5! B2, try this.

    =IFERROR(INDEX('2'!$B$2:$B$20,MATCH('1'!D2,'2'!$C$2:$C$20,0)),"")


    Is this works for you?
    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.

  3. #3
    Registered User
    Join Date
    02-18-2009
    Location
    Lancashire, England
    MS-Off Ver
    Excel 2003
    Posts
    21

    Re: INDEX / MATCH / VLOOKUP - returning values from worksheets based upon matching cells

    perfect! thanks a lot

  4. #4
    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: INDEX / MATCH / VLOOKUP - returning values from worksheets based upon matching cells

    You are welcome!

  5. #5
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,704

    Re: INDEX / MATCH / VLOOKUP - returning values from worksheets based upon matching cells

    The attached file shows how this can be done. I've put this formula in G2 of sheet 1:

    =IF(ISNA(MATCH(D2,'2'!C:C,0)),"",MAX(G$1:G1)+1)

    and when this is copied down it gives a sequence where matches are found in column C of sheet 2. This formula is in A2 of Sheet5:

    =IFERROR(INDEX('1'!D:D,MATCH(ROWS(A$1:A1),'1'!G:G,0)),"")

    and lists the matching PO numbers all bunched up. This one in B2:

    =IF($A2="","",INDEX('2'!B:B,MATCH($A2,'2'!C:C,0)))

    then gives you the corresponding data from sheet 2. I've copied both these down to row 20, though you could copy them further if you need to.

    Hope this helps.

    Pete
    Attached Files Attached Files

+ 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