+ Reply to Thread
Results 1 to 7 of 7

Fixed running total

  1. #1
    Registered User
    Join Date
    06-18-2019
    Location
    Grantham, England
    MS-Off Ver
    2016
    Posts
    6

    Fixed running total

    Hi
    I know how to total sum cells together but-
    I need for example, if AA5,AA6,AA7,AA8= 1 (AA5 has 1 in it) and i change the value in AA5 back to 0 the sum total stay fixed at 1, so if AA6 was to show 3 it would =4 and keep an ongoing total regardless of numbers changing back to 0 in above cells, make sense?


    Moderator's note: Cross-posted at https://www.mrexcel.com/forum/excel-...ing-total.html
    Last edited by 6StringJazzer; 06-18-2019 at 02:17 PM.

  2. #2
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,721

    Re: Fixed running total

    Welcome to the Forum bizmark222!

    I'm getting the general idea but there are some details you need to explain to us.

    First, it sounds like you want to enter some numbers into some cells. Then if you change any of the numbers you want the other numbers to be automatically adjusted to keep the sum the same.

    How do you determine what you want the fixed sum to be?

    If you change AA5, there are three other cells--which ones do you want to change to keep the sum fixed?

    Regardless of the details, if cells have numbers in them (not formulas), and you want those numbers to change automatically, then a macro is required.
    Jeff
    | | |會 |會 |會 |會 | |:| | |會 |會
    Read the rules
    Use code tags to [code]enclose your code![/code]

  3. #3
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,721

    Re: Fixed running total

    Administrative Note:

    Welcome to the forum.

    We would very much like to help you with your query, however it has been brought to our attention that the same query has been posted on one or more other forums and you have not provided the required cross-post link(s) here.

    Read this to understand why we (and other sites like us) consider this to be important.

    I have provided the link because you are a new member.

  4. #4
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: Fixed running total

    I think it would require VBA (some programming) as the cells do not have memories and would not be able to keep track of what values you had in them before.

    What would you expect if you changed AA5 multiple times? Would it sum up the total of all these changes?

    The coding is not difficult but, as StringJazzer said, a little more information would help. How many cells are we talking about? An example workbook would also help.

    Attach a sample workbook (not a picture or pasted copy). Make sure there is just enough data to demonstrate your need. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate. Make sure your desired results are shown, mock them up manually if necessary.

    Remember to desensitize the data.

    Click on GO ADVANCED and then scroll down to Manage Attachments to open the upload window.
    ChemistB
    My 2?

    substitute commas with semi-colons if your region settings requires
    Don't forget to mark threads as "Solved" (Edit First post>Advanced>Change Prefix)
    If I helped, Don't forget to add to my reputation (click on the little star at bottom of this post)

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

  5. #5
    Registered User
    Join Date
    06-18-2019
    Location
    Grantham, England
    MS-Off Ver
    2016
    Posts
    6
    Quote Originally Posted by 6StringJazzer View Post
    Welcome to the Forum bizmark222!

    I'm getting the general idea but there are some details you need to explain to us.

    First, it sounds like you want to enter some numbers into some cells. Then if you change any of the numbers you want the other numbers to be automatically adjusted to keep the sum the same.

    How do you determine what you want the fixed sum to be?

    If you change AA5, there are three other cells--which ones do you want to change to keep the sum fixed?

    Regardless of the details, if cells have numbers in them (not formulas), and you want those numbers to change automatically, then a macro is required.


    Hi
    Basically, if a value in a cell goes under 1.6, I have a trigger to show a 1 for positive. Obviously when it goes over 1.6 i have the show nothing " " .
    Is there a way where when the 1 id triggered it stays fixed in cell and won't revert back to " " , when over 1.6 again?

    Thank you all for your help

  6. #6
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: Fixed running total

    You can use VBA or you can use iteration. Here's how to do it with iteration
    1. Go to File>Options>Formulas > Calculation options. Check "Enable iteration calculation"

    2. Then in your worksheet, (let's say your 0's and 1's are going in column B and your values are in column A)
    Enter this formula in B2 copied down
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    See example workbook. Does that do what you asked?
    Attached Files Attached Files

  7. #7
    Registered User
    Join Date
    06-18-2019
    Location
    Grantham, England
    MS-Off Ver
    2016
    Posts
    6
    Quote Originally Posted by ChemistB View Post
    You can use VBA or you can use iteration. Here's how to do it with iteration
    1. Go to File>Options>Formulas > Calculation options. Check "Enable iteration calculation"

    2. Then in your worksheet, (let's say your 0's and 1's are going in column B and your values are in column A)
    Enter this formula in B2 copied down
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    See example workbook. Does that do what you asked?
    That worked a treat thank you.
    I just highlight the formula and press enter and the ones reset back to zero.

+ 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 calculate running total + total remaining in a pivot?
    By Traste in forum Excel Charting & Pivots
    Replies: 6
    Last Post: 11-03-2017, 10:41 AM
  2. Running total after payments running total on excel
    By tmagplayr in forum Excel General
    Replies: 7
    Last Post: 09-26-2017, 02:01 PM
  3. Replies: 8
    Last Post: 07-19-2017, 12:06 PM
  4. [SOLVED] Running total from a daliy worksheet into a montly total.
    By jakesib in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 06-15-2014, 10:49 PM
  5. Pivot Chart Running Total - Removing Current Year Future Total
    By car3489 in forum Excel Charting & Pivots
    Replies: 5
    Last Post: 07-27-2013, 03:35 AM
  6. Running total of multiple running totals
    By ashncg in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 03-09-2011, 05:20 PM
  7. [SOLVED] % of Running Total to Grand Total in Pivot Table
    By David in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 08-17-2005, 04:05 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