Summing while hiding?!

  • Thread starter Thread starter Jo
  • Start date Start date
J

Jo

Hi,

Say I have this in column a starting at row 1:

12
34
14
41

=Sum(A1:A4)=101

How can I make it behave smarter when I hide rows? So, for example,
say I decided to hide row 2:

12
14
41

=Sum(A1:A4)=67

When I did try it I still get 101!?

Thanks,
Jo
 
look up subtotal in help and it will show you. use 101 instead of 109.
 
Note to Jo:
In Excel 2000 anyway, it must be a list or a database, so you cannot
start the data on row 1. The hidden rows must be the result of filtering
the rows.

Note to all:
In Excel 2000, therefore, the formula for SUM would be (note the
different function number):
=SUBTOTAL(9,A2:A5)

and the formula for AVERAGE would be (again Excel 2000):
=SUBTOTAL(1,A2:A5)

I guess Microsoft must have expanded the function numbers from Excel
2000 to Excel 2007! They must have an import wizard to convert older
worksheets to newer ones upon opening them!
 

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