Dynamic Rank when filtering

BryantK

New Member
Joined
Sep 1, 2022
Messages
5
Office Version
  1. 365
Platform
  1. Windows
Hi! I'm trying to put together a way to dynamically rank a file in data set in excel when using filters.

For example in the attached file, that the formula ranks everything normally when there's no filters applied, but when I select "Orange" under the "Color" column, then it dynamically ranks only the two lines under Orange, then when I remove the filter, it goes back to the original ranking.

Excel Example.jpg


Thanks!
 

Excel Facts

Easy bullets in Excel
If you have a numeric keypad, press Alt+7 on numeric keypad to type a bullet in Excel.
Please Try this. When you filter, the Subtotal formula will multiply zero with your Sales figure and cause the hidden rows to be zero

Book1
ABCDE
1
2NameColorSalesRankVis Sales
3SOrange10000000110000000
4ARed1000002100000
5BRed40000340000
6CBlue30000430000
7DBlue20000520000
8FGreen15000615000
9DGreen10000710000
10GOrange500085000
Sheet1
Cell Formulas
RangeFormula
D3:D10D3=RANK(E3,$E$3:$E$10)
E3:E10E3=SUBTOTAL(103,A3)*C3
 
Upvote 1
Solution

Forum statistics

Threads
1,223,950
Messages
6,175,582
Members
452,653
Latest member
craigje92

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