There is in fact a date there! It's 1-Jan-1900 it's just that you
don't see it without a date format. If you understand that, you'll see
why the above works. If B1<A1, it must be the next day, so add 1.
--
Regards
Norman Harker MVP (Excel)
Sydney, Australia
(e-mail address removed)
Excel and Word Function Lists (Classifications, Syntax and Arguments)
available free to good homes.
ngrams said:
Can you count the hours between times if the dates are not used?