FindMD is set at the end, equal to Result. Result is set in one and only one place, inside an If . . . If construct, and it's set equal to a value in degrees!B2:B250.
Are you sure any cell in degrees!A2:A250 equals chkname? For the heck of it, add the following immediately before your 2nd For statement.
If this statement suspends execution, then no cell in degrees!A2:A250 matches chkname. In which case a likely cause would be trailing spaces in degrees!A2:A250.
Are you certain there are values in degrees!B2:B250? If so, are you certain there's some instance in which chkseconds2 <= chkseconds1 And chkseconds1 < chkseconds3?
For the heck of it, right before the If . . . If construct in which you set Result, add this statement.
If nothing appears in the Immediate window, then there are no instances of chkseconds1 falling between chkseconds2 and chkseconds3. On the other hand, if there are lines produced in the Immediate windows, does the LAST ONE show something between the square brackets? Note that the logic you're using iterates through the entire range degrees!A2:A250, and it only returns the value from degrees!B2:B250 corresponding to the LAST ROW in which chkseconds1 falls between chkseconds2 and chkseconds3. If all rows from 2 to 249 contain something in column B, but B250 is blank and A250 produces chkseconds2 and chkseconds3 which bracket chkseconds1, "" would be the expected (though apparently not intended) return value.
Bookmarks