dynamic ranking based on filters

sabha

New Member
Joined
Oct 10, 2015
Messages
21
Hi, I need my ranking to change based on the selected filters. Below is what it looks like right now:

RANK PLACE REVENUE
1 AMS 11
6 APJ 4
5 EMEA 5
4 US 6
3 CAN 7
2 BRAZIL 10

As of now, the rank column is ranking based on my range. However, if I filter only on US, CAN, and Brazil, then I want my ranking to be:

RANK PLACE REVENUE
3 US 6
2 CAN 7
1 BRAZIL 10

Is there a way to do that on excel? Would appreciate your help. I need to do this because I am trying to rank the top countries based on the filters I select so if i only want to see the Americas countries then I only want to rank US, CAN, and Brazil. Thank you for your help!
 
Last edited:

Excel Facts

Ambidextrous Undo
Undo last command with Ctrl+Z or Alt+Backspace. If you use the Undo icon in the QAT, open the drop-down arrow to undo up to 100 steps.
Assuming that you're using the regular Excel filter tool, try putting this in A2 and copy down:

=SUM(IF((SUBTOTAL(102,OFFSET($C$2,ROW($C$2:$C$7)-ROW($C$2),0))>0)*($C$2:$C$7>C2),1))+1
confirmed with Control+Shift+Enter.
 
Upvote 0

Forum statistics

Threads
1,216,175
Messages
6,129,300
Members
449,499
Latest member
HockeyBoi

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