zealottoyou
New Member
- Joined
- Aug 28, 2014
- Messages
- 4
Hi, here is an example of what i try to do. If the cell value is 1 then the cell 2 column to the right will return 1, if not it should return 2. However I just can't get it to work. Any help is greatly appreciated.
Code:
For p = 12 To 20
For i = 12 To 20
If Cells(i, "Q").Value = "1" Then
Cells(p, "S").Value = "1"
Else
Cells(p, "S").Value = "2"
End If
Next i
Next p
End Sub