Find second highest value, return different column value

ste33uka

Active Member
Joined
Jan 31, 2020
Messages
471
Office Version
  1. 365
Platform
  1. Windows
Hi would anyone have a formula that would find the second highest value and return different column.
So as in example would give answer apple.

Book1
ABCDE
1
2
3
41PEAR
55ORANGE
63APPLE
74PEAR
812ORANGE
96APPLE
1011APPLE
115PEAR
12
13
14
Sheet1
 

Excel Facts

Last used cell?
Press Ctrl+End to move to what Excel thinks is the last used cell.
How about
Excel Formula:
=INDEX(E4:E11,MATCH(LARGE(A4:A11,2),A4:A11,0))
 
Upvote 0
How about
Excel Formula:
=INDEX(E4:E11,MATCH(LARGE(A4:A11,2),A4:A11,0))

Thanks, is there a method possible with duplicate ?
So as in example the 2nd and 3rd highest value would return pear and apple in any order ? instead or just pear .

Book1
ABCDEFGHI
1
2
3
41PEAR1st highestbananna
52ORANGE2nd highestpear
63APPLE3rd highestpear
74PEAR4th highestORANGE
85ORANGE
97pear
107APPLE
118bananna
12
13
14
15
16
Sheet1
Cell Formulas
RangeFormula
H4H4=INDEX(E4:E11,MATCH(LARGE(A4:A11,1),A4:A11,0))
H5H5=INDEX(E4:E11,MATCH(LARGE(A4:A11,2),A4:A11,0))
H6H6=INDEX(E4:E11,MATCH(LARGE(A4:A11,3),A4:A11,0))
H7H7=INDEX(E4:E11,MATCH(LARGE(A4:A11,4),A4:A11,0))
 
Upvote 0
Are you going to make any further changes to your requirements?
 
Upvote 0
Ok, how about
+Fluff New.xlsm
ABCDEFGHI
1
2
3
41PEAR1st highest8bananna
52ORANGE2nd highest7pear
63APPLE3rd highest7APPLE
74PEAR4th highest5ORANGE
85ORANGE
97pear
107APPLE
118bananna
12
Main
Cell Formulas
RangeFormula
H4:H7H4=LARGE($A$4:$A$11,ROWS(H$4:H4))
I4:I7I4=INDEX($E$4:$E$11,AGGREGATE(15,6,(ROW($E$4:$E$11)-ROW($E$4)+1)/($A$4:$A$11=H4),COUNTIFS(H$4:H4,H4)))
 
Upvote 0

Forum statistics

Threads
1,215,051
Messages
6,122,872
Members
449,097
Latest member
dbomb1414

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