Counting Values in a filtered list

KW

Board Regular
Joined
Jan 25, 2005
Messages
167
Hi Guys

I've tried entering the following formula:

=SUM(IF(FREQUENCY(B2:B5,B2:B5)>0,1))

in a attempt to produce the number of unique entries in a list (which works).

Unfortunately, when I filter the list, the formula doesn't work on the remaining entries in the filtered list.

Can anyone suggest an alternative formula or tweak to the above one?
 

Excel Facts

Bring active cell back into view
Start at A1 and select to A9999 while writing a formula, you can't see A1 anymore. Press Ctrl+Backspace to bring active cell into view.
Try...

=SUM(IF(FREQUENCY(IF(SUBTOTAL(3,OFFSET(B2:B5,ROW(B2:B5)-ROW(B2),0,1))>0,B2:B5),B2:B5)>0,1))

...confirmed with CONTROL+SHIFT+ENTER.

Hope this helps!
 
Upvote 0

Forum statistics

Threads
1,214,978
Messages
6,122,545
Members
449,089
Latest member
davidcom

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