# Sum every third column in a row

#### Carl B

##### Board Regular
Is there a nifty formula that would allow me to sum every third cell in a range?

### Excel Facts

How to total the visible cells?
From the first blank cell below a filtered data set, press Alt+=. Instead of SUM, you will get SUBTOTAL(9,)
which range? starting at which cell in the range?

C10:C67

See if this does it; thanks to Aladin for assisting:

=SUMPRODUCT((C10:C67)*(MOD(ROW(C10:C67)-ROW(C10),3)=0))

I kind of mislead you in the range that I was looking for, it should of been something along the lines of C10:AL10. Very intersting formula, I believe I can modify it to work for me. Thanks again for pointing me in the right direction.

Thanks again, I changed ROW to COLUMN and it works perfectly!

On 2002-09-26 20:56, Carl B wrote:
C10:C67

=SUMPRODUCT((MOD(ROW(C10:C67)-CELL("Row",\$C10)+H1,H2)=0)*(C10:C67))

where H1 houses the index that indicates the value to start with from the set of values of interest and H2 the index that indicates the Nth value to sum.

If you want to sum beginning with the first value, set H1 to 0. Since you want to sum every 3rd value, set H2 to 3.

Tom Urtis/Juan Pablo: This formula in fact reduces 4 different formulas to just one with 2 parameters (see Pearson's SUMEVERY.XLS). It's independent of the native row/column number. I remember attempting such a formula at the old board in an exchange with Juan but failed to succeed. I had promised myself to dedicate such a formula to Juan if I could build it.

On 2002-09-26 21:46, Carl B wrote:
Thanks again, I changed ROW to COLUMN and it works perfectly!

=SUMPRODUCT((MOD(COLUMN(C10:AL10)-CELL("Col",\$C10)+H1,H2)=0)*(C10:AL10))

See my other post in this thread for H1 and H2 (which I suppose to be 0 and 3 respectively in your case).

This message was edited by Aladin Akyurek on 2002-09-26 22:01

hi guys, i am new here

i have problem with summing every 7th number in 10 digit number, like this:

A B
1000004000 100
1000005000 50
...
...

i have in column A like above number with 10 digit number, and in column B specific values.
i need formula, it would be great just one to sum all values in column B but with criteria that formula summin every 7th, example 7th number is 4; number in number in column A

thx

Replies
1
Views
163
Replies
10
Views
513
Replies
3
Views
217
Replies
10
Views
267
Replies
19
Views
548

1,221,383
Messages
6,159,540
Members
451,571
Latest member
Qwissy

### 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.

### Which adblocker are you using?

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

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