Thread: time problems
View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Bob Phillips Bob Phillips is offline
external usenet poster
 
Posts: 10,593
Default time problems

=MOD(A2-A1,1)

--
HTH

Bob Phillips

(replace somewhere in email address with gmail if mailing direct)

"Stan Halls" wrote in message
...
I have a spread sheet and in this sheet i have a set time that it takes to

do
a run ie 01:30 1 hour 30 mins (A1)
then i have another cell that i input a time (A2) and a 3rd cell that has
an if function that says =if( a20, a2-a1,"") this works fine untill the

time
difference goes back past midnight, if A2 = 01:00 and A1= 01:30 then i get
###### instead of 23:30, in lotus 123 it worked fine but excel seems to

have
a problem with this, any ideas what i am doing wrong ?