Greater than question

steiny0831

New Member
Joined
Oct 18, 2013
Messages
34
I am trying to figure out the formula to show a value from one cell for the highest number in a column of cells.

For instance a2, a3 and a4 are all names. b2, b3 and b4 are all numbers associated to the names.
In b5 I would like the name from column a that has the highest number from column b.

Week 1
Dan174
Phil198
Steve168
Phil

<colgroup><col style="width: 100px"><col width="100"></colgroup><tbody>
</tbody>

So I would like Phil to show in b5 since Phil had the highest number for the week.
What formula would I put in b5 to have Phil show in b5?

Thank you for any help,
Jeff
 

Some videos you may like

Excel Facts

Which Excel functions can ignore hidden rows?
The SUBTOTAL and AGGREGATE functions ignore hidden rows. AGGREGATE can also exclude error cells and more.

steiny0831

New Member
Joined
Oct 18, 2013
Messages
34
Thank you, but for some reason if the highest number is in b2 it will not show correctly. In this case it showed Steve in b5 when I entered your formula.
When I messed around with the numbers if the highest number is in b3 or b4 then it shows correctly.
Only for some reason if highest number is in b2 it will not show correctly?
Maybe its a certain setting elsewhere causing this?
 

steiny0831

New Member
Joined
Oct 18, 2013
Messages
34
I should say it worked fine with your formula in my original sequence of numbers. Its when I switched around for testing that I found if b2 had the highest number it did not show.
 

NeonRedSharpie

Well-known Member
Joined
Jul 14, 2014
Messages
1,678

ADVERTISEMENT

Code:
=INDEX(A2:A4,MATCH(MAX(B2:B4),B2:B4,0))

I always forget the 0
 

liveinhope

Well-known Member
Joined
Dec 16, 2013
Messages
857
try =INDEX(A2:A4,MATCH(MAX(B2:B4),B2:B4,0))

note the extra argument ie the ,0 in the match function. This makes match find an exact match. without this match expects that the values in b2:b4 are sorted in ascending numeric order
 

Watch MrExcel Video

Forum statistics

Threads
1,109,523
Messages
5,529,334
Members
409,863
Latest member
stacy09
Top