+ Reply to Thread
Results 1 to 11 of 11

Cumulative value

  1. #1
    Forum Contributor
    Join Date
    12-06-2013
    Location
    Sri Lanka
    MS-Off Ver
    Excel 2016
    Posts
    611

    Post Cumulative value

    Dear Experts,

    Please look in to the following format. I need to type values in cells J4, M4, P4 and S4 daily and, those values should be accumulated in cells K4, N4, Q4, and T4 respectively.

    Important:

    ** The cumulative figures (K4, N4, Q4, and T4) should not change when new values are daily entered in to J4, M4, P4 and S4.
    ** If any WRONG value is entered in to J4, M4, P4 and S4 cells, the facility should be there to MINUS it from the CUMULATIVE (K4, N4, Q4, and T4) figure at any time after the document is saved.

    Thanks in advance.
    Anuruddha
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    12-14-2012
    Location
    London England
    MS-Off Ver
    MS 365 Office Suite.
    Posts
    8,448

    Re: Cumulative value

    So you want to add the number you type into J4, M4, P4 and S4 daily in cells K4, N4, Q4, and T4 but not change K4, N4, Q4, and T4 .

    How does that happen?
    My General Rules if you want my help. Not aimed at any person in particular:

    1. Please Make Requests not demands, none of us get paid here.

    2. Check back on your post regularly. I will not return to a post after 4 days.
    If it is not important to you then it definitely is not important to me.

  3. #3
    Forum Contributor
    Join Date
    12-06-2013
    Location
    Sri Lanka
    MS-Off Ver
    Excel 2016
    Posts
    611

    Re: Cumulative value

    Yes..one guy did this long time back, but I don't find him now. May be he used macros...or something..

    Thanks

  4. #4
    Forum Expert
    Join Date
    12-14-2012
    Location
    London England
    MS-Off Ver
    MS 365 Office Suite.
    Posts
    8,448

    Re: Cumulative value

    Read my question carefully.

    How can it change daily but not change?

    I think I know what you need, you are not asking for the right help.

    You will need three macros not one.


    right click on the sheet name at the bottom of excel and select view code

    paste this code there and close the module.

    Please Login or Register  to view this content.

    Now click on K4.
    Last edited by mehmetcik; 04-09-2016 at 03:39 AM.

  5. #5
    Forum Contributor
    Join Date
    12-06-2013
    Location
    Sri Lanka
    MS-Off Ver
    Excel 2016
    Posts
    611

    Re: Cumulative value

    Actually, the requirement is to keep the CUMULATIVE intact when you delete what is entered in to J4, M4, P4 and S4.

    In simple way, we can do this by using + sign for adding values in J4, M4, P4 and S4 cells. However, this is cumbersome as the day by day, the numbers are getting longer and longer in J4, M4, P4 and S4 cells.

  6. #6
    Forum Expert
    Join Date
    12-14-2012
    Location
    London England
    MS-Off Ver
    MS 365 Office Suite.
    Posts
    8,448

    Re: Cumulative value

    Ok I have created what I think you need.

    The Log is saved on sheet 2.

    You correct your mistakes in sheet2


    Please Login or Register  to view this content.
    Attached Files Attached Files

  7. #7
    Forum Contributor
    Join Date
    12-06-2013
    Location
    Sri Lanka
    MS-Off Ver
    Excel 2016
    Posts
    611

    Re: Cumulative value

    Hi,

    Thanks for the hard work. However, there is one problem. When values are entered to "daily Prd" columns such as M4, P4 and S4, the "cumulatives" in K4, N4 and Q4 changes (every value entered in "daily Prd", is added backwards in chain). Pls check..

  8. #8
    Forum Expert
    Join Date
    12-14-2012
    Location
    London England
    MS-Off Ver
    MS 365 Office Suite.
    Posts
    8,448

    Re: Cumulative value

    My mistake.

    I forgot to set the macro to look in column 1 for the date, it was looking in column2

    Right click on the sheet name at the bottom of Sheet1 and select view code

    paste this code there:

    Please Login or Register  to view this content.

  9. #9
    Forum Contributor
    Join Date
    12-06-2013
    Location
    Sri Lanka
    MS-Off Ver
    Excel 2016
    Posts
    611

    Post Re: Cumulative value

    Hi..

    The "cumulative" value in all the (K4, N4, Q4, and T4) changes to the same value that is entered in to the "daily Prod" columns. they do not retain the "cumulative" value. Please rectify. And please I need to apply the same conditioning to the V4 and W4 cells where daily and cumulative values have to be shown. And, I need you kind response to the following questions.

    01. These codes work only for the row no 4, what about the other rows down the sheet..(row 4 to 19 )?
    02. If I have to add more rows down the sheet, what changes should I do in the codes?
    03. If I have to add more columns, what changes should I do in the codes?

    I have again attached the sheet with the additional two columns(V and W).

    Thanks
    Attached Files Attached Files

  10. #10
    Forum Expert
    Join Date
    12-14-2012
    Location
    London England
    MS-Off Ver
    MS 365 Office Suite.
    Posts
    8,448

    Re: Cumulative value

    If you want to keep the historical data for all the rows then that is an entirely different problem requiring a completely new spreadsheet and completely new solution.

    You said: I need to type values in cells J4, M4, P4 and S4 daily and, those values should be accumulated in cells K4, N4, Q4, and T4 respectively.


    This code does that:

    Please Login or Register  to view this content.

    I suggest that you mark this thread and start a new one stating your requirement clearly.

  11. #11
    Forum Contributor
    Join Date
    12-06-2013
    Location
    Sri Lanka
    MS-Off Ver
    Excel 2016
    Posts
    611

    Re: Cumulative value

    Thanks for the guide lines. I will do.

+ 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. Cumulative Sum
    By manisai in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 06-14-2015, 02:21 AM
  2. Formulas for cumulative value and cumulative %
    By Brotein in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 10-28-2013, 07:19 PM
  3. [SOLVED] Cumulative Sum
    By Hassan1977 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-22-2013, 05:56 AM
  4. Cumulative Sum
    By Fraser Clark in forum Excel General
    Replies: 5
    Last Post: 12-31-2008, 12:26 PM
  5. [SOLVED] Cumulative Sum
    By Arvi Laanemets in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 09-06-2005, 06:05 AM
  6. [SOLVED] Cumulative Sum
    By kk in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 03:05 AM
  7. [SOLVED] Cumulative Sum
    By kk in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 06-16-2005, 04:05 AM

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