Subtotaling non-contiguous cells

  • Thread starter David N. Ballew Jr.
  • Start date
D

David N. Ballew Jr.

I am trying to figure out the syntax for a subtotal formula that subtotals
non-contiguous cells. I am using Excel 2003. If I use the Sum function as in
the following formula: =SUM(H6,H54,H75,H83,H88), I get the expected answer,
but I want to use the Subtotal function so my formula’s results will reflect
that one or more of the cells referenced in the formula has been manually
hidden. Subtotal formula example: =SUBTOTAL(109,h6,h54,h75,h83,h88). Is what
I am trying to do impossible? I don't get an error indication; the answer is
always 0. And by the way, the cells referenced in the subtotal and sum
formulas are themselves subtotals, but they work as advertised because the
cells they refer to are contiguous.
 
B

BoniM

The subtotal function ignores any other subtotals... so selecting ONLY
subtotals will give you zero.
=subtotal(109,H2:H88) to get the total of visible rows in that range.
 

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