Find Maximum Value for Each Name

addepallibabu

New Member
Joined
May 25, 2016
Messages
26
Hi,

I have the below table.


[TABLE="width: 128"]
<colgroup><col width="64" span="2" style="width:48pt"> </colgroup><tbody>[TR]
[TD="width: 64"][TABLE="width: 137"]
<colgroup><col><col></colgroup><tbody>[TR]
[TD]Name[/TD]
[TD]Number[/TD]
[/TR]
[TR]
[TD]AA[/TD]
[TD]1[/TD]
[/TR]
[TR]
[TD]AA[/TD]
[TD]2[/TD]
[/TR]
[TR]
[TD]AA[/TD]
[TD]3[/TD]
[/TR]
[TR]
[TD]AA[/TD]
[TD]4[/TD]
[/TR]
[TR]
[TD]AA[/TD]
[TD]5[/TD]
[/TR]
[TR]
[TD]BB[/TD]
[TD]1[/TD]
[/TR]
[TR]
[TD]BB[/TD]
[TD]2[/TD]
[/TR]
[TR]
[TD]BB[/TD]
[TD]3[/TD]
[/TR]
[TR]
[TD]BB[/TD]
[TD]4[/TD]
[/TR]
[TR]
[TD]BB[/TD]
[TD]5[/TD]
[/TR]
[TR]
[TD]CC[/TD]
[TD]1[/TD]
[/TR]
[TR]
[TD]CC[/TD]
[TD]2[/TD]
[/TR]
[TR]
[TD]CC[/TD]
[TD]3[/TD]
[/TR]
[TR]
[TD]CC[/TD]
[TD]4[/TD]
[/TR]
[TR]
[TD]CC[/TD]
[TD]5[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD="width: 64"][/TD]
[/TR]
</tbody>[/TABLE]


I want to find maximum value for each name. For example as shown below. Kindly help me someone.

[TABLE="width: 128"]
<colgroup><col width="64" span="2" style="width:48pt"> </colgroup><tbody>[TR]
[TD="width: 64"]Name[/TD]
[TD="width: 64"]Max Number[/TD]
[/TR]
[TR]
[TD]AA[/TD]
[TD="align: right"]5[/TD]
[/TR]
[TR]
[TD]BB[/TD]
[TD="align: right"]5[/TD]
[/TR]
[TR]
[TD]CC[/TD]
[TD="align: right"]5[/TD]
[/TR]
</tbody>[/TABLE]
 

Excel Facts

What does custom number format of ;;; mean?
Three semi-colons will hide the value in the cell. Although most people use white font instead.
Hi ,

Try this array formula , to be entered using CTRL SHIFT ENTER :

=MAX(IF(Sheet1!$A$2:$A$16 = Sheet2!A2, Sheet1!$B$2:$B$16))

Enter this in cell B2 in Sheet2 , and copy down.
 
Upvote 0
In E2 control+shift+enter, not just enter, and copy down:

=MAX(IF($A$2:$A$16=D2,$B$2:$B$16))

If you have MAXIFS, in D2 just enter and copy down:

=MAXIFS($B$2:$B$16,$A$2:$A$16,D2)
 
Upvote 0
Just another alternative:


Unknown
ABCDE
1NameNumberNameMax Number
2AA1AA5
3AA2BB5
4AA3CC5
5AA4
6AA5
7BB1
8BB2
9BB3
10BB4
11BB5
12CC1
13CC2
14CC3
15CC4
16CC5
Sheet5
Cell Formulas
RangeFormula
E2=AGGREGATE(14,6,$B$2:$B$16/($A$2:$A$16=D2),1)
 
Last edited:
Upvote 0

Forum statistics

Threads
1,223,214
Messages
6,170,772
Members
452,353
Latest member
strainu

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