find the 2nd max, 3rd and so on

ss

New Member
Joined
Aug 8, 2002
Messages
19
how do we find the 2nd maximum number from a list like we find the maximum with =max(a1:a12)
 

Excel Facts

Select all contiguous cells
Pressing Ctrl+* (asterisk) will select the "current region" - all contiguous cells in all directions.

Asala42

Well-known Member
Joined
Feb 26, 2002
Messages
2,318
Sounds like you want the LARGE and SMALL functions.

=LARGE(A2:A12,2) should kick out the 2nd largest value in that range.
 

ss

New Member
Joined
Aug 8, 2002
Messages
19
that is correct. Thanks

an extension of that question -
can we locate the max, 2nd max., 3rd max data from a reference datasheet for a few particular ids in a different sheet.
 

Asala42

Well-known Member
Joined
Feb 26, 2002
Messages
2,318
That complicates the formula a little but sure. For example here's an array formula:

{=LARGE(IF($B$2:$B$10=$D$2,$C$2:$C$10),2)}

Would give you the 2nd largest value in C2:C10 for only when the values in B2:B10 contains a value in D2.

(Hit Ctrl+Shift+Enter to get the brackets)
This message was edited by Asala42 on 2002-10-09 14:21
 

Yogi Anand

MrExcel MVP
Joined
Mar 12, 2002
Messages
11,454
Hi ss:

You can use the INdex and Match functions to locate the largest, the 2nd largest, and so on ... so to pick up from Asala42's work,

see the following worksheet simulation
y021009h1.xls
ABCDE
25Largest22inrow6
392ndLargest17inrow2
4173rdLargest16inrow7
511
63
722
86
92
1016
117
124
Sheet3
</SPAN>

Regards!

Yogi

Regards!
This message was edited by Yogi Anand on 2002-10-09 14:23
 

Forum statistics

Threads
1,144,127
Messages
5,722,634
Members
422,450
Latest member
Springbok

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