+ Reply to Thread
Results 1 to 10 of 10

cumulative sum formula repeat every nth row help needed

  1. #1
    Registered User
    Join Date
    05-02-2020
    Location
    tennessee
    MS-Off Ver
    2019
    Posts
    17

    cumulative sum formula repeat every nth row help needed

    Good evening forum

    new to the forum with intermediate excel skills.

    Just hoping someone can help with a formula to work with excel 2016

    i want to essentially repeat a cumulative sum formula every 78 rows. ie cumulative sum rows 1-78 and then start over the next 78 lines.


    Is this possible?

    Thanks in advance

    attachment example posted
    Attached Files Attached Files

  2. #2
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,169

    Re: cumulative sum formula repeat every nth row help needed

    Hi bmaness and welcome to the forum,

    Something like:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    might be what you want in cell L79. See the attached.
    Only show Sum on Mod 79.xlsx
    One test is worth a thousand opinions.
    Click the * Add Reputation below to say thanks.

  3. #3
    Registered User
    Join Date
    05-02-2020
    Location
    tennessee
    MS-Off Ver
    2019
    Posts
    17

    Re: cumulative sum formula repeat every nth row help needed

    thank you

    not sure i follow.

    as shown in example i need a cumulative sum on every row as shown (example lines J2-J79)

    i have 100k lines of data. i need the formula to repeat and cumulative sum every line but starting over every 78 lines (as shown here daily in column A)

    hope this makes sense.

  4. #4
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,169

    Re: cumulative sum formula repeat every nth row help needed

    Hi,

    We just have different ideas on what "A Cumulative Sum" is. Can you explain? I thought you wanted the sum of the yellow column down to the 78th row and 78 more rows want the sum of the last 78 yellow values. I guess "Cumulative Sum" means something different to you?

  5. #5
    Registered User
    Join Date
    05-02-2020
    Location
    tennessee
    MS-Off Ver
    2019
    Posts
    17

    Re: cumulative sum formula repeat every nth row help needed

    so as shown in example:

    J2 =SUM($I$2:I2)/SUM($G$2:G2) or just the first row

    J3 =SUM($I$2:I3)/SUM($G$2:G3) sums first and second

    J4 sums lines 1-3 and so on

    so the goal is to have this formula repeat starting at line 80-157 (yhe next 78 rows

    and so on

    repeats every day as shown in column A

    hope this helps

  6. #6
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,169

    Re: cumulative sum formula repeat every nth row help needed

    OK - I got it after looking a second time. You need to use Indirect and build a text formula like:
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    See the column I called VWAP2 in the attached.
    Cumulative Sum a second try.xlsx

    One of the smart Guru's could most likely use an Offset formula that would be easier than the above, but I think mine works for your answer.

  7. #7
    Registered User
    Join Date
    05-02-2020
    Location
    tennessee
    MS-Off Ver
    2019
    Posts
    17

    Re: cumulative sum formula repeat every nth row help needed

    THANK YOU!!!!

    i consider you "One of the smart Guru's " i spent hours hand changing the data every 78 rows. so much more time efficient.

    i have a follow up question about charting a line on a OHLC chart that has stumped me too

    if your interested i can give you a example from the data set.

  8. #8
    Forum Guru Bo_Ry's Avatar
    Join Date
    09-10-2018
    Location
    Thailand
    MS-Off Ver
    MS 365
    Posts
    7,213

    Re: cumulative sum formula repeat every nth row help needed

    Please try at J2

    =SUM(INDEX(I$2:I2,FLOOR(ROWS(I$2:I2)-1,78)+1):I2)/SUM(INDEX(G$2:G2,FLOOR(ROWS(G$2:G2)-1,78)+1):G2)
    Attached Files Attached Files

  9. #9
    Registered User
    Join Date
    05-02-2020
    Location
    tennessee
    MS-Off Ver
    2019
    Posts
    17

    Re: cumulative sum formula repeat every nth row help needed

    THANK YOU!!
    saved me literally 40-50 hours of time

    i have a follow up question about charting a line on top of a OHLC chart that has stumped me too

    if your interested i can give you a example from the data set.

  10. #10
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    81,288

    Re: cumulative sum formula repeat every nth row help needed

    Please open a new thread for this new and separate query.

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Help needed with cumulative total formula
    By DBExcelDB in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 02-23-2018, 09:26 AM
  2. [SOLVED] Formula needed for Text to repeat base on cell value
    By jp16 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 10-07-2017, 06:41 PM
  3. [SOLVED] Formula needed based on cumulative numbers
    By ramblin in forum Excel General
    Replies: 3
    Last Post: 06-22-2012, 05:53 AM
  4. Macro Formula needed to find a value and remember the row of the value, repeat
    By 66Deuce in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-30-2011, 09:57 PM
  5. Help with repeat formula needed
    By sundogkid in forum Excel General
    Replies: 3
    Last Post: 05-31-2009, 01:14 PM
  6. Replies: 5
    Last Post: 05-12-2009, 09:37 AM
  7. [SOLVED] clarification: cumulative to-date total formula needed
    By dreamkeeper in forum Excel General
    Replies: 2
    Last Post: 08-10-2006, 09:55 AM

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