Conditional sum

  • Thread starter Thread starter PO
  • Start date Start date
P

PO

Hi!

I use the formula =Sum("A1:A100") to perform a sum. However the user can
filter the data and then I want the formula to only perform the sum on the
filtered data (visible data).

How do I write this formula?

Regards
PO
 
Use the SUBTOTAL function

=SUBTOTAL(9,A1:A100)

will sum visible cells that have been filtered (from 2003 you can sum
visible cells that where other cells have been hidden as well), look in help
for other options like average and count


Regards,

Peo Sjoblom
 

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

Back
Top