+ Reply to Thread
Results 1 to 3 of 3

Running total

  1. #1
    Registered User
    Join Date
    09-26-2011
    Location
    Lancs, England
    MS-Off Ver
    Excel 2007
    Posts
    1

    Running total

    Hello
    Can someone please tell me if this is possible and if so how?

    I enter a number in cell A1 (let's say 10)
    this value displays in cell B1 (10)
    when I change the number in cell A1 (to 22)
    the value in B1 shows the total of the two entries (32)

    each time I change the entry in A1 I would like B1 to increment by that number.

    Thanks

  2. #2
    Forum Expert Domski's Avatar
    Join Date
    12-14-2009
    Location
    A galaxy far, far away
    MS-Off Ver
    Darth Office 2010
    Posts
    3,950

    Re: Running total

    Hi,

    Like this:

    Please Login or Register  to view this content.

    Right click on the sheet tab, select view code and paste the above onto the code page that's displayed. You'll probably want to put some validation on A1 to stop the user entering text.

    Dom
    "May the fleas of a thousand camels infest the crotch of the person who screws up your day and may their arms be too short to scratch..."

    Use code tags when posting your VBA code: [code] Your code here [/code]

    Remember, saying thanks only takes a second or two. Click the little star to give some Rep if you think an answer deserves it.

  3. #3
    Forum Expert Colin Legg's Avatar
    Join Date
    03-30-2008
    Location
    UK
    MS-Off Ver
    365
    Posts
    1,256

    Re: Running total

    Welcome to the forum.

    You have to use VBA to do this. I've attached a simple example; the code in the worksheet's class module is this:
    Please Login or Register  to view this content.
    Attached Files Attached Files
    Hope that helps,

    Colin

    RAD Excel Blog

+ 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