Total when filtered

D

Don Guillett

Look in the help index for SUBTOTAL and read carefully about the code for
filtered.
 
P

Pete_UK

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
 
B

bpeltzer

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)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Top