+ Reply to Thread
Results 1 to 8 of 8

how to multiple vlookup from input sheet to output sheet

  1. #1
    Forum Contributor
    Join Date
    06-08-2012
    Location
    BD
    MS-Off Ver
    Microsoft Office 2016
    Posts
    633

    how to multiple vlookup from input sheet to output sheet

    Dear all, i have two sheet , input and output.need vlookup formula match any three cell data of input sheet , then result to output sheet
    if match then. input sheet is like bellow

    Roll-1 Roll-2 Roll-3 Name Father's Name Mother's Nmae Contact
    2010-6-1 2011-7-2 2012-8-3 Nur Razzak Mojinur 01678102069

    output sheet results like bellow

    VLOOKUP(A2,input!A:G,4,0) if A2=2010-6-1 then output result will be Nur
    or
    VLOOKUP(A2,input!A:G,4,0) if A2=2011-7-2 then output result will be Nur
    or
    VLOOKUP(A2,input!A:G,4,0) if A2=2012-8-3 then output result will be Nur


    BR/nur
    Attached Files Attached Files
    Last edited by nur2544; 11-21-2012 at 01:53 AM.

  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,926

    Re: how to multiple vlookup from input sheet to output sheet

    try this, copied down and across...
    =INDEX(input!$A$1:$G$4, IF(ISERROR(MATCH(input!$A16,input!$A$1:$A$4,0)), IF(ISERROR(MATCH(input!$A16,input!$B$1:$B$4,0)), MATCH(input!$A16,input!$C$1:$C$4,0),MATCH(input!$A16,input!$B$1:$B$4,0)),MATCH(input!$A16,input!$A$1:$A$4,0)),MATCH(B$1,input!$A$1:$G$1,0))
    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 Contributor
    Join Date
    06-08-2012
    Location
    BD
    MS-Off Ver
    Microsoft Office 2016
    Posts
    633

    Re: how to multiple vlookup from input sheet to output sheet

    Hi FDibbins,
    I implemented your formula but result shows #N/A. please attached an example Excel sheet as I have already attached, it will help for me. Br/ nur

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

    Re: how to multiple vlookup from input sheet to output sheet

    sorry, i was referencing the wrong cell due to a copy mistake, change the formula to this...
    =INDEX(input!$A$1:$G$4, IF(ISERROR(MATCH(output!$A2,input!$A$1:$A$4,0)), IF(ISERROR(MATCH(output!$A2,input!$B$1:$B$4,0)), MATCH(output!$A2,input!$C$1:$C$4,0),MATCH(output!$A2,input!$B$1:$B$4,0)),MATCH(output!$A2,input!$A$1:$A$4,0)),MATCH(B$1,input!$A$1:$G$1,0))

  5. #5
    Forum Contributor
    Join Date
    06-08-2012
    Location
    BD
    MS-Off Ver
    Microsoft Office 2016
    Posts
    633

    Re: how to multiple vlookup from input sheet to output sheet

    Hi,FDibbins
    You did outstanding job for me. yes It is ! what i was looking for ! I appreciate your job..Br/nur
    Last edited by nur2544; 11-21-2012 at 01:55 AM.

  6. #6
    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,926

    Re: how to multiple vlookup from input sheet to output sheet

    you'r welcome. If this answered your question, please take a moment to mark the thread as "solved" - it helps keep things neat and tidy lol, and consider adding the reputation to those that helped (see points 2 & 3 below)

  7. #7
    Banned User!
    Join Date
    10-14-2006
    Posts
    1,211

    Re: how to multiple vlookup from input sheet to output sheet

    Shorter / Elegant Version:

    Output B2: =INDEX(input!D$2:D$4,MAX(INDEX((input!$A$2:$C$4=$A2)*ROW(input!$A$2:$C$4)-1,)))

    Copy across and down
    Last edited by Teethless mama; 11-21-2012 at 12:51 AM.

  8. #8
    Forum Contributor
    Join Date
    06-08-2012
    Location
    BD
    MS-Off Ver
    Microsoft Office 2016
    Posts
    633

    Re: how to multiple vlookup from input sheet to output sheet

    Hi, Teethless mama
    Its very well appreciated..
    Last edited by nur2544; 11-21-2012 at 01:56 AM.

+ 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