Total when filtered

  • Thread starter Thread starter LL
  • Start date Start date
Look in the help index for SUBTOTAL and read carefully about the code for
filtered.
 
If you are using XL2003 or later, you can use:

=SUBTOTAL(109,range)

which will ignore hidden rows caused both by autofilter and manually-
hidden.

Earlier versions are limited to:

=SUBTOTAL(9,range)

which ignores autofiltered hidden rows.

Hope this helps.

Pete
 
Apply a filter before using the Autosum button, and Excel will create the
proper subtotal formula for you. Instead of =sum(range), it will be
=subtotal(9,range)
 
Back
Top