Sum rows every nth column

2077delta

Active Member
Joined
Feb 17, 2002
Messages
250
Office Version
  1. 365
Platform
  1. Windows
Is there a way to sum a range of rows every nth column. For example I want to sum rows 10 - 30 every 4th column. Can I use SUMIFS somehow to do this?
 

Excel Facts

Does the VLOOKUP table have to be sorted?
No! when you are using an exact match, the VLOOKUP table can be in any order. Best-selling items at the top is actually the best.
Do you mean like this:

Assuming rng: B10:N13
B15: =SUMPRODUCT(rng*(MOD(COLUMN(rng)-COLUMN(INDEX(rng,,1)),4)=0))
Or =SUMPRODUCT(B10:N13*(MOD(COLUMN(B10:N13)-COLUMN(B10),4)=0))


Excel 2010
BCDEFGHIJKLMN
1015913
11261014
12371115
13481216
14
15136
1
 
Last edited:
Upvote 0
Something like this? You'll need to hit CONTROL+SHIFT+ENTER as the formula uses arrays.

ABCD...AB
1n=4
2Sum columns:=SUM(IF(MOD(COLUMN(A$5:AB$104),B1)=0,A$5:AB$104))
3
4
50.3711559680.7026720.4688130.410523...0.396036
60.4265365780.4647980.023170.242622...0.174385
70.4245603840.2438130.216390.327721...0.001815
80.0431253840.5797720.043180.087144...0.319651
90.7112100330.5845060.5831560.307808...0.160351
.....................
1020.2174903120.2059010.0172950.554897...0.310382
1030.347912510.8401920.5044370.080458...0.917384
1040.1225952430.6509570.5876080.886758...0.405192

<tbody>
</tbody>
 
Last edited:
Upvote 0
Try this
=SUMPRODUCT(N(MOD(ROW(A10:A30),4)=1),A10:A30)
 
Upvote 0

Forum statistics

Threads
1,213,524
Messages
6,114,117
Members
448,549
Latest member
brianhfield

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