Ranking formula based on variable

scott_od

New Member
Joined
Jan 25, 2016
Messages
27
I have a table with country performance data & I would like to be able to see the best performing country on a certain date. The idea is that if I change the date in cell E10 (highlighted in red), the formula in E11 would display the country name of the highest value on that date.

In the event that there are 2 countries who both have the highest value, I would like both countries displayed if possible

New Sales18-Sep19-Sep20-Sep21-Sep22-Sep25-Sep
Australia112553
China15250700
India252521242829
Korea132655
Philippines112222
Singapore222100
Date:18-Sep
Best Performer:

<colgroup><col><col span="6"></colgroup><tbody>
</tbody>


Is anybody able to help with this, as so far I have not had much luck.

Thank you.
 

Excel Facts

Waterfall charts in Excel?
Office 365 customers have access to Waterfall charts since late 2016. They were added to Excel 2019.
Row\Col
A​
B​
C​
D​
E​
F​
G​
1​
New Sales
18-Sep
19-Sep
20-Sep
21-Sep
22-Sep
25-Sep
2​
Australia
1
1
2
5
5
3
3​
China
15
25
0
7
0
0
4​
India
25
25
21
24
28
29
5​
Korea
1
3
2
6
5
5
6​
Philippines
25
1
2
2
2
2
7​
Singapore
2
2
2
1
0
0
8​
9​
Date:
18-Sep
10​
Best Performer(s) India
11​
Philippines
12​

In E10 control+shift+enter, not just enter, and copy down:

=IFERROR(INDEX($A$2:$A$7,SMALL(IF(INDEX($B$2:$G$7,0,MATCH(E$9,$B$1:$G$1,0))=MAX(INDEX($B$2:$G$7,0,MATCH(E$9,$B$1:$G$1,0))),ROW($A$2:$A$7)-ROW($A$2)+1),ROWS($E$10:E10))),"")
 
Upvote 0

Forum statistics

Threads
1,220,965
Messages
6,157,119
Members
451,398
Latest member
rjsteward

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