calculating difference in time
=MOD(D2-B2,1), and format as [h]:mm
The MOD() formula allows for times running over midnight, so if you wanted
to work out the time from 10pm to 7am, =MOD(B2-D2,1) would do it for you.
If you want to convert to decimal hours, =24*MOD(B2-D2,1), and format as
number or general, not time.
You'll have to make sure you enter 7 am with the space, as 7am without a
space will be treated as text. Similarly with the pm.
--
David Biddulph
"tam25" wrote in message
...
how do we calculate the amount of time between two set times? for
example,
d2 as time of 10pm and b2 has time of 7am. do we need to have the column
formatted as a time or number? Or is there a specific calc we need?
Help please
|