Sub ChangeValue()
Dim lastRow As Long
lastRow = Range("L65536").End(xlUp).Row
Application.ScreenUpdating = False
For i = 2 To lastRow
If Cells(i, "L").Value = "CostManager" Then
Cells(i, "O").Value = "P"
End If
Next i
Application.ScreenUpdating = True
End Sub