+ Reply to Thread
Results 1 to 7 of 7

REVERSE VLOOKUP or DYNAMIC INDEX MATCH

  1. #1
    Registered User
    Join Date
    12-15-2019
    Location
    new york
    MS-Off Ver
    2016
    Posts
    26

    REVERSE VLOOKUP or DYNAMIC INDEX MATCH

    Trying to figure out how to look for a country name given the number in a range of data. Have attached a file to be more clear.

    Not sure if a combination of index match can do the trick, have been unable to figure it out.

    The highlighted cell in yellow is the output I am trying to get.
    Attached Files Attached Files

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

    Re: REVERSE VLOOKUP or DYNAMIC INDEX MATCH

    You can use this array* formula in cell N11:

    =INDEX(INDEX($H$5:$I$9,0,MATCH($N$5,$H$4:$I$4,0)),MATCH(1,($E$5:$E$9=$N$6)*($G$5:$G$9=$N$8),0))

    and this array* formula in cell N12:

    =INDEX($F$5:$F$9,MATCH(1,($E$5:$E$9=$N$6)*($G$5:$G$9=$N$8),0))

    *Note that an array formula needs to be confirmed using the key combination of Ctrl-Shift-Enter (CSE), rather than the usual Enter.

    Hope this helps.

    Pete

  3. #3
    Registered User
    Join Date
    12-15-2019
    Location
    new york
    MS-Off Ver
    2016
    Posts
    26

    Re: REVERSE VLOOKUP or DYNAMIC INDEX MATCH

    When I change the rank (to the second largest), it should say Germany. I want it to be dynamic so that it matches the number of the output if possible.

    So, in this case: Given the number is 4 and the destination is US, give me the origin.

    Does that make sense? Thanks

  4. #4
    Valued Forum Contributor
    Join Date
    07-14-2017
    Location
    Poland
    MS-Off Ver
    Office 2010
    Posts
    528

    Re: REVERSE VLOOKUP or DYNAMIC INDEX MATCH

    Test my array formula in 'N12'
    HTML Code: 
    Best Regards,
    Maras.

  5. #5
    Registered User
    Join Date
    12-15-2019
    Location
    new york
    MS-Off Ver
    2016
    Posts
    26

    Re: REVERSE VLOOKUP or DYNAMIC INDEX MATCH

    This is almost perfect! It does not work when i change the code from 1 to 2.

    Let's say I have year 2018, code 2, rank 1, destination US.

    If i have those, the origin should say germany, but it says US.

    Is there a way to change it?

  6. #6
    Registered User
    Join Date
    12-15-2019
    Location
    new york
    MS-Off Ver
    2016
    Posts
    26

    Re: REVERSE VLOOKUP or DYNAMIC INDEX MATCH

    There is a way I figure how to do it, but it is not dynamic for years.

    Is there a way to change this formula to change it so it is dynamic?

    =INDEX(F5:I9,MATCH(N11,H5:H9,FALSE),1)

  7. #7
    Valued Forum Contributor
    Join Date
    07-14-2017
    Location
    Poland
    MS-Off Ver
    Office 2010
    Posts
    528

    Re: REVERSE VLOOKUP or DYNAMIC INDEX MATCH

    I used two helper columns (yellow color).
    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)

Similar Threads

  1. dynamic, double vlookup, match, index, dget?? different workbooks
    By Leslie in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 10:05 AM
  2. dynamic, double vlookup, match, index, dget?? different workbooks
    By Bernie Deitrick in forum Excel Formulas & Functions
    Replies: 33
    Last Post: 09-06-2005, 07:05 AM
  3. [SOLVED] dynamic, double vlookup, match, index, dget?? different workbooks
    By Bernie Deitrick in forum Excel Formulas & Functions
    Replies: 22
    Last Post: 09-06-2005, 06:05 AM
  4. dynamic, double vlookup, match, index, dget?? different workbooks
    By Leslie in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 03:05 AM
  5. dynamic, double vlookup, match, index, dget?? different workbooks
    By Leslie in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 01:05 AM
  6. [SOLVED] dynamic, double vlookup, match, index, dget?? different workbooks
    By Leslie in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 12:05 AM
  7. dynamic, double vlookup, match, index, dget?? different workbooks
    By Leslie in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-05-2005, 11:05 PM
  8. dynamic, double vlookup, match, index, dget?? different workbooks
    By Leslie in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-05-2005, 10:05 PM

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