Add and count

Add only the rows you can see after filtering

=SUBTOTAL(109,B2:B5)

How it works in Excel

The idea in general

It only counts what is showing on the screen, so the total follows your filter.

What I assumed

Check the result on your own data before relying on it.

Related

Ask another question