Posts Topics Forums Images
Search videos from message boards Videos Search messages from microblogs Microblogs Search messages from imdb.com Imdb Search messages from yuku.com Yuku Search messages from lefora.com (free forums) Lefora
My account: Login | Sign Up
Loading... 

Thread: Formula question??

Started 1 month, 3 weeks ago by Brad Grow
I need to know if there is a way to create a formula that will allow me to enter multiple values in a cell at different times and this formula will sum there values. Example: I would enter 10 in cell B3. An hour later I might enter 25 also in cell B3. After the second entry I would want it to automaticaly display 35. Is this possible and how would it be done? Thanks for ...
Site: Microsoft Excel forum  Microsoft Excel forum - site profile
Forum: New Users to Excel  New Users to Excel - forum profile
Total authors: 4 authors
Total thread posts: 15 posts
Thread activity: no new posts during last week
Domain info for: excelbanter.com

Other posts in this thread:

Peo Sjoblom[_3_] replied 1 month, 3 weeks ago
At the bottom there is a formula solution turning on iterations http://www.mcgimpsey.com/excel/accumulator.html -- Regards, Peo Sjoblom "Brad Grow" <Brad

Gord Dibben replied 1 month, 3 weeks ago
And make note of the caveat about having no "audit trail" for error checking. Gord Dibben MS Excel MVP On Wed, 28 Oct 2009 08:27:59 -0700, "Peo Sjoblom" > wrote: >At the bottom there is a formula solution turning on iterations > > http://www.mcgimpsey.com/excel/accumulator.html

Brad Grow[_2_] replied 1 month, 2 weeks ago
OK. This is great- it can be done! Pretty new at this so what do I do with this code? Copy and paste somewhere? Thanks! "Peo Sjoblom" wrote: > At the bottom there is a formula solution turning on iterations > > http://www.mcgimpsey.com/excel/accumulator.html > > -- > > > Regards, > > > Peo Sjoblom > > > "Brad Grow" <Brad

Peo Sjoblom[_3_] replied 1 month, 2 weeks ago
Here you go http://www.mvps.org/dmcritchie/excel/install.htm -- Regards, Peo Sjoblom "Brad Grow" > wrote in message ... > OK. This is great- it can be done! > > Pretty new at this so what do I do with this code? Copy and paste > somewhere? > > Thanks! > > "Peo Sjoblom" wrote: > >> At the bottom there is a formula solution turning on iterations >> >> ...

Brad Grow[_2_] replied 1 month, 1 week ago
OK. Finally got back on this little project and got it to work. Now how can I make this work for more than one cell on a worksheet? I have played with it a little bit and I can make it work anywhere on the worksheet, but only one spot. Also is there any potential problems by having it apply to a range of cells? Thank you agaun for your time and assistance. "Peo Sjoblom" wrote:...

Gord Dibben replied 1 month, 1 week ago
Private Sub Worksheet_Change(ByVal Target As Excel.Range) Static dAccumulator As Double Const WS_RANGE As String = "A1:A10" 'adjust range to suit. If Not Intersect(Target, Me.Range(WS_RANGE)) Is Nothing Then With Target If Not IsEmpty(.Value) And IsNumeric(.Value) Then dAccumulator = dAccumulator + .Value Else ...

Brad Grow[_2_] replied 1 month, 1 week ago
Really appreciate all the help you guys have given. I'd still be at square one with this if it wasn't for you. Gord; I was actually referring to having the original accumulator work in many cells independently of each other. This code seems to make cells A1 thru A10 Accumulate in each cell but then as you go down the column they are summing themselves up as well. Does that make ...

Gord Dibben replied 1 month, 1 week ago
Poor testing on my part. I will try to come up with something that works over a range of cells. In the meantime hang in.........someone else may post a solution. Gord On Tue, 10 Nov 2009 19:31:25 -0800, Brad Grow > wrote: >Really appreciate all the help you guys have given. I'd still be at square >one with this if it wasn't for you. > >Gord; I was actually referring to ...

Gord Dibben replied 1 month, 1 week ago
Give this a try Option Explicit Dim oldval As Variant Const WS_RANGE As String = "D6:K36" Private Sub Worksheet_SelectionChange(ByVal Target As Range) If Not Intersect(Target, Me.Range(WS_RANGE)) Is Nothing Then oldval = Target.Value 'store value of selected cell End If End Sub Private Sub Worksheet_Change(ByVal Target As Range) 'On Error GoTo ws_exit: ...

Gord Dibben replied 1 month, 1 week ago
Just a note........... Does not trap for errors created by user entering text string. If you need that post back. Gord On Wed, 11 Nov 2009 12:20:07 -0800, Gord Dibben <gorddibbATshawDOTca> wrote: >Give this a try > >Option Explicit >Dim oldval As Variant >Const WS_RANGE As String = "D6:K36" > >Private Sub Worksheet_SelectionChange(ByVal Target As Range) > If Not ...

 

Top contributing authors

Name
Posts
Gord Dibben
7
user's latest post:
Formula question?? - Page 2 -...
Published (2009-11-14 22:13:00)
The one worksheet_change event has a trap to re-enable events if an error occurs. I had remmed out that line when testing and forgot to unrem it. Try this version of the change_event Private Sub Worksheet_Change(ByVal Target As Range) On Error GoTo ws_exit: Application.EnableEvents = False If Not Intersect(Target, Me.Range(WS_RANGE)) Is Nothing Then With Target If Application.IsNumber(.Value) Then 'checks for text .Value = .Value +...
Brad Grow[_2_]
5
user's latest post:
Formula question?? - Page 2 -...
Published (2009-11-14 16:21:00)
Gord: Great- I got it to work! One more question and this will be over. If an error comes up(due to a mistake on my part) it seems that the event stops working. How do I restart it? I understand your concern about having an accumulator of this size. This is one of those situations where this fits my purpose perfectly. This application use fairly small numbers and is not that critical- a small mistake here or there just won't end the...
Peo Sjoblom[_3_]
2
user's latest post:
Formula question??
Published (2009-10-30 18:19:00)
Here you go http://www.mvps.org/dmcritchie/excel/install.htm -- Regards, Peo Sjoblom &quot;Brad Grow&quot; &gt; wrote in message ... &gt; OK. This is great- it can be done! &gt; &gt; Pretty new at this so what do I do with this code? Copy and paste &gt; somewhere? &gt; &gt; Thanks! &gt; &gt; &quot;Peo Sjoblom&quot; wrote: &gt; &gt;&gt; At the bottom there is a formula solution...
Brad Grow
1
user's latest post:
Formula question??
Published (2009-10-28 15:51:00)
I need to know if there is a way to create a formula that will allow me to enter multiple values in a cell at different times and this formula will sum there values. Example: I would enter 10 in cell B3. An hour later I might enter 25 also in cell B3. After the second entry I would want it to automaticaly display 35. Is this possible and how would it be done? Thanks for your help.

Related threads on "Microsoft Excel forum":

Related threads on other sites:

Thread profile page for "Formula question??" on http://excelbanter.com. This report page is a snippet summary view from a single thread "Formula question??", located on the Message Board at http://excelbanter.com. This thread profile page shows the thread statistics for: Total Authors, Total Thread Posts, and Thread Activity