Closed Thread
Results 1 to 10 of 10

adding numbers in a single cell as a running total in that cell ?

Hybrid View

  1. #1
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: adding numbers in a single cell as a running total in that cell ?

    Leith, what does the second formula do? I like yours way better than mine, so as I add your superior version to my .CLS options, I just want to make sure I fully understand it.
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

  2. #2
    Registered User
    Join Date
    01-28-2009
    Location
    usa
    MS-Off Ver
    Excel 2003
    Posts
    8

    Re: adding numbers in a single cell as a running total in that cell ?

    Thanks alot guys for the quick answers I really appreciate the help....I can grasp what your saying but im not sure where to make the changes in those macros. I have'nt had to use a macro for anything yet and know nothing about them. i am making a weekly list that includes 7 days and prices for paid line items each has a 25 cells in a colum and 1 colum for each day of the week. so the range of cells that need this macro to make it work for this sheet would be cells d3 to j3 all the way down to d28 to j28 and all of them inside that...... would i have to do that for every one of those boxes ? or would that macro work for the whole page? will I need to input header coordinates for each macro:? lol sorry.
    Last edited by jlg371; 01-30-2009 at 09:07 PM. Reason: forgot to thank those who tried to help

  3. #3
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,259

    Re: adding numbers in a single cell as a running total in that cell ?

    Hello JB,

    The Selection_Change() event records the cell's value before it is changed and saves it in the variable Prev. When the cell 's contents change, the Worksheet_Change() event fires. The current contents are then added to the previous value.
    Sincerely,
    Leith Ross

    Remember To Do the Following....

    1. Use code tags. Place [CODE] before the first line of code and [/CODE] after the last line of code.
    2. Thank those who have helped you by clicking the Star below the post.
    3. Please mark your post [SOLVED] if it has been answered satisfactorily.


    Old Scottish Proverb...
    Luathaid gu deanamh maille! (Rushing causes delays!)

Closed 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