You still don't say how you're entering "the time of 2 hours ago". Are
you entering it as a date and time, like Now() does? Then the
calculation will work.
If you're just entering the time (e.g., 3:00 or 0.125, since 3:00 is 1/8
of 1 day), then you'll need to use just the fractional part of NOW(),
e.g,
E40: =MOD(NOW(),1)
formatted as a time.
Then your time difference will work. If your times span midnight, then
use
=MOD(E40-E44,1)*24
How are you populating E40 and E44? If you're using the NOW() function,
note that it returns the date (as the integer offset from a base date)
as well, so if
E40: =NOW()
E33: 2:00
then your result will be very large.
Correct, E40 is a now function and E44 was the time of 2 hours ago. I
format the cell so that there are no AM or PM display after 2:00, but I
don't want display 2:00, I want 2 instead. Based on your explaination, it
seemed like I cannot convert the result into decimal if I use the now
function?[/QUOTE]