+ Reply to Thread
Results 1 to 5 of 5

Index Max Match formula returning wrong value

  1. #1
    Registered User
    Join Date
    03-25-2009
    Location
    Minneapolis, MN
    MS-Off Ver
    Excel 2010
    Posts
    12

    Index Max Match formula returning wrong value

    I have searched the forums and found some discussion on this topic. Unfortunately I haven't found an answer that has worked yet.

    I am trying to write a formula that would return the most common text value. Named range is ServiceLevel - formula is below

    =INDEX(Servicelevel,MAX(MATCH(Servicelevel,Servicelevel,0)))

    The value returned is actually the 2nd most common value in the range. I received this same incorrect using an array formula and without the named range.

    Any help would be appreciated. Thanks!

  2. #2
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Essex, UK
    MS-Off Ver
    O365
    Posts
    21,529

    Re: Index Max Match formula returning wrong value

    If you have no blanks in the range you could change MAX to MODE

  3. #3
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,902

    Re: Index Max Match formula returning wrong value

    Can you post an example showing what you want
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  4. #4
    Registered User
    Join Date
    03-25-2009
    Location
    Minneapolis, MN
    MS-Off Ver
    Excel 2010
    Posts
    12

    Re: Index Max Match formula returning wrong value

    I did have blank cells in my named range as I had it as E:E. I changed it to MODE and then gave the named range some row references to exclude the empty cells and it worked. Thanks so much for the help!

  5. #5
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Essex, UK
    MS-Off Ver
    O365
    Posts
    21,529

    Re: Index Max Match formula returning wrong value

    You could permit blanks in the range & discount but you would need to then use a CSE array - and you could not use entire column references if running preXL07, eg:

    =INDEX(servicelevel,MODE(IF(servicelevel<>"",MATCH(servicelevel,servicelevel,0))))
    committed with CTRL + SHIFT + ENTER
    but servicelevel could not be entire column

    It may be worth thinking about employing a Dynamic Named Range: http://www.contextures.com/xlNames01.html

+ 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