Hello all
I hope you can help on this please
In column "F" I have various territory codes
In column "E" starting from row 13 I have user names
What I need is IF CELL IN COLUMN "F" = "OFF" THEN ENTER IN THAT CELL THE VALUE FROM "E" (Same Row) if not leave the values in this cell
Example would be
John WR
Sue OFF
Result
John WR
Sue Sue
This is the code that I am trying to change to work correctly because it's very similar to what I need but I can't get it right
I hope you can help on this please
In column "F" I have various territory codes
In column "E" starting from row 13 I have user names
What I need is IF CELL IN COLUMN "F" = "OFF" THEN ENTER IN THAT CELL THE VALUE FROM "E" (Same Row) if not leave the values in this cell
Example would be
John WR
Sue OFF
Result
John WR
Sue Sue
This is the code that I am trying to change to work correctly because it's very similar to what I need but I can't get it right
Code:
Sub OffChange()
Sheets("Dashboard").Select
With Range("E13", Range("F" & Rows.Count).End(xlUp).Offset(, -1))
.Value = Evaluate(Replace("If(@=""""," & .Address & ",""OFF"")", "@", .Offset(, 1).Address))
End With
End Sub
Last edited: