Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default Subtotal Non-contiguous cells

I am trying to figure out the syntax for a subtotal formula that subtotals
non-contiguous cells. I am using Excel 2003. Ex.
=subtotal(109,h6,h54,h75,h83,h88). I want the first argument set to 109 so
that if I manually hide one of the rows mentioned in the formula, then the
subtotal reflects the loss of the cell. Is what I am trying to do impossible?
I don't get an error indication; the answer is always 0.
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 35,218
Default Subtotal Non-contiguous cells

if you use:
=sum(h6,h54,h75,h83,h88)

what do you get?

I'm guessing that your data isn't really numbers--it's text that look like
numbers.



David N. Ballew Jr. wrote:

I am trying to figure out the syntax for a subtotal formula that subtotals
non-contiguous cells. I am using Excel 2003. Ex.
=subtotal(109,h6,h54,h75,h83,h88). I want the first argument set to 109 so
that if I manually hide one of the rows mentioned in the formula, then the
subtotal reflects the loss of the cell. Is what I am trying to do impossible?
I don't get an error indication; the answer is always 0.


--

Dave Peterson
  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3
Default Subtotal Non-contiguous cells

When I use the sum function, I get the proper answer, which is currently 7.
The contents of the cells referred to in the formula I am trying to get to
work are subtotal formulas. They work as advertised because the data they are
subtotaling is contiguous.

"Dave Peterson" wrote:

if you use:
=sum(h6,h54,h75,h83,h88)

what do you get?

I'm guessing that your data isn't really numbers--it's text that look like
numbers.



David N. Ballew Jr. wrote:

I am trying to figure out the syntax for a subtotal formula that subtotals
non-contiguous cells. I am using Excel 2003. Ex.
=subtotal(109,h6,h54,h75,h83,h88). I want the first argument set to 109 so
that if I manually hide one of the rows mentioned in the formula, then the
subtotal reflects the loss of the cell. Is what I am trying to do impossible?
I don't get an error indication; the answer is always 0.


--

Dave Peterson

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 35,218
Default Subtotal Non-contiguous cells

Ah...

I missed that in your original message (subtotals of subtotals).

You've seen that =subtotal() ignores other =subtotals()

I don't have a suggestion for you.

But if you don't get an answer here, you may want to declare this thread dead
and repost your question in the .worksheet.functions newsgroup.

There's some very smart people that can do lots of weird (good for you!) stuff
with hidden cells. (I ain't one of them, though.)



David N. Ballew Jr. wrote:

When I use the sum function, I get the proper answer, which is currently 7.
The contents of the cells referred to in the formula I am trying to get to
work are subtotal formulas. They work as advertised because the data they are
subtotaling is contiguous.

"Dave Peterson" wrote:

if you use:
=sum(h6,h54,h75,h83,h88)

what do you get?

I'm guessing that your data isn't really numbers--it's text that look like
numbers.



David N. Ballew Jr. wrote:

I am trying to figure out the syntax for a subtotal formula that subtotals
non-contiguous cells. I am using Excel 2003. Ex.
=subtotal(109,h6,h54,h75,h83,h88). I want the first argument set to 109 so
that if I manually hide one of the rows mentioned in the formula, then the
subtotal reflects the loss of the cell. Is what I am trying to do impossible?
I don't get an error indication; the answer is always 0.


--

Dave Peterson


--

Dave Peterson
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Selecting a contiguous row of cells [email protected] Excel Discussion (Misc queries) 1 March 23rd 07 08:06 PM
counting cells that are 0 in a range of non-contiguous cells Mark Excel Worksheet Functions 9 March 14th 07 02:45 PM
Summing non contiguous cells Millie Excel Discussion (Misc queries) 4 August 10th 06 10:23 PM
How do I count non-contiguous cells? broush Excel Worksheet Functions 5 May 30th 06 11:16 PM
how can i use SUMPRODUCT with a non-contiguous set of cells? Wade Wilson Excel Discussion (Misc queries) 1 May 9th 05 07:24 PM


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

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"