#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 10,593
Default Add forumla

No you need VBA

Option Explicit

Private prev

Private Sub Worksheet_Change(ByVal Target As Range)
Const WS_RANGE As String = "H10" '<== change to suit

On Error GoTo ws_exit
Application.EnableEvents = False

If Not Intersect(Target, Me.Range(WS_RANGE)) Is Nothing Then
With Target
.Value = .Value + prev
prev = .Value
End With
End If

ws_exit:
Application.EnableEvents = True
End Sub

Private Sub Worksheet_SelectionChange(ByVal Target As Range)
prev = Target.Value
End Sub

'This is worksheet event code, which means that it needs to be
'placed in the appropriate worksheet code module, not a standard
'code module. To do this, right-click on the sheet tab, select
'the View Code option from the menu, and paste the code in.


--
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)

"Ross" wrote in message
...

Hi,

Does anyone know of a formula, or similar, that can be used which would
allow the user to simply type in the number to be added into the cell say
"2"
and it will add this number onto the number previously in the cell
(assume"3") giving a new total of "5".

Thanks,
R



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Forumla tuzdevil Excel Discussion (Misc queries) 2 June 1st 06 10:44 AM
Help with Forumla WeSt39 Excel Worksheet Functions 2 March 20th 06 11:22 PM
IF Forumla help Bryan Excel Discussion (Misc queries) 3 February 28th 06 11:17 AM
Forumla Help AB Excel Discussion (Misc queries) 1 January 3rd 06 12:06 AM
Forumla Don Excel Worksheet Functions 3 August 9th 05 02:52 AM


All times are GMT +1. The time now is 10:26 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"