Finding a text value

Copper Contributor

Hi guys,

This could be a simple solution for you experts, but I would be most happy if you could help me :) 

 

I need Excel to find the maximum value (in this case 6000) and return the text string in row 1 (i this case Lemons). See the attached file below.

 

Any help would be much appreciated!

Best regards

Eric

3 Replies

@saneri 

=INDEX(1:1,AGGREGATE(14,6,COLUMN(B2:G6)/(B2:G6=MAX(B2:G6)),1))

@Detlef Lewin thanks! I tried inserting the formula i my work sheet, but Excel won't accept it, Could you possibly attach the .xlsx file with your formula?

@saneri 

See attached file.