Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 216
Default Summation of rows

Hi. I have a list of numbers in C26 through C36. Cell
C37 sums these. I need for the user to be able to add
rows and have the summation cell change accordingly.
This works unless the user inserts a row after the last
row.

Is there a way, through programming or otherwise, to make
the formula change even in this situation? I do have a
variable in my macro called "lastRow" that records the
row number of the summation row (currently 37).

Thanks,
Mike.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 74
Default Summation of rows

Hi Mike,

I think the following formula entered on C37 should help you.

=SUM($C$26:OFFSET(C26,-1,0))

I had seen this type of an formula used to a very similar question to your
recently. I thought it was a good solution. Hopefully, it works for you
too.

Regards,
Kevin


"Mike" wrote in message
...
Hi. I have a list of numbers in C26 through C36. Cell
C37 sums these. I need for the user to be able to add
rows and have the summation cell change accordingly.
This works unless the user inserts a row after the last
row.

Is there a way, through programming or otherwise, to make
the formula change even in this situation? I do have a
variable in my macro called "lastRow" that records the
row number of the summation row (currently 37).

Thanks,
Mike.



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,824
Default Summation of rows

I think Kevin meant:

=SUM($C$26:OFFSET(C37,-1,0))



Kevin Stecyk wrote:

Hi Mike,

I think the following formula entered on C37 should help you.

=SUM($C$26:OFFSET(C26,-1,0))

I had seen this type of an formula used to a very similar question to your
recently. I thought it was a good solution. Hopefully, it works for you
too.

Regards,
Kevin

"Mike" wrote in message
...
Hi. I have a list of numbers in C26 through C36. Cell
C37 sums these. I need for the user to be able to add
rows and have the summation cell change accordingly.
This works unless the user inserts a row after the last
row.

Is there a way, through programming or otherwise, to make
the formula change even in this situation? I do have a
variable in my macro called "lastRow" that records the
row number of the summation row (currently 37).

Thanks,
Mike.


--

Dave Peterson

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 74
Default Summation of rows

Dave,

Thank you!

Kevin


"Dave Peterson" wrote in message
...
I think Kevin meant:

=SUM($C$26:OFFSET(C37,-1,0))



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
problem with Summation walrus Excel Discussion (Misc queries) 2 September 30th 09 11:07 PM
Summation [email protected] Excel Discussion (Misc queries) 2 November 28th 07 05:12 PM
summation ExcelQuestion Excel Worksheet Functions 11 June 27th 07 02:28 AM
conditional summation boostm3 Excel Discussion (Misc queries) 3 June 6th 07 11:02 PM
Summation from a to b jeblunk Excel Worksheet Functions 3 December 4th 05 02:14 PM


All times are GMT +1. The time now is 04:43 PM.

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"