Find Maximum Value for Each Name

addepallibabu

New Member
Joined
May 25, 2016
Messages
26
Hi,

I have the below table.


NameNumber
AA1
AA2
AA3
AA4
AA5
BB1
BB2
BB3
BB4
BB5
CC1
CC2
CC3
CC4
CC5

<colgroup><col><col></colgroup><tbody>
</tbody>

<colgroup><col width="64" span="2" style="width:48pt"> </colgroup><tbody>
</tbody>


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

NameMax Number
AA5
BB5
CC5

<colgroup><col width="64" span="2" style="width:48pt"> </colgroup><tbody>
</tbody>
 

Excel Facts

Control Word Wrap
Press Alt+Enter to move to a new row in a cell. Lets you control where the words wrap.
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,215,463
Messages
6,124,965
Members
449,201
Latest member
Jamil ahmed

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