Re: Finding Time difference
- From: JE McGimpsey <jemcgimpsey@xxxxxxxx>
- Date: Fri, 13 May 2005 14:00:51 -0600
One way:
A1: <start time>
B1: <end time>
C1: =B1-A1
format C1 as time.
XL stores times as fractional days (e.g., 3:00 = 0.125), so if your
times span midnight, the "later" time will be smaller than the "earlier"
time. Compensate that by adding 1 to the "end time". You can take
advantage of XL's automatic coercion of boolean TRUE/FALSE values to 1/0:
=(B1<A1) + B1 - A1
or the more obscure, but equivalent:
=MOD(B1-A1, 1)
In article <#RvlpC$VFHA.3152@xxxxxxxxxxxxxxxxxxxx>,
"John Harris" <harris@xxxxxxxx> wrote:
> I know this has to be easy. I have a start time and an end time. I need the
> difference in hours and minutes. I used the examples in the help, but it
> converts it to text and then it won't add. Anyone?
.
- References:
- Finding Time difference
- From: John Harris
- Finding Time difference
- Prev by Date: special characters
- Next by Date: Re: Drop down menu for page references
- Previous by thread: Finding Time difference
- Next by thread: Re: Finding Time difference
- Index(es):
Relevant Pages
|
Loading