View Single Post
  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
JE McGimpsey JE McGimpsey is offline
external usenet poster
 
Posts: 4,624
Default Converting time to decimal

Since XL stores times as fractional days, you can use XL's conversion of
TRUE/FALSE to 1/0, respectively, to add 1 (day) if the times span
midnight:

A1: <start time
B1: <finish time
C1: = B1 - A1 + (B1<A1)

An alternative that does the same thing:

C1: =MOD(B1-A1,1)


In article ,
"NoodNutt" wrote:

Hi all

I can easily work the time calculation:
Start Time: Mon 00:01AM
Finish Time Mon 23:59PM

How do I calculate time past midnight into the next day so it = 11:00 hours.

Start Time: Mon 21:00PM
Finish Time: Tue 08:00AM


TIA
Mark.