Are you sure you want to do this?
Think about it after reading the following.
You can have a cumulative total in a cell if you have a
separate source cell for adding a new total to the original.
Use at your own risk. I am Posting this just to show you how it can
be done, not as a good solution. You would be much better off to
have another column so you can keep track of past entries.
Goes like this: =IF(CELL("address")="$C$4",C4+D4,D4)
Enter this in cell D4 and then in Tools>Options>Calculation check
Iterations and set to 1.
Now when you change the number in C4, D4 will accumulate.
Note 1. If C4 is selected and a calculation takes place anywhere in
the Application D4 will update even if no new number is entered in
C4. NOT GOOD.
Note 2. This operation is not recommended because you will have no
"paper trail" to follow. Any mistake in entering a new number in C4
cannot be corrected. NOT GOOD.
To clear out the accumulated total in D4 and start over, select D4
and Edit>Enter.
Check out Laurent Longre's MoreFunc.xla. Has a Function RECALL
which does what you want without the re-calculation problem, but
again there is no "paper trail" for back-checking in case of errors
in data input.
http://longre.free.fr/english/func_cats.htm
Also see John McGimpsey's site for VBA method.
http://www.mcgimpsey.com/excel/accumulator.html
Gord Dibben Excel MVP
Is it possible to have numbers added to the same cell and have excel continue
to calculate the addition for me in that same cell......ex: I have the number
8 in cell d2 and I want to add the number 8 to that cell and have excel add
the 8 to the previous 8 for a total of 16 in the same cell.....the next time
I would add 5, and the total would be 21? Can this be done in a single cell?
Gord Dibben MS Excel MVP