+ Reply to Thread
Results 1 to 10 of 10

Index Match challenge in F18

  1. #1
    Forum Contributor
    Join Date
    08-30-2015
    Location
    Tresfjord, Norway
    MS-Off Ver
    365
    Posts
    169

    Index Match challenge in F18

    Hi ...

    How do I pick out the largest number i the array B2:I9, and in return get the corresponding name in A2:A9, and month from column title?
    I have tried with Index;Match with multiple criteria, Rank, Large, countif and countifs, but I can't seem to get it to work.
    Index;Match with one column works fine, but when I want to index the whole arry, I get an #N/A

    How can this be done?

    Any answer is much appreciated.
    Attached Files Attached Files

  2. #2
    Forum Expert 63falcondude's Avatar
    Join Date
    08-22-2016
    Location
    USA
    MS-Off Ver
    365
    Posts
    6,266

    Re: Index Match challenge in F18

    Edit: Removed.

  3. #3
    Forum Expert 63falcondude's Avatar
    Join Date
    08-22-2016
    Location
    USA
    MS-Off Ver
    365
    Posts
    6,266

    Re: Index Match challenge in F18

    =INDEX(A:A,AGGREGATE(14,6,ROW(B2:L9)/(B2:L9=F18),1)) will give you the name.

    =INDEX(1:1,AGGREGATE(14,6,COLUMN(B2:L9)/(B2:L9=F18),1)) will give you the month.

    These are for the largest number.
    Change 14 to 15 and F18 to F20 to get the results for the smallest.
    Last edited by 63falcondude; 10-10-2019 at 03:46 PM.

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

    Re: Index Match challenge in F18

    This array* formula will return the name of the person with the largest number in the range B2:L9:

    =INDEX(A:A,MIN(IF($B$2:$L$9=LARGE($B$2:$L$9,1),ROW($B$2:$B$9))))

    and this one will return the month:

    =INDEX(1:1,MIN(IF($B$2:$L$9=LARGE($B$2:$L$9,1),COLUMN($B$1:$L$1))))

    *NOTE that as both of these are array formulae, they need to be committed using the key combination of Ctrl-Shift-Enter (CSE), rather than the usual Enter.

    You can, of course, use MAX instead of the LARGE function.

    Hope this helps.

    Pete

  5. #5
    Forum Contributor
    Join Date
    08-30-2015
    Location
    Tresfjord, Norway
    MS-Off Ver
    365
    Posts
    169

    Re: Index Match challenge in F18

    63falcondude had the beste solution, because there was no need to pin point out a certain column first.
    Hereby implemented.
    AGGREGATE ... seems like av versatile function. Learning every day now!



    Thanks for the tips, folks.

  6. #6
    Forum Contributor
    Join Date
    08-30-2015
    Location
    Tresfjord, Norway
    MS-Off Ver
    365
    Posts
    169

    Re: Index Match challenge in F18

    Funny thing though ...
    In "Superheros Trust Index.xlsx" both suggestions works fine, but in the workbook I'm working with I get a #REF?!?!
    CSE was used. Didn't fix it.

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

    Re: Index Match challenge in F18

    A #REF error indicates that the cell or range references are not valid, so check these out in the formulae.

    Hope this helps.

    Pete

  8. #8
    Forum Contributor
    Join Date
    08-30-2015
    Location
    Tresfjord, Norway
    MS-Off Ver
    365
    Posts
    169

    Re: Index Match challenge in F18

    Isn't this correct, huh?
    Or am I blind?
    Attachment 644798

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

    Re: Index Match challenge in F18

    The attachment is invalid. Don't try to use the Paperclip icon, as it doesn't work on this forum - instead, you should use Go Advanced then scroll down and click on Manage Attachments, then follow the onscreen prompts.

    Hope this helps.

    Pete

  10. #10
    Forum Contributor
    Join Date
    08-30-2015
    Location
    Tresfjord, Norway
    MS-Off Ver
    365
    Posts
    169

    Re: Index Match challenge in F18

    ahh ...

    Here it is ...
    Attached Images Attached Images

+ 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. Challenge: creating Herfindahl index for patent concentration
    By Terence Bongolo in forum Excel General
    Replies: 10
    Last Post: 12-15-2017, 12:59 PM
  2. [SOLVED] Challenge with the Index formula
    By I.am.Rustam in forum Excel General
    Replies: 14
    Last Post: 12-10-2015, 06:21 PM
  3. Replies: 6
    Last Post: 04-30-2014, 02:42 AM
  4. Replies: 6
    Last Post: 11-08-2013, 10:29 PM
  5. [SOLVED] Index() Match() V/HLookup??? CHUGE Challenge! Up for it!? Need HELP!
    By BenCrockett in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 10-14-2013, 05:47 PM
  6. Table index challenge
    By Saturn in forum Excel General
    Replies: 3
    Last Post: 07-06-2012, 09:20 AM
  7. MATCH FUNCTION?...challenge
    By cecilluen in forum Excel Formulas & Functions
    Replies: 25
    Last Post: 09-06-2005, 12: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