+ Reply to Thread
Results 1 to 12 of 12

Arithmetic Progression with cells?

  1. #1
    Registered User
    Join Date
    01-11-2009
    Location
    Brazil
    MS-Off Ver
    Excel 2003
    Posts
    5

    Arithmetic Progression with cells?

    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! :]
    Last edited by Golden02; 01-11-2009 at 09:17 PM.

  2. #2
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2010, 2019
    Posts
    40,689
    If you have an arithmetic series in A1, A2, ..., then the sum of the first N terms in the series is

    =N*(2*A1 + (N-1)*(A2-A1)) / 2
    Entia non sunt multiplicanda sine necessitate

  3. #3
    Registered User
    Join Date
    01-11-2009
    Location
    Brazil
    MS-Off Ver
    Excel 2003
    Posts
    5
    Quote Originally Posted by shg View Post
    If you have an arithmetic series in A1, A2, ..., then the sum of the first N terms in the series is

    =N*(2*A1 + (N-1)*(A2-A1)) / 2
    Hmmm, I get it, thanks for the formula. But what I mean is, it is not the value of A1 , A2, ..., AN that is in arithmetic series, what is in arithmetic series is the cells themselves. It is like if:
    C20 = 550
    C25 = 10
    C30 = 200
    Their values are not in arithmetic series but they are. Can you see that C30 is 5 rows away from C25 and C25 is also 5 rows away from C20?
    Is there any formula for the sum of these cells?
    thanks again

  4. #4
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2010, 2019
    Posts
    40,689
    Their values are not in arithmetic series but they are.
    I can't parse that.
    Can you see that C30 is 5 rows away from C25 and C25 is also 5 rows away from C20?
    Yes ... so?

  5. #5
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2010, 2019
    Posts
    40,689
    C20 = 550
    C25 = 10
    C30 = 200
    Dos that mean you want to sum 200 cells in column B, starting at B550, and adding every 10th cell?

  6. #6
    Registered User
    Join Date
    01-11-2009
    Location
    Brazil
    MS-Off Ver
    Excel 2003
    Posts
    5
    Quote Originally Posted by shg View Post
    I can't parse that.

    Yes ... so?
    Hmmm let me try to explain it to you.
    I want to calculate the sum of cells that have their LOCATION as an arithmetic progression.
    What I mean by location is the row and the column that each is.
    Take a close look at the number of the rows from the cells C20 C25 and C30:
    20 , 25 , 30 can you picture that these numbers are in arithmetical series?
    So I thought that it might be possible to calculate the sum of cells that would have their rows as an arithmetic series.
    Do you get my idea?

  7. #7
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2010, 2019
    Posts
    40,689
    OK; so what cells should be summed for that example?

  8. #8
    Registered User
    Join Date
    01-11-2009
    Location
    Brazil
    MS-Off Ver
    Excel 2003
    Posts
    5
    For that example C20 , C25 and C30
    If I want to sum them in T4, I just have to type there =C20+C25+C30 right?
    But this is easy because we are talking about 3 cells.
    And If I wanted to sum 50 cells just knowing that the number of their rows is always increasing by 5?
    Like C20 , C25 , C30 , ..., C255
    You get that?

  9. #9
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2010, 2019
    Posts
    40,689
    Maybe like this:
    Please Login or Register  to view this content.
    Last edited by shg; 01-11-2009 at 08:27 PM.

  10. #10
    Registered User
    Join Date
    01-11-2009
    Location
    Brazil
    MS-Off Ver
    Excel 2003
    Posts
    5
    Exactly like this!!
    To be honest, I really didn't understand the formula you used to calculate it. But I understood how you did it.

    I think that that solves my problem :D!
    thank you very much for the help

    PS: I'll try to use it right now.
    Last edited by shg; 01-11-2009 at 08:29 PM. Reason: deleted spurious quote

  11. #11
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2010, 2019
    Posts
    40,689
    You’re welcome. Would you please mark the thread as Solved?

    Click the Edit button on your first post in the thread

    Click Go Advanced, select [SOLVED] from the Prefix dropdown, then click Save Changes

    Please don't quote whole posts -- it just clutters the forum.


    I updated my last post to show the formula in D4.
    Last edited by shg; 01-11-2009 at 08:29 PM.

  12. #12
    Registered User
    Join Date
    03-24-2013
    Location
    Asia
    MS-Off Ver
    Excel 2007
    Posts
    1

    Re: Arithmetic Progression with cells?

    I apologize for the necro, but I followed shg's example exactly and got 1088 as the sum instead of 277...

    Since I don't know see an attachment option, I only include the screenshot of it (even though it's meaningless):
    \1

    Could someone please tell me what I've missed out here?

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1