Thread
:
How to sum the last 7 number in a row?
View Single Post
#
5
Posted to microsoft.public.excel.misc
Ron Rosenfeld
external usenet poster
Posts: 5,651
How to sum the last 7 number in a row?
On Sat, 24 May 2008 19:39:01 -0700, Learning excel <Learning
wrote:
This probably has an easy solution but I just cant figure it out. I have
search this discussion board but cant find anything.
Anyways I was wondering if there is a formula that sums the last 7 entries I
entered in the row.
An example would be.
D5 E5 F5 G5 H5 I5 J5 K5 L5 M5 N5 O5
2 5 1 3 5 1 0 2 4 2
D5 is where I want the sum of the last 7 numbers. and everyday I would add a
number at the back and do not want to change the range everytime I do so. is
there a way to make D5 return the last 7 numbers I have entered in the row
and will readjust everytime I add another number?
So long as there are at least 7 numbers, and they start in E5 and run
consecutively, then:
D5: =SUM(OFFSET(D5,0,COUNT(E5:IV5),1,-7))
might do it.
--ron
Reply With Quote
Ron Rosenfeld
View Public Profile
Find all posts by Ron Rosenfeld