#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 25
Default Sum using next cell

I have a table that shows running averages, I want the sum to be calculated
using cell a1 - b1 when I enter data into col B, then b1 - c1, when I enter
data into col c, and so on.
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 5,441
Default Sum using next cell

If there is nothing in row 1 except the numbers....

=SUM(OFFSET(A1,0,COUNTA(1:1)-2,1,2))

HTH,
Bernie
MS Excel MVP


"gibsol" wrote in message
...
I have a table that shows running averages, I want the sum to be calculated
using cell a1 - b1 when I enter data into col B, then b1 - c1, when I enter
data into col c, and so on.



  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 25
Default Sum using next cell

Thanks very much for the assistance, unfortunately entering this fomula has
raised a different error, which I am trawling through at present.

cheers

"Bernie Deitrick" wrote:

If there is nothing in row 1 except the numbers....

=SUM(OFFSET(A1,0,COUNTA(1:1)-2,1,2))

HTH,
Bernie
MS Excel MVP


"gibsol" wrote in message
...
I have a table that shows running averages, I want the sum to be calculated
using cell a1 - b1 when I enter data into col B, then b1 - c1, when I enter
data into col c, and so on.




  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default Sum using next cell

This should work whether the row is completely filled in or not...

=INDEX(1:1,SUMPRODUCT(MAX(COLUMN(1:1)*(1:1<"")))-1)+INDEX(1:1,SUMPRODUCT(MAX(COLUMN(1:1)*(1:1<"")) ))

If you don't mind array-entered** formulas, you can use this instead...

=INDEX(1:1,MAX(COLUMN(1:1)*(1:1<""))-1)+INDEX(1:1,MAX(COLUMN(1:1)*(1:1<"")))

** array-entered means commit the formula by pressing Ctrl+Shift+Enter.

Rick


"gibsol" wrote in message
...
I have a table that shows running averages, I want the sum to be calculated
using cell a1 - b1 when I enter data into col B, then b1 - c1, when I
enter
data into col c, and so on.


  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 25
Default Sum using next cell

Thanks for the information it now given me a different problem with my
formula that I need to work on.

thanks for all the help.

"Rick Rothstein (MVP - VB)" wrote:

This should work whether the row is completely filled in or not...

=INDEX(1:1,SUMPRODUCT(MAX(COLUMN(1:1)*(1:1<"")))-1)+INDEX(1:1,SUMPRODUCT(MAX(COLUMN(1:1)*(1:1<"")) ))

If you don't mind array-entered** formulas, you can use this instead...

=INDEX(1:1,MAX(COLUMN(1:1)*(1:1<""))-1)+INDEX(1:1,MAX(COLUMN(1:1)*(1:1<"")))

** array-entered means commit the formula by pressing Ctrl+Shift+Enter.

Rick


"gibsol" wrote in message
...
I have a table that shows running averages, I want the sum to be calculated
using cell a1 - b1 when I enter data into col B, then b1 - c1, when I
enter
data into col c, and so on.





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
How can I copy a value from a cell and paste it into another cell while adding it to the previous value in that cell [email protected] Excel Worksheet Functions 2 November 7th 07 09:39 AM
How can I make a blank cell in a formula cell with a range of cell Vi Excel Discussion (Misc queries) 5 June 21st 07 02:46 PM
cell data not validated if navigating cell to cell with mouse LoveThatMouse Excel Worksheet Functions 6 May 21st 06 09:03 PM
How to create/run "cell A equals Cell B put Cell C info in Cell D abmb161 Excel Discussion (Misc queries) 5 January 26th 06 06:36 PM
Cell Formula reference to cell Based On third Cell Content Gabriel Excel Discussion (Misc queries) 1 February 11th 05 06:36 AM


All times are GMT +1. The time now is 09:14 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"