Sum using next cell

G

gibsol

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.
 
B

Bernie Deitrick

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
 
R

Rick Rothstein \(MVP - VB\)

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
 
G

gibsol

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

cheers
 
G

gibsol

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Top