Search code examples
excelindexingmaxmatchtextjoin

How To Find The Highest Value And Return The Two First Adjacent Cell Value In Excel?


I would like to have the two first value but I have two exact same highest value like my highest value is 20 and two-person have 20 so Excel return me the first person but not the second and I would like to have the second with. My formula is that :

French one: =INDEX(D3:D14;EQUIV(MAX(H3:H14);(H3:H14);0))
English one: =INDEX(D3:D14;MATCH(MAX(H3:H14);(H3:H14);0))

It returns me for example "John" and I want it to return me "John Alison" because John and Alison both have 20 as highest value Thank you very much


Solution

  • If your Excel version supports the newer function use this array formula.

    =TEXTJOIN(CHAR(32), TRUE, IF(H3:H14=MAX(H3:H14), D3:D14, ""))
    

    If your Excel version does not support the newer function then click on the tag for suggestions on alternatives.

    enter image description here