I am trying to write an ifelse statement to show that if the text in column B is equal to "Green" then Column C should say "Go". If Column B is equal to "Yellow" then Column C should say "Yield" and if column B is equal to "Red" then Column C should say "Stop"
I was using the below code. The code says it completes but nothing gets populated.
If Range("B7:B50").Text = "Green" Then
Range("C7:C50").Text = "Go"
ElseIf Range("B7:B50").Text = "Yellow" Then
Range("C7:C50").Text = "Yield"
ElseIf Range("B7:B50").Text = "Red" Then
Range("C7:C50").Text = "Stop"
End If
Can someone take a look and help me out?