+ Reply to Thread
Results 1 to 5 of 5

Reverse Horizontal Lookup From A Vertical Code

  1. #1
    Registered User
    Join Date
    05-09-2012
    Location
    USA
    MS-Off Ver
    2019 16.0.13205.200000 64-bit
    Posts
    61

    Question Reverse Horizontal Lookup From A Vertical Code

    Guys, I need to do the following thing and I'm struggling with it a bit:
    - I have a list of codes (lookup is based on that)
    - For each code I need to find Top 5 largest values
    - Display each value (top 5)
    - Display a name (column name) matching to that value

    Lookup needs to be reverse, since it's always going to be done bottom (value) up (heading).


    See example attached. Any ideas would be much, much appreciated!
    Attached Files Attached Files
    Last edited by splendidus; 05-29-2012 at 04:45 AM.
    Office 2019 16.0.13205.200000 64-bit

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

    Re: Reverse Horizontal Lookup From A Vertical Code

    See attached workbook. Essentially, I've copied down your list of codes to A17 (though these could be in a different sheet if you wanted), and put 1, 2, 3, 4 and 5 in B16, D16, F16 etc. Then this formula is in B17:

    =LARGE($B3:$O3,B$16)

    and this one in C17:

    =INDEX($B$2:$O$2,MATCH(B17,$B3:$O3,0))

    This pair of formulae is then copied to columns D, F, H and J on row 17, and then B17 to K17 are copied down.

    Hope this helps.

    Pete
    Attached Files Attached Files

  3. #3
    Valued Forum Contributor
    Join Date
    04-30-2012
    Location
    Australia
    MS-Off Ver
    Excel 2010
    Posts
    547

    Re: Reverse Horizontal Lookup From A Vertical Code

    see attached

    Enter the code into the yellow cell and the names and values will populate with the top five for that code.
    Attached Files Attached Files

  4. #4
    Forum Guru (RIP) Marcol's Avatar
    Join Date
    12-23-2009
    Location
    Fife, Scotland
    MS-Off Ver
    Excel '97 & 2003/7
    Posts
    7,216

    Re: Reverse Horizontal Lookup From A Vertical Code

    Try this ...
    In Q3
    Please Login or Register  to view this content.
    In R3
    Please Login or Register  to view this content.
    In S3
    Please Login or Register  to view this content.
    In T3
    Please Login or Register  to view this content.
    Drag/Fill all Down
    Attached Files Attached Files
    If you need any more information, please feel free to ask.

    However,If this takes care of your needs, please select Thread Tools from menu above and set this topic to SOLVED. It helps everybody! ....

    Also
    اس کی مدد کرتا ہے اگر
    شکریہ کہنے کے لئے سٹار کلک کریں
    If you are satisfied by any members response to your problem please consider using the small Star icon bottom left of their post to show your appreciation.

  5. #5
    Registered User
    Join Date
    05-09-2012
    Location
    USA
    MS-Off Ver
    2019 16.0.13205.200000 64-bit
    Posts
    61

    Re: Reverse Horizontal Lookup From A Vertical Code

    Quote Originally Posted by npamcpp View Post
    see attached

    Enter the code into the yellow cell and the names and values will populate with the top five for that code.
    Guys, thank you all SO, SO much! npamcpp's solution fit my purpose best, because it combined everything into 1 formula (one for value lookup, and one where both value lookup and then name lookup were used) without touching source data. But I very, very much appreciate you taking the time out of your date to help! Thanks a million! :D

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

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