S
Sixthsense
Sub IfMacro()
Set Data = Range("a1:A11")
Set Output = Range("B1:B11")
If Data.Value = "A" Then
Output = 1
ElseIf Data.Value = "B" Then
Output = 2
ElseIf Data.Value = "C" Then
Output = 3
End If
End Sub
Set Data = Range("a1:A11")
Set Output = Range("B1:B11")
If Data.Value = "A" Then
Output = 1
ElseIf Data.Value = "B" Then
Output = 2
ElseIf Data.Value = "C" Then
Output = 3
End If
End Sub