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

How to calculate loan payments in Excel?
Use the PMT function: =PMT(5%/12,60,-25000) is for a $25,000 loan, 5% annual interest, 60 month loan.

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
 
Master Excel Bundle

Excel contains over 450 functions, with more added every year. That’s a huge number, so where should you start? Right here with this bundle.

Forum statistics

Threads
1,164,629
Messages
5,838,454
Members
430,549
Latest member
jayjay2022

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
Top