#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 5
Default Sum to Blank Cell

I want to sum a series of columns of different lengths.
It may be just 2 rows deep (i.e. sum B3 and B4 with answer in B5) or 20 rows
deep (i.e. sum B3:B22 with answer in B23). Above each column is an empty
cell

How can I say "sum the column above until you reach an empty cell"?

Thanks,

Steve


  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,718
Default Sum to Blank Cell

Try this:

=SUM($B$3:OFFSET(B5,-1,))


"steveal" wrote:

I want to sum a series of columns of different lengths.
It may be just 2 rows deep (i.e. sum B3 and B4 with answer in B5) or 20 rows
deep (i.e. sum B3:B22 with answer in B23). Above each column is an empty
cell

How can I say "sum the column above until you reach an empty cell"?

Thanks,

Steve



  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 915
Default Sum to Blank Cell

steveal wrote:
I want to sum a series of columns of different lengths.
It may be just 2 rows deep (i.e. sum B3 and B4 with answer in B5) or 20 rows
deep (i.e. sum B3:B22 with answer in B23). Above each column is an empty
cell

How can I say "sum the column above until you reach an empty cell"?

Thanks,


Hi Steve,

Would it be acceptable to put all the sums against a fixed row range in
one row, e.g. this in b100:

=sum(b3:b99)

or is there some reason you need to break at a blank cell?
  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 5
Default Sum to Blank Cell

The summation I want to do is actually in one column (I wrote my example for
simplicity)

So I want to sum
B3:B5 answer in B6
B8:B15 answer in B16
B18:B35 answer in B36

Etc.

Each column of numbers a different length.

Steve





"smartin" wrote in message
...
steveal wrote:
I want to sum a series of columns of different lengths.
It may be just 2 rows deep (i.e. sum B3 and B4 with answer in B5) or 20
rows deep (i.e. sum B3:B22 with answer in B23). Above each column is an
empty cell

How can I say "sum the column above until you reach an empty cell"?

Thanks,


Hi Steve,

Would it be acceptable to put all the sums against a fixed row range in
one row, e.g. this in b100:

=sum(b3:b99)

or is there some reason you need to break at a blank cell?



  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 915
Default Sum to Blank Cell

Thanks for the clarification. I see your challenge is more complicated
than I think can be handled with a worksheet function (but I could be
wrong!)

This sounds like a job for VBA. Excel VBA is not my forte, so I do not
have a solution. If you do not get an answer here, you might try posting
your (clarified) question in microsoft.public.excel.programming.

Best of luck!

steveal wrote:
The summation I want to do is actually in one column (I wrote my example for
simplicity)

So I want to sum
B3:B5 answer in B6
B8:B15 answer in B16
B18:B35 answer in B36

Etc.

Each column of numbers a different length.

Steve





"smartin" wrote in message
...
steveal wrote:
I want to sum a series of columns of different lengths.
It may be just 2 rows deep (i.e. sum B3 and B4 with answer in B5) or 20
rows deep (i.e. sum B3:B22 with answer in B23). Above each column is an
empty cell

How can I say "sum the column above until you reach an empty cell"?

Thanks,

Hi Steve,

Would it be acceptable to put all the sums against a fixed row range in
one row, e.g. this in b100:

=sum(b3:b99)

or is there some reason you need to break at a blank cell?





  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 5
Default Sum to Blank Cell

smartin,

I'm afraid I chickened out and spent a few hours doing the job 'manually'.
Sometimes I ask the question here and a tremendous labour saving answer
appears - sometimes not...

Thanks for your help.

Steve

"smartin" wrote in message
...
Thanks for the clarification. I see your challenge is more complicated
than I think can be handled with a worksheet function (but I could be
wrong!)

This sounds like a job for VBA. Excel VBA is not my forte, so I do not
have a solution. If you do not get an answer here, you might try posting
your (clarified) question in microsoft.public.excel.programming.

Best of luck!

steveal wrote:
The summation I want to do is actually in one column (I wrote my example
for simplicity)

So I want to sum
B3:B5 answer in B6
B8:B15 answer in B16
B18:B35 answer in B36

Etc.

Each column of numbers a different length.

Steve





"smartin" wrote in message
...
steveal wrote:
I want to sum a series of columns of different lengths.
It may be just 2 rows deep (i.e. sum B3 and B4 with answer in B5) or 20
rows deep (i.e. sum B3:B22 with answer in B23). Above each column is an
empty cell

How can I say "sum the column above until you reach an empty cell"?

Thanks,
Hi Steve,

Would it be acceptable to put all the sums against a fixed row range in
one row, e.g. this in b100:

=sum(b3:b99)

or is there some reason you need to break at a blank cell?



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
returning blank when reference cell is blank mslylan2u Excel Worksheet Functions 4 June 6th 08 09:09 PM
Average Formula to display blank cell if named range is blank Rachael F Excel Worksheet Functions 3 February 22nd 08 05:05 PM
how to get excel to display blank if reference cell blank silent1(not) Excel Worksheet Functions 1 December 2nd 05 02:49 PM
How do I make a blank cell with a date format blank? Pivot Table/Query Excel Worksheet Functions 6 June 14th 05 11:19 PM
COPY A CONCATENATE CELL TO BLANK CELL PUTTING IN THE NEXT BLANK C. QUEST41067 Excel Discussion (Misc queries) 1 January 15th 05 09:29 PM


All times are GMT +1. The time now is 12:16 AM.

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

About Us

"It's about Microsoft Excel"