Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Jambruins
 
Posts: n/a
Default Sum last 10 numbers...

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
  #2   Report Post  
JE McGimpsey
 
Posts: n/a
Default

One way:

=SUM(OFFSET(J2,MAX(0,COUNTA(J2:J65536)-10),0,10,1))

In article ,
Jambruins wrote:

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

  #3   Report Post  
Duke Carey
 
Posts: n/a
Default

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

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



"Jambruins" wrote:

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

  #4   Report Post  
Duke Carey
 
Posts: n/a
Default

I like your approach better than mine


"JE McGimpsey" wrote:

One way:

=SUM(OFFSET(J2,MAX(0,COUNTA(J2:J65536)-10),0,10,1))

In article ,
Jambruins wrote:

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


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
Seed numbers for random number generation, uniform distribution darebo Excel Discussion (Misc queries) 3 April 21st 23 09:02 PM
Match Last Occurrence of two numbers and Return Date Sam via OfficeKB.com Excel Worksheet Functions 6 April 5th 05 12:40 PM
Match Last Occurrence of two numbers and Count to Previous Occurence Sam via OfficeKB.com Excel Worksheet Functions 33 April 4th 05 02:17 PM
Count and Sum Total occurrances of two specific numbers Sam via OfficeKB.com Excel Worksheet Functions 10 March 29th 05 08:13 PM
Converting Numbers to Text properly Shirley Munro Excel Discussion (Misc queries) 1 February 16th 05 03:01 PM


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