+ Reply to Thread
Results 1 to 15 of 15

Accumulate total

  1. #1
    Registered User
    Join Date
    03-23-2014
    Location
    England
    MS-Off Ver
    2013
    Posts
    2

    Accumulate total

    Hi Everyone,
    I am new to this forum and could do with some help.

    I want to create a year to date total in a cell, if for example like a payslip when the total in say A1 changes I need A2 to remeber the original figure and add the new figure in A1
    so if in april i earn 1000.00
    ytd = 1000.00
    may is 200.00
    I want the ytd to remember the 1000 and add the 200 to give me 1200.
    Not sure if this makes sense

  2. #2
    Forum Expert gmr4evr1's Avatar
    Join Date
    11-24-2014
    Location
    Texas
    MS-Off Ver
    Office 2010 and 2007
    Posts
    3,448

    Re: Accumulate total

    Can you post an example spreadsheet that contains the info you want? What you say makes sense, but I want to see how you have the spreadsheet formatted to make this as easy as possible.
    1N73LL1G3NC3 15 7H3 4B1L17Y 70 4D4P7 70 CH4NG3 - 573PH3N H4WK1NG
    You don't have to add Rep if I have helped you out (but it would be nice), but please mark the thread as SOLVED if your issue is resolved.

    Tom

  3. #3
    Registered User
    Join Date
    03-23-2014
    Location
    England
    MS-Off Ver
    2013
    Posts
    2

    Re: Accumulate total

    Hi,

    Thank you for coming back to me,
    Attached Files Attached Files

  4. #4
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Accumulate total

    c10 =SUM($B$10:$B10) and drag down.

    See the attached file.
    Notice my main language is not English.

    I appreciate it, if you reply on my solution.

    If you are satisfied with the solution, please mark the question solved.

    You can add reputation by clicking on the star * add reputation.

  5. #5
    Forum Expert gmr4evr1's Avatar
    Join Date
    11-24-2014
    Location
    Texas
    MS-Off Ver
    Office 2010 and 2007
    Posts
    3,448

    Re: Accumulate total

    oeldere, that would be the simplest solution, which is the route I was thinking of going, but I'm not sure that's what the OP is looking for. I think this might need to use VBA and not a formula.

  6. #6
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Accumulate total

    @gmr4evr1

    No need for VBA in this example.

    Pivot table will also be an option.

  7. #7
    Forum Expert gmr4evr1's Avatar
    Join Date
    11-24-2014
    Location
    Texas
    MS-Off Ver
    Office 2010 and 2007
    Posts
    3,448

    Re: Accumulate total

    Is there a way to have a cell "remember" what it is and add the value of another cell to it?

  8. #8
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Accumulate total

    @gmr4evr1

    maybe like this

    c10 = b10
    c11 = c10+b11

  9. #9
    Forum Expert gmr4evr1's Avatar
    Join Date
    11-24-2014
    Location
    Texas
    MS-Off Ver
    Office 2010 and 2007
    Posts
    3,448

    Re: Accumulate total

    If OP wants VBA, I figured it out. Place the code below in Sheet1 (or whichever sheet you are using) of VBA editor
    Please Login or Register  to view this content.
    This code is for the example workbook you (the OP) posted

  10. #10
    Forum Expert gmr4evr1's Avatar
    Join Date
    11-24-2014
    Location
    Texas
    MS-Off Ver
    Office 2010 and 2007
    Posts
    3,448

    Re: Accumulate total

    oeldere,
    sorry, c10 = b10
    c11 = c10+b11
    didn't work either

  11. #11
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Accumulate total

    @gmr4evr1

    Seen your code I'm thinking it does not add the cummulative value in E4 if an value is added in c4.

  12. #12
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Accumulate total

    Please Login or Register  to view this content.
    it does for me, did you test it in my added file?

  13. #13
    Forum Expert gmr4evr1's Avatar
    Join Date
    11-24-2014
    Location
    Texas
    MS-Off Ver
    Office 2010 and 2007
    Posts
    3,448

    Re: Accumulate total

    The way the OP's example workbook is set up, he/she is using cells C3 (Gross) and E3 (Total). In this case, the VBA does work, I tested it in the example I downloaded from the OP. It keeps a "running" total in cell E3 and adds C3 to it whenever C3 changes.
    Last edited by gmr4evr1; 03-08-2015 at 09:44 AM.

  14. #14
    Forum Expert gmr4evr1's Avatar
    Join Date
    11-24-2014
    Location
    Texas
    MS-Off Ver
    Office 2010 and 2007
    Posts
    3,448

    Re: Accumulate total

    Ok, on your sheet it "does" work if the OP was adding additional rows of data. If I read it correctly the OP wants to use just one row, with the same 3 cells each time.

  15. #15
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Accumulate total

    We will wait on the respond of OP.

+ 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. How to accumulate total in one cell from another if input changes
    By gigaplatinum in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 11-01-2014, 04:44 AM
  2. Replies: 1
    Last Post: 02-10-2014, 11:42 PM
  3. Accumulate
    By benthinkin in forum Excel General
    Replies: 1
    Last Post: 11-15-2007, 08:07 PM
  4. accumulate
    By exhausted everything in forum Excel General
    Replies: 1
    Last Post: 03-14-2006, 11:30 PM
  5. Accumulate weekly time to total time in Excel.
    By delve in forum Excel General
    Replies: 0
    Last Post: 05-04-2005, 04:06 PM

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