Formula sum 10 rows, after it reset sum to 0 and sum next 10 rows

motilulla

Well-known Member
Joined
Feb 13, 2008
Messages
2,375
Office Version
  1. 2010
Using Excel 2010
Hello,

I need a formula which can sum 10 rows, after it reset sum to 0 and sum next 10 rows
Note: Please also I need that formula work with excel version 2000.
Example…

MrExcel Question.xlsx
ABCDEFG
1
2
3ValuesSum
4-1,00 €
53,00 €
6-1,00 €
7-1,00 €
83,00 €
93,00 €
10-1,00 €
113,00 €
12-1,00 €
133,00 €1010,00 €
14-1,00 €
15-1,00 €
163,00 €
17-1,00 €
183,00 €
19-1,00 €
20-1,00 €
21-1,00 €
223,00 €
23-1,00 €202,00 €
243,00 €
25-1,00 €
26-1,00 €
273,00 €
28-1,00 €
29-1,00 €
30-1,00 €
31-1,00 €
323,00 €
333,00 €306,00 €
34-1,00 €
353,00 €
363,00 €
373,00 €
38-1,00 €
393,00 €
403,00 €
413,00 €
42-1,00 €
43-1,00 €4014,00 €
443,00 €
453,00 €
463,00 €
47-1,00 €
483,00 €
49-1,00 €
50-1,00 €
51-1,00 €
52-1,00 €
533,00 €5010,00 €
543,00 €
553,00 €
56-1,00 €
573,00 €548,00 €
Sheet5
Cell Formulas
RangeFormula
E13,E53,E43,E33,E23E13=SUM(C4:C13)
E57E57=SUM(C54:C57)


Please help

Thank you all.

Regards,
Moti
 

Excel Facts

Shade all formula cells
To shade all formula cells: Home, Find & Select, Formulas to select all formulas. Then apply a light fill color.
Here is one way. Place this formula in cell E13 and copy all the way down to cell E53:
Excel Formula:
=IF(MOD(ROW(),10)=3,SUM(C4:C13),"")
 
Upvote 0
Here is one way. Place this formula in cell E13 and copy all the way down to cell E53:
Excel Formula:
=IF(MOD(ROW(),10)=3,SUM(C4:C13),"")
Joe4, thank you it worked fine as per my query, I have a one more question is it possible do sum till the find value in the column “D” >0 so it will not limit 10 rows may be first sum till 1 to 5 row another 6 to12th where and till the value find in “D”?

Kind Regards,
Moti
 
Upvote 0
Put in E4
Excel Formula:
=IF(MOD(COUNT($C$4:C4),10)=0,SUM(OFFSET(E4,0,-2,-10,1)),"")
 
Upvote 0
Joe4, thank you it worked fine as per my query, I have a one more question is it possible do sum till the find value in the column “D” >0 so it will not limit 10 rows may be first sum till 1 to 5 row another 6 to12th where and till the value find in “D”?

Kind Regards,
Moti
I cannot think of a way to do that via formula (I think some really smart people may know of a way to do that, but I do not how).
I would probably use VBA to do something like this.
 
Upvote 0
Put in E4
Excel Formula:
=IF(MOD(COUNT($C$4:C4),10)=0,SUM(OFFSET(E4,0,-2,-10,1)),"")
Shinigamilight, applied your formula in cell E4 and copied down to cell E53 but it does not seems to work if I change the values in different cell in the column “D” even if there is non-value in column D it sum 10 in 10.

Kind Regards,
Moti
 
Upvote 0
I cannot think of a way to do that via formula (I think some really smart people may know of a way to do that, but I do not how).
I would probably use VBA to do something like this.
Are you interested in a VBA solution?
I don't want to try to develop one if it isn't something that you can use.
 
Upvote 0
Are you interested in a VBA solution?
I don't want to try to develop one if it isn't something that you can use.
Joe4, I appreciate a lot your help and offer sincerely I need a formula solution

Good Luck

Kind Regards,
Moti :)
 
Upvote 0
Put something in D4 & then you could use this in E4 copied down
Excel Formula:
=IF(D4="","",SUM(INDEX(C:C,LOOKUP(2,1/(D$3:D3<>""),ROW(D$4:D4))):C4))
 
Upvote 1
Solution
Shinigamilight, applied your formula in cell E4 and copied down to cell E53 but it does not seems to work if I change the values in different cell in the column “D” even if there is non-value in column D it sum 10 in 10.

Kind Regards,
Moti
The solution was for your original question.
 
Upvote 0

Forum statistics

Threads
1,216,499
Messages
6,131,010
Members
449,613
Latest member
MedDash99

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top