ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Summing (or counting) cells until there is a blank cell (https://www.excelbanter.com/excel-discussion-misc-queries/119207-summing-counting-cells-until-there-blank-cell.html)

Box815 November 17th 06 01:11 PM

Summing (or counting) cells until there is a blank cell
 
I want to sum a portion of a column until there is a blank cell. The number
of cells varies too much to use a bunch of nested IF functions.

For example, I'd like C100 to be the sum of cells C99 and above until there
is a blank cell. The first blank cell (working upward) may be C75 (or C65)
and there will be additional values in the cells above the blank cell.

How can I do this? Also, it would be helpful if I could count the number of
cells until the first blank cell.

I can reverse the order, that is sum the cells below a cell until reaching a
blank cell, but there will be additional values below the first blank cell.

The spreadsheet I'm working on has one day per row and the grouped rows
(days) have between 15 and 25 days in each group. The total number of groups
is over 200 so summing each individual group takes for ever (I know because I
tried that)

Thanks for your help.

Don Guillett November 17th 06 02:04 PM

Summing (or counting) cells until there is a blank cell
 
try hightlighting the columndatasubtotals

--
Don Guillett
SalesAid Software

"Box815" wrote in message
...
I want to sum a portion of a column until there is a blank cell. The
number
of cells varies too much to use a bunch of nested IF functions.

For example, I'd like C100 to be the sum of cells C99 and above until
there
is a blank cell. The first blank cell (working upward) may be C75 (or
C65)
and there will be additional values in the cells above the blank cell.

How can I do this? Also, it would be helpful if I could count the number
of
cells until the first blank cell.

I can reverse the order, that is sum the cells below a cell until reaching
a
blank cell, but there will be additional values below the first blank
cell.

The spreadsheet I'm working on has one day per row and the grouped rows
(days) have between 15 and 25 days in each group. The total number of
groups
is over 200 so summing each individual group takes for ever (I know
because I
tried that)

Thanks for your help.




Box815 November 17th 06 02:32 PM

Summing (or counting) cells until there is a blank cell
 
I've tried that and I end up with a big mess. Blank rows are inserted, the
subtotal is mixed in with groups below the target, etc.

Any other guidance on subtotals or other suggestions?

Thanks

"Don Guillett" wrote:

try hightlighting the columndatasubtotals

--
Don Guillett
SalesAid Software

"Box815" wrote in message
...
I want to sum a portion of a column until there is a blank cell. The
number
of cells varies too much to use a bunch of nested IF functions.

For example, I'd like C100 to be the sum of cells C99 and above until
there
is a blank cell. The first blank cell (working upward) may be C75 (or
C65)
and there will be additional values in the cells above the blank cell.

How can I do this? Also, it would be helpful if I could count the number
of
cells until the first blank cell.

I can reverse the order, that is sum the cells below a cell until reaching
a
blank cell, but there will be additional values below the first blank
cell.

The spreadsheet I'm working on has one day per row and the grouped rows
(days) have between 15 and 25 days in each group. The total number of
groups
is over 200 so summing each individual group takes for ever (I know
because I
tried that)

Thanks for your help.





Don Guillett November 17th 06 03:35 PM

Summing (or counting) cells until there is a blank cell
 
A macro that finds the blank and sums to the next blank. Involved.

--
Don Guillett
SalesAid Software

"Box815" wrote in message
...
I've tried that and I end up with a big mess. Blank rows are inserted,
the
subtotal is mixed in with groups below the target, etc.

Any other guidance on subtotals or other suggestions?

Thanks

"Don Guillett" wrote:

try hightlighting the columndatasubtotals

--
Don Guillett
SalesAid Software

"Box815" wrote in message
...
I want to sum a portion of a column until there is a blank cell. The
number
of cells varies too much to use a bunch of nested IF functions.

For example, I'd like C100 to be the sum of cells C99 and above until
there
is a blank cell. The first blank cell (working upward) may be C75 (or
C65)
and there will be additional values in the cells above the blank cell.

How can I do this? Also, it would be helpful if I could count the
number
of
cells until the first blank cell.

I can reverse the order, that is sum the cells below a cell until
reaching
a
blank cell, but there will be additional values below the first blank
cell.

The spreadsheet I'm working on has one day per row and the grouped rows
(days) have between 15 and 25 days in each group. The total number of
groups
is over 200 so summing each individual group takes for ever (I know
because I
tried that)

Thanks for your help.








All times are GMT +1. The time now is 10:42 AM.

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