Max Value IF

AK_Excel_13

New Member
Joined
Jul 11, 2014
Messages
30
I have a list of 200 names. Each name is shown ten times. This makes my spreadsheet have 2,001 rows of data.
In the columns I have Name, Score, and Max Score. Max Score is empty.
If Joe has scores of 7,4,6,3,8,5,3,2,7, and 4 then the Max Score for him should be 8 (as that is his highest score).
If Steve has scores of 6,3,7,6,5,9,2,4,3, and 3 then the Max Score for him should be 9 (as that is his highest score).

How do I do this for all 200 names?
 

Excel Facts

Test for Multiple Conditions in IF?
Use AND(test, test, test, test) or OR(test, test, test, ...) as the logical_test argument of IF.
Try this, entered into cell C2 and copied down:

=MAX(IF($A$2:$A$2001=A2,$B$2:$B$2001))

Enter with CTRL+SHTF+ENTR, not just enter.
 
Upvote 0
Try this entered with Ctrl, Shift & Enter

=MAX(IF($A$2:$A$2001=A2,$B$2:$B$2001))
 
Upvote 0
This also seems to work:

=SUMPRODUCT(MAX((A$2:A$2001=A2)*B$2:B$2001))

It is arguably a superior formula as it can be entered normally and probably calculates slightly faster.
 
Last edited:
Upvote 0

Forum statistics

Threads
1,213,536
Messages
6,114,202
Members
448,554
Latest member
Gleisner2

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