+ Reply to Thread
Results 1 to 4 of 4

running total cell macro

  1. #1
    Registered User
    Join Date
    09-21-2014
    Location
    USA
    MS-Off Ver
    2013
    Posts
    2

    running total cell macro

    Hi,

    I am looking to program an excel spread sheet for budgeting. I will have a column of weekly spending in column A, and I would like to be able to put in my paycheck amount into a cell, have the spreadsheet subtract my allowable spending budget from that amount, then have my total money left over be transferred to another cell in which it will be cumulatively added with each subsequent paycheck. I was wondering how to create a macro that can reference a value in another cell (lets say the total balance left over after my budget is subtracted from my paycheck) and will cumulatively add the values from that cell each time I put in a new paycheck value. I'm not sure if I'm explaining it well enough, but I would like the "paycheck amount" cell to reset back to zero after putting in the amount, so that it is ready to receive another value from a subsequent paycheck. With that value resetting back to zero each time, I would need a macro that can remember the past value from my "remaining balance" cell and add each subsequent value to the past value with each paycheck entry. In other words I would need a cell that has a running total which references the value placed in another cell and retains that total when the reference cell is reset back to zero.

    I have no idea how to make macros, so any help is appreciated.

    thanks

  2. #2
    Forum Expert
    Join Date
    07-31-2010
    Location
    California
    MS-Off Ver
    Excel 2007
    Posts
    4,070

    Re: running total cell macro

    Submit a copy of your workbook

  3. #3
    Registered User
    Join Date
    09-21-2014
    Location
    USA
    MS-Off Ver
    2013
    Posts
    2

    Re: running total cell macro

    So I will put my paycheck in the "paycheck amount" cell. The "total remaining balance from paycheck" cell will be C1-(C4:C12), and I want the "total account balance" cell to be a running total of each value from C13. C13 will be reset to zero after each paycheck is entered, so my "total account balance" cell will retain previous values from C13 as well as add subsequent values entered to the previous values of C13. My goal is to have the "total account balance" cell reflect what's in my bank account to some extent.

    thanks
    Attached Files Attached Files

  4. #4
    Forum Expert
    Join Date
    07-31-2010
    Location
    California
    MS-Off Ver
    Excel 2007
    Posts
    4,070

    Re: running total cell macro

    Almost all of this could be done using formulas but since you asked specifically for a macro I will do it that way. I would like to add that there are already thousands of free templates out there which are already set up and look really nice which you could use. I personally would use one of them.

    Please Login or Register  to view this content.

    Note: Having the merged cells like you have complicates things. Merged cells and macros don't work well together. More reason to actually use formula.

+ 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. [SOLVED] Macro for running total
    By prakashananth in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 07-01-2013, 10:26 AM
  2. Replies: 2
    Last Post: 05-23-2012, 08:12 PM
  3. How to set up running total in cell?
    By emspilot in forum Excel General
    Replies: 1
    Last Post: 09-01-2010, 03:54 AM
  4. Need help with a running total macro
    By Onyx in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-06-2009, 11:54 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