+ Reply to Thread
Results 1 to 5 of 5

Code for Running Total Using only 2 cells

  1. #1
    Registered User
    Join Date
    01-15-2012
    Location
    Louisiana
    MS-Off Ver
    Excel 2010
    Posts
    4

    Code for Running Total Using only 2 cells

    Not sure if this is possible, I'm assuming it can be done with VBA, but I don't know VBA. I'm trying to create a spreadsheet that uses one cell to enter a dollar amount and stores the amount entered in another cell. But I would like the input cell be zero after each entry, and the cell storing the amounts to keep a running total. Please help Thanks
    Last edited by navdad; 01-18-2012 at 02:07 AM.

  2. #2
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,166

    Re: Code for Running Total Using only 2 cells

    It will be good if you attach a sample file.
    If I have helped, Don't forget to add to my reputation (click on the star below the post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)
    Use code tags when posting your VBA code: [code] Your code here [/code]

  3. #3
    Registered User
    Join Date
    01-15-2012
    Location
    Louisiana
    MS-Off Ver
    Excel 2010
    Posts
    4

    Re: Code for Running Total Using only 2 cells

    Problem solved everything working perfectly.. I'd like to thank Richard for the first part of the code. The second part took some trial and error but I final got it working. So I'm posting the code in case someone else comes across the same problem.

    Please Login or Register  to view this content.

  4. #4
    Registered User
    Join Date
    01-20-2012
    Location
    Alpharetta, GA, USA
    MS-Off Ver
    Excel 2010
    Posts
    1

    Re: Code for Running Total Using only 2 cells

    OK, I was looking for the answer to this exact question. Problem is, I don't know how to use this answer as given. Is this a macro? How do I incorporate it?
    Thanks

  5. #5
    Registered User
    Join Date
    07-01-2013
    Location
    Chennai
    MS-Off Ver
    Excel 2007
    Posts
    7

    Re: Code for Running Total Using only 2 cells

    Hello

    how will the macro for the below scenario look like? Also, attached the sample spreadsheet, need help on the MTDValues sheet.

    Date a b c d e
    7/1/2013 $12.00 $54.00 $32.00 $48.00 $56.00

    The first cell (range "A") is date and other cells (range "B" to "F" - this may further be required to extend) are sales values for the date. Now there will values falling every day underneath this for the remaining month, and the values should have cumulative values generated on the daily basis. For the 1st day of the month the sales value and cumulative value would be the same, now from the 2nd day of the month on-wards the value should add up to its preceding days cumulative value in each cell. How to go about it. Any help would be greatly appreciated.

    Thanks.
    Attached Files Attached Files
    Last edited by prakashananth; 07-03-2013 at 12:21 PM. Reason: attaching the sample spreadsheet

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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