Sum last 10 numbers...

G

Guest

I have numbers in cells J2:J8 right now. I will be adding a number to cell
J9 tomorrow and J10 the next day and so on. I need a formula to sum the last
10 numbers in the J column. Thanks. I thought this would work but it is not
for some reason

=SUM(INDIRECT("J"&MAX(1,COUNTA(J:J)-10)&".J"&COUNTA(J:J)))

Any ideas? Thanks
 
G

Guest

=SUM(OFFSET(INDIRECT("J"&MAX(MATCH(9.99999999999999E+307,J:J))),-9,0,10,1))

This will not work if you have fewer than 10 numbers in the column
 

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

Top