Need help with counting the total number of entries that change when filter is used

crazy_papaya

New Member
Joined
Feb 10, 2020
Messages
28
Office Version
  1. 2016
Platform
  1. Windows
  2. Web
Hi all,

How can we count the total number of rows/ products in "Product name" and also for the count to change every time a filter is used.

So for ex - In table below If I filter out P1 then I want total to show "3" and if filter nothing, total becomes back to "4"

I have found out how to count number in a dynamic way using =SUBTOTAL (9,RANGE) I just need to know how to count names in a dynamic way. Any insights?

Product nameqty
P11
P21
P31
P41
 

Excel Facts

Whats the difference between CONCAT and CONCATENATE?
The newer CONCAT function can reference a range of cells. =CONCATENATE(A1,A2,A3,A4,A5) becomes =CONCAT(A1:A5)
Hi Crazy_papaya,

Does this work?

Book1
AB
1Product name3
3P2
4P3
5P4
Sheet1
Cell Formulas
RangeFormula
B1B1=AGGREGATE(3,5,A:A)-1
 
Upvote 0

Forum statistics

Threads
1,214,649
Messages
6,120,732
Members
448,987
Latest member
marion_davis

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