Sum arithmetic progression cells ?

hpbaxxter

New Member
Joined
May 23, 2014
Messages
35
  • Hi!
    My question is : Is it possible to create a formula that would give the sum of cells that are in arithmetic progression in excel?

    Example:
    Let's first choose 4 cells that are in arithmetic progression, B14 , B20 , B26 and B32 for instance(the common difference here is 6). So what I want to do is: I want to type a formula in another cell, lets suppose C5, that will automatically give me the sum of the values of B14,B20,B26 and B32. I am aware that I can just type on C5 =B14+B20+B26+B32 but and if I wanted the sum of 90 cells??Wouldn't it be too much work to type all the cells? Does Anyone know a formula for it?

    thanks! :]​



 

Excel Facts

Which lookup functions find a value equal or greater than the lookup value?
MATCH uses -1 to find larger value (lookup table must be sorted ZA). XLOOKUP uses 1 to find values greater and does not need to be sorted.
If you have n terms of an arithmetic series whose first value is a1 and the constant difference is d, then the sum is

=n*a + n*(n-1)*d/2
 
Upvote 0
it didn't work
I think you dint understand me !
I want to sum a specific cells which they are making an arithmetic progression (unlimited cells)
as :b14,b20, b26, b32 .......
 
Upvote 0
You don't need all of the cells, you only need the first cell, the difference, and the number of cells:

A​
B​
1​
14​
A1: Input
2​
20​
A2: =A1+6
3​
26​
A3: =A2+6
4​
32​
A4: =A3+6
5​
38​
A5: =A4+6
6​
44​
A6: =A5+6
7​
50​
A7: =A6+6
8​
56​
A8: =A7+6
9​
10​
280​
A10: =SUM(A1:A8)
11​
280​
A11: =8*A1 + 8*(8-1)*6/2

EDIT: Perhaps I misunderstood; if you want to sum every Nth cell, then use VBA Geek's formula.
 
Upvote 0
AB
11
28=A1+A3+A5+A7+A9 ..
33
45
50
69
7 7

<tbody>
</tbody>

Like in this table , I want to sum A1+A3+A5+A7+......... Can I write a function to do this calculate ?
 
Upvote 0
The 6 in my formula will determine how many rows to skip

Code:
=sumproduct(b14:b32*(mod(row(b14:b32)-row(b14),[B]6[/B])=0))

so in the above case each 6 rows are summed up, in your last case you need to replace 6 with 2 and also update the B14:B32 reference to A1:A17
 
Upvote 0
If you just want to specify the three values,

A​
B​
C​
D​
E​
1​
1​
Beg​
2​
2​
2​
Step​
3​
3​
3​
Qty​
4​
4​
4​
26​
D4: =SUMPRODUCT(INDEX(A:A, Beg):INDEX(A:A, Beg + Step * (Qty - 1)),
--(MOD(ROW(INDEX(A:A, Beg):INDEX(A:A, Beg + Step * (Qty - 1))) - Beg, Step) = 0))
5​
5​
6​
6​
7​
7​
8​
8​
9​
9​
10​
10​
11​
11​
12​
12​
 
Upvote 0
The 6 in my formula will determine how many rows to skip

Code:
=sumproduct(b14:b32*(mod(row(b14:b32)-row(b14),[B]6[/B])=0))

so in the above case each 6 rows are summed up, in your last case you need to replace 6 with 2 and also update the B14:B32 reference to A1:A17


this one is a solution of my question, I didn't understand I but thank you
Can you explain it please !
 
Last edited:
Upvote 0

Forum statistics

Threads
1,221,527
Messages
6,160,342
Members
451,638
Latest member
MyFlower

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