sharky12345
Well-known Member
- Joined
- Aug 5, 2010
- Messages
- 3,422
- Office Version
- 2016
- Platform
- Windows
I'm trying to use 'Cell.Value' in a formula but it isn't working - it's putting the phrase itself in rather than the cell reference, this is what I have;
Can someone show me where I'm going wrong please?
Code:
For Each Cell In Range("U2:U20")
If Cell <> "" Then
Cell.Offset(0, 1).Formula = "=COUNTIF(Deployments!$S$2:$S5000,Cell)"
End If
Next
Can someone show me where I'm going wrong please?
Last edited: