Hi guys, I hope someone can help me here.
I have a spreadsheet which has, in column B, a whole host of Temperature readings. What I'm doing is tracking the change in Temperature (dT) from one row to the next and, in column O, I want to put 0 if dT < 5 and 1 if dT >5 e.g. O4 = IF((B4-B3)>5,1,0).
This is in a macro because the number of rows will vary from time to time. I already have a pretty decent code to do this which is here:
(Contained within a With statement in a larger code).![]()
Please Login or Register to view this content.
The problem I have is that my boss wants others to be able to follow my (not complex) code and doesn't want the relative R1C1 format, preferring that I use absolute references instead. I've gotten used to R1C1 since I started playing around with code (not long ago) so I'm a little stuck. The code I thought would work is this:
The code runs without errors but doesn't apply correctly. The cells which are given a value of 1 seem quite arbitrary. Is there something I'm doing wrong?![]()
Please Login or Register to view this content.
Cheers,
Michael
Bookmarks