Data After slicer

The sheet above shows data filtered by using Slicer.

How can I count rows when I filter data by a column using the slicer?

Let's say I want the counted result to appear in cell L4. If I use the counta() function, it still counts all rows instead of the filtered rows.

1 Answer 1


Please use the SUBTOTAL function


enter image description here

Functions used:


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.