Sub Test1()
If Sheets(1).Cells(2, 25) = "GGJKK" Then
ans = Sheets(1).Cells(2, 23) * 2
If Not ans = 0.2 And Not ans = 0.18 And Not ans = 0.16 And Not ans = 0.14 Then
Sheets(1).Cells(4, 25) = Val(ans)
End If
End If
End Sub
Sub Test()
Dim r As Long, lr As Long
lr = Cells(Rows.Count, "W").End(xlUp).Row
For r = lr To 2 Step -1
If r <> 0.2 And r <> 0.18 And r <> 0.16 And r <> 0.14 And Range("Y" & r).Value = "GGJYKK" Then Range("W" & r).Value = I * 2
Next r
End Sub
Try this, untested
Code:Sub Test() Dim r As Long, lr As Long lr = Cells(Rows.Count, "W").End(xlUp).Row For r = lr To 2 Step -1 If r <> 0.2 And r <> 0.18 And r <> 0.16 And r <> 0.14 And Range("Y" & r).Value = "GGJYKK" Then Range("W" & r).Value = I * 2 Next r End Sub