exclude hidden rows

G

Guest

I would like to use Sum to toal a range but exclude any data in hidden rows. That way I could filter another column and run totals for the rows that meet the filter criteria.
 
K

Ken Wright

Take a look at the SUBTOTAL function which will do this. Format would be as
follows:-

=SUBTOTAL(9,A1:A1000) with 9 being the SUM argument (Plenty of others to choose
from as well)

NOTE:- This will only work on rows hidden by a filter such as Autofilter,
UNLESS, you have Excel 2003 which has new additional argument values to allow
you to exclude manually hidden rows from the range as well.

--
Regards
Ken....................... Microsoft MVP - Excel
Sys Spec - Win XP Pro / XL 00/02/03

----------------------------------------------------------------------------
It's easier to beg forgiveness than ask permission :)
----------------------------------------------------------------------------



Bill said:
I would like to use Sum to toal a range but exclude any data in hidden rows.
That way I could filter another column and run totals for the rows that meet the
filter criteria.
 

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

Top