Converting time to decimal

N

NoodNutt

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.
 
A

Arvi Laanemets

Hi

=FinishTime-StartTime+(FinishTime<StartTime)

Replace StartTime and FinisTime with proper cell references. It works fine
when time interval remains <24 hours.
 
J

JE McGimpsey

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)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top