I have this code
For i = 1 to 9999
If sheets ("sheet1").cells (i, 5).value >= sheets ("sheet2").cells (i, 8).value And sheets ("sheet1").cells (i, 5).value <= sheets ("sheet2").cells (i, 11).value then
Sheets ("sheet1").cells (i, 10).value = "true"
What the code is suppose to do is check if value on sheet1 is within a range of values between two figures on sheet2. But it doesn't seem to work. Any help would be much appreciated.
Sheets ("Sheet1")should beSheets("Sheet1")) and the fact that it's commented out... it looks fine to me. What does "Doesn't seem to work" mean? It says (for clarification) if the contents of column E is between column H and K then print "true" in column J. Is that what you want it to do?