Return 2nd highest value

ste33uka

Active Member
Joined
Jan 31, 2020
Messages
471
Office Version
  1. 365
Platform
  1. Windows
Hi would anyone have a formula to return second highest value, where match is found, in this case the word "apple"
and a formula to return adjacent cell.
Formulas would be in G1 and H1
Have attacted imige to show what result would look like
Thanks
excel7.PNG
 

Excel Facts

Workdays for a market open Mon, Wed, Friday?
Yes! Use "0101011" for the weekend argument in NETWORKDAYS.INTL or WORKDAY.INTL. The 7 digits start on Monday. 1 means it is a weekend.
In G1, change 2 to 3 for 3rd largest, etc.

=AGGREGATE(14,6,B3:B10/(A3:A10=F1),2)

The formula for H1 is open to interpretation, in the event of ties this will give you the highest percentage where A and B match F1 and G1 respectively.

=MAXIFS(E3:E10,A3:A10,F1,B3:B10,G1)
 
Upvote 0
In G1, change 2 to 3 for 3rd largest, etc.

=AGGREGATE(14,6,B3:B10/(A3:A10=F1),2)

The formula for H1 is open to interpretation, in the event of ties this will give you the highest percentage where A and B match F1 and G1 respectively.

=MAXIFS(E3:E10,A3:A10,F1,B3:B10,G1)

Thanks alot 1st formula is what i need
2nd formula i think i need something else
 
Upvote 0
As I said, it is open to interpretation, it was not clear from your post if you wanted the percentage that relates to the second highest value or you wanted the second highest percentage. In your example the result for both is the same, however in other samples it may differ.

If this is still wrong then you will need to provide more information, I'm not going to spend all day guessing.

=AGGREGATE(14,6,E3:E10/(A3:A10=F1),2)
 
Upvote 0
As I said, it is open to interpretation, it was not clear from your post if you wanted the percentage that relates to the second highest value or you wanted the second highest percentage. In your example the result for both is the same, however in other samples it may differ.

If this is still wrong then you will need to provide more information, I'm not going to spend all day guessing.

=AGGREGATE(14,6,E3:E10/(A3:A10=F1),2)
Thanks i think 2nd formula will work
 
Upvote 0

Forum statistics

Threads
1,214,789
Messages
6,121,590
Members
449,039
Latest member
Arbind kumar

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