Home » excel » excel – Recalculate unique rank with autofilter?

excel – Recalculate unique rank with autofilter?

Posted by: admin April 23, 2020 Leave a comment


Because I have a lot of items that rank at 1 (or 100%), I’m using this formula to get a unique rank as you can see in the image below under “Filtered Unique Rank”:


This was my old Rank formula under “Regular Rank”, which essentially showed a lot of items ranking at 1:


enter image description here

This is the formula I was using to get rankings based on a filter, but it’s NOT unique:


Question: Based on the info above, is there a way to get a unique rank from an autofilter?
Source of above formula: http://www.mrexcel.com/td0067.html

How to&Answers:

Say the data is like:


Column B is filled with the formula for the “standard” unique, sequential rank, so B2 contains:


In D2 we enter:


and copy down. The helper D column resembles column A except if the row is hidden, the value is a blank. In E2 we enter:


and copy down.

Here is a snap with the filter applied:


Note column E produces a simple, unique, sequential rank.


Try this array formula**:



**Array formulas are not entered in the same way as ‘standard’ formulas. Instead of pressing just ENTER, you first hold down CTRL and SHIFT, and only then press ENTER. If you’ve done it correctly, you’ll notice Excel puts curly brackets {} around the formula (though do not attempt to manually insert these yourself).


No, you can’t change the values passed to formula by using autofilter. The formula will still refer to the same count and values, whether they appear hidden or not.

However, you can achieve this by using pivot table filters as they render the content of cells by changing their values.