ndendrinos
Well-known Member
- Joined
- Jan 17, 2003
- Messages
- 1,694
this is a sheet change event that does the following:
So as I type starting in A17
If value in column B is less than the value in column A then the difference is shown in column C
And it works perfect like this:
A17=5...B17=5...C17...s/b empty
A18=8...B18=8...C18...s/b empty
A19=3...B19=3...C19...s/b empty
A20=7...B20=6...C20...s/b 1
EXCEPT that in C17 I get 0 (zero) instead of an empty cell (all the rest of the "empty" are indeed empty without a zero)
Well that zero in C17 has to go for it interferes with my other code
Many thanks
P.S all cells in C17:C35 are formatted general
So as I type starting in A17
If value in column B is less than the value in column A then the difference is shown in column C
And it works perfect like this:
A17=5...B17=5...C17...s/b empty
A18=8...B18=8...C18...s/b empty
A19=3...B19=3...C19...s/b empty
A20=7...B20=6...C20...s/b 1
EXCEPT that in C17 I get 0 (zero) instead of an empty cell (all the rest of the "empty" are indeed empty without a zero)
Well that zero in C17 has to go for it interferes with my other code
Many thanks
Code:
'If Not Intersect(Target, Range("B17:B35")) Is Nothing Then
' x = Target.Row
'Cells(x, 3) = Cells(x, 1) - Cells(x, 2)
'End If
P.S all cells in C17:C35 are formatted general
Last edited: