ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Function to SUM only Subtotals (https://www.excelbanter.com/excel-discussion-misc-queries/121949-function-sum-only-subtotals.html)

nejohnso76

Function to SUM only Subtotals
 
Does anyone have ideas that would SUM only the subtotal amounts in a
worksheet?


Dave Peterson

Function to SUM only Subtotals
 
I don't.

But =subtotal() that points at the whole range will ignore the =subtotal() cells
and could give you what you want.

nejohnso76 wrote:

Does anyone have ideas that would SUM only the subtotal amounts in a
worksheet?


--

Dave Peterson

Bernie Deitrick

Function to SUM only Subtotals
 
IF you have SUBTOTALs applied automatically, simply use

=SUM(A:A)/2

if you aren't showing the Grandtotal, and use

=SUM(A:A)/3 if you are.

OR, you can use

=SUBTOTAL(9,A:A)

which will sum everything except values in SUBTOTAL formulas...

HTH,
Bernie
MS Excel MVP


"nejohnso76" wrote in message
ups.com...
Does anyone have ideas that would SUM only the subtotal amounts in a
worksheet?




Lori

Function to SUM only Subtotals
 
You may want to first update sum formulas to subtotal formulas by
replacing "=sum(" with "=subtotal(9," in the column. Then you could
use:

=SUM(9,A:A)-SUBTOTAL(A:A)

to sum just the subtotal formulas.


nejohnso76 wrote:

Does anyone have ideas that would SUM only the subtotal amounts in a
worksheet?




All times are GMT +1. The time now is 09:23 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com