Hi Gayle
You could create a Circular Reference to do this but this can cause side effects. Try this instead. Right click on the Sheet name tab and select "View Code", copy and paste in this Code.
Private Sub Worksheet_Change(ByVal Target As Excel.Range)
'Written by Ozgrid Business Applications
'www.ozgrid.com
Dim rWatchRange As Range
If Target.Cells.Count > 1 Then Exit Sub
Set rWatchRange = Range("A2:A100")
If Not Intersect(Target, rWatchRange) Is Nothing Then
If IsNumeric(Target) And IsNumeric(Target.Offset(0, 1)) Then
Target.Offset(0, 1) = Target + Target.Offset(0, 1)
End If
End If
Set rWatchRange = Nothing
End Sub
You can change the range A2:A100 to suit.
Dave
OzGrid Business Applications
DAVE GREAT TIP BUT HOW CAN I APPLY SAME PRINCIPLE FOR SEVERAL COLUMNS. FOR EXAMPLE...
A B C D E F
MTD YTD MTD YTD MTD YTD
A B C D E F
Hi Roy
Use this one instead.
Private Sub Worksheet_Change(ByVal Target As Excel.Range)
'Written by Ozgrid Business Applications
'www.ozgrid.com
Dim rWatchRange As Range
If Target.Cells.Count > 1 Then Exit Sub
Set rWatchRange = Range("A:A,C:C,E:E,G:G")
If Not Intersect(Target, rWatchRange) Is Nothing Then
If IsNumeric(Target) And IsNumeric(Target.Offset(0, 1)) Then
Target.Offset(0, 1) = Target + Target.Offset(0, 1)
End If
End If
Set rWatchRange = Nothing
End Sub
Dave
OzGrid Business Applications