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
 

Excel Facts

Can Excel fill bagel flavors?
You can teach Excel a new custom list. Type the list in cells, File, Options, Advanced, Edit Custom Lists, Import, OK
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?
 
Upvote 0
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.
 
Upvote 0
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
 
Upvote 0

Forum statistics

Threads
1,214,642
Messages
6,120,701
Members
448,980
Latest member
CarlosWin

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top