A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Excel » General Discussion
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Sum a filtered range



 
 
Thread Tools Display Modes
  #1  
Old April 30th, 2009, 07:13 AM posted to microsoft.public.excel.misc
Peter
external usenet poster
 
Posts: 962
Default Sum a filtered range

Can anybody help me with the calc to sum a filtered range?
  #2  
Old April 30th, 2009, 07:48 AM posted to microsoft.public.excel.misc
Roger Govier[_3_]
external usenet poster
 
Posts: 2,297
Default Sum a filtered range

Hi Peter

=SUBTOTAL(9,A3:A1000)
I usually like to put such values at the top of my column, so assuming there
was a header in row 1 and data from row 2 downward, I would Insert a new row
at row 1 and put the above formula in cell A1
Select cell A3WindowsFreeze Panes and your header and Subtotal will always
be visible.

The above formula works with all versions of Excel and totals the values of
cells that are still visible after an Autofilter has been applied
From XL2003 onward, the facility to also ignore Manually hidden rows was
also introduced, you just use 109 in place of 9
=SUBTOTAL(109,A3:A1000)

Take a look at Help on Subtotal, and you will see what the other parameters
1 through 8 also provide.
--
Regards
Roger Govier

"Peter" wrote in message
news
Can anybody help me with the calc to sum a filtered range?


  #3  
Old April 30th, 2009, 07:57 AM posted to microsoft.public.excel.misc
Peter
external usenet poster
 
Posts: 962
Default Sum a filtered range

Hi Roger,

Thanks for your help... works great - I'm a happy Excel player again!

Regards, Peter

"Roger Govier" wrote:

Hi Peter

=SUBTOTAL(9,A3:A1000)
I usually like to put such values at the top of my column, so assuming there
was a header in row 1 and data from row 2 downward, I would Insert a new row
at row 1 and put the above formula in cell A1
Select cell A3WindowsFreeze Panes and your header and Subtotal will always
be visible.

The above formula works with all versions of Excel and totals the values of
cells that are still visible after an Autofilter has been applied
From XL2003 onward, the facility to also ignore Manually hidden rows was
also introduced, you just use 109 in place of 9
=SUBTOTAL(109,A3:A1000)

Take a look at Help on Subtotal, and you will see what the other parameters
1 through 8 also provide.
--
Regards
Roger Govier

"Peter" wrote in message
news
Can anybody help me with the calc to sum a filtered range?



 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 02:57 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.