sharky12345
Well-known Member
- Joined
- Aug 5, 2010
- Messages
- 3,404
- Office Version
- 2016
- Platform
- Windows
How can I use a cell address in a formula within a range loop?
I've tried the below but it doesn't work;
I've tried the below but it doesn't work;
Code:
For Each cell In Range("B3:B18")
If cell.Value <> 0 Then
cell.Offset(0, 1).Formula = "=IF(Cell="""","""",COUNTIF(DEPLOYMENTS!$S$2:$S10000,Cell))"
End If
Next
Last edited: