cumulative sum of even or odd rows

shorouqelsobkey

New Member
Joined
Nov 23, 2015
Messages
30
I need a formula to cumulatively sum the even rows or columns.

Example:

A B
10 10
20 20
60 70
75 95
 

Excel Facts

Formula for Yesterday
Name Manager, New Name. Yesterday =TODAY()-1. OK. Then, use =YESTERDAY in any cell. Tomorrow could be =TODAY()+1.
Try this in B1 and filled down.

=SUMPRODUCT(--(MOD(ROW(A$1:A1),2)=MOD(ROW(A1),2)),A$1:A1)
 
Upvote 0
Here's a more efficient and simpler method..


Excel 2010
AB
11010
22020
36070
47595
52090
6100195
Sheet1
Cell Formulas
RangeFormula
B1=A1
B2=A2
B3=B1+A3
B4=B2+A4
B5=B3+A5
B6=B4+A6
 
Upvote 0
Same concept, just change from row to column..

Here's both methods


Excel 2010
FGHIJK
351020607520100
36
371020709590195
381020709590195
Sheet1
Cell Formulas
RangeFormula
F37=SUMPRODUCT(--(MOD(COLUMN($F35:F35),2)=MOD(COLUMN(F35),2)),$F35:F35)
F38=F35
G37=SUMPRODUCT(--(MOD(COLUMN($F35:G35),2)=MOD(COLUMN(G35),2)),$F35:G35)
G38=G35
H37=SUMPRODUCT(--(MOD(COLUMN($F35:H35),2)=MOD(COLUMN(H35),2)),$F35:H35)
H38=F38+H35
I37=SUMPRODUCT(--(MOD(COLUMN($F35:I35),2)=MOD(COLUMN(I35),2)),$F35:I35)
I38=G38+I35
J37=SUMPRODUCT(--(MOD(COLUMN($F35:J35),2)=MOD(COLUMN(J35),2)),$F35:J35)
J38=H38+J35
K37=SUMPRODUCT(--(MOD(COLUMN($F35:K35),2)=MOD(COLUMN(K35),2)),$F35:K35)
K38=I38+K35
 
Upvote 0
I may be missing something, but it looks like it works to me as shown in post #6
 
Upvote 0
Which one?

I'd suggest the simpler method (not the sumproduct)

Perhaps your numbers are not really numbers..
What does this return
=ISNUMBER(F35)
And fill it accross.
 
Upvote 0

Forum statistics

Threads
1,214,540
Messages
6,120,107
Members
448,945
Latest member
Vmanchoppy

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