View Single Post
  #5   Report Post  
Posted to microsoft.public.excel.misc
Stephen White Stephen White is offline
external usenet poster
 
Posts: 8
Default Time period spanning midnight


Many thanks. This is very neat and works so far as I have tested it so
long as I make it

=MOD(B1-A1,1)*24

But can you please explain to me why it works? Why does it not always
give a result of zero since the modulus of anything divided by 1 must be
zero, musn't it and anything multiplied by zero is zero?

In article , T. Valko
writes
Enter the times as TIMES

A1 = 21:30
B1 = 3:45

What is the neatest formula to calculate the number
of hours between them?


=MOD(B1-A1,1)






--
Stephen White )