excel - Find Largest Value in one cell and then display a different cell in the same row -
this difficult question put words example data , attempt help
i have following
apple 17 1 0 0 0 0 0 0 0 0 0 0 orange 14 1 15 1 6.67 1 6.67 1 6.67 2 13.33 10 banana 15 3 5 0 0 0 0 0 0 0 0 1 cherry 13 1 12 2 16.67 2 16.67 2 16.67 2 16.67 2 peach 16 4 12 1 8.33 1 8.33 2 16.67 2 16.67 8 strawberry 12 5 6 1 16.67 1 16.67 1 16.67 1 16.67 7
i trying find max value in m , display same row. in example max value 10 , "orange" should displayed.
it should noted using 2 sheets, "data" has output , "raw data" has... raw data
=vlookup(max('raw data'!m1:m6), a1:m6, 1, false)
this produces #n/a , think might have data either not being formatted table (though doing seems fail different error) or running 1 sheet other.
any input appreciated
vlookup requires value find in first column.
use index/match:
=index(a1:a6,match(max(m1:m6),m1:m6,0))
Comments
Post a Comment