Thread
:
If then else needed in Excel 2007
View Single Post
#
2
Posted to microsoft.public.excel.worksheet.functions
Don Guillett
external usenet poster
Posts: 10,124
If then else needed in Excel 2007
Right click sheet tabview codeinsert this.
Private Sub Worksheet_Change(ByVal Target As Range)
'On Error Resume Next
If Target.Address < Range("c3").Address Then Exit Sub
If Not IsNumeric(Target) Then
If IsNumeric(Target.Offset(1)) Then
Target.Offset(1) = -Abs(Target.Offset(1))
End If
End If
End Sub
--
Don Guillett
Microsoft MVP Excel
SalesAid Software
"Legal Learning" wrote in message
...
Ok, here's a reall good one: Here is what I need:
Cell C3 may or may not contain text. If it does, then I want cell C4's
numeric data (which is currently a positive number) to be a negative
number
instead.
Example:
C3=CR
C4=100.00
I want cell C4 to be -100.00 instead of 100.00
Does this make sense?
Any Excel heads out there that can help will be GREATLY appreciated.
CG
Right now I have
--
CLG
Reply With Quote
Don Guillett
View Public Profile
Find all posts by Don Guillett