Trying to highlight a cell if value in another column is less than 1.
Ideally just wanted to highlight value i.e. 0 -1 -2 etc, but it also highlights blanks
All 3 lines below highlighted the blanks as well as values less than 1
Ideally just wanted to highlight value i.e. 0 -1 -2 etc, but it also highlights blanks
All 3 lines below highlighted the blanks as well as values less than 1
VBA Code:
For I = 1 to 100
If range("a" & I) = 0 then range("b" & I).interior colorindex = 7
If range("a" & I) <1 then range("b" & I).interior colorindex = 7
If range("a" & I) < int(1) then range("b" & I).interior colorindex = 7
Next I