Re: > 24:00
From: Myrna Larson (myrnailarson_at_chartermi.net)
Date: 09/28/04
- Next message: Richard O. Neville: "Re: Year To Date Ideas"
- Previous message: Paul Corrado: "Re: Year To Date Ideas"
- In reply to: Myrna Larson: "Re: > 24:00"
- Next in thread: an: "Re: Why 2 days and not 1 in this..."
- Reply: an: "Re: Why 2 days and not 1 in this..."
- Messages sorted by: [ date ] [ thread ]
Date: Tue, 28 Sep 2004 10:39:27 -0500
I just tried Frank's format (I should have done that before posting what's
below!) and in fact it *will* display 0 for the day for a period less than
24 hours. So Frank's solution is correct, and you don't need to modify the
calculation or use different formats form times more than one day.
I don't know why the OP says that 25 hours displays as 2 1:00. For me it
shows 1 1:00.
"Myrna Larson" <anonymous@discussions.microsoft.com> wrote in message
news:8e1hl0hun5l2989q637ikviri2babesgku@4ax.com...
> In thinking about it further, the formula I proposed will always show the
> number of days as 1, even when the time is less than 24 hours. That's
> because
> a "d" in the format string means the day of the month. You can't display a
> 0
> because there's no 0th day of the month.
>
> With that formula, if B1-A1>1, you could use the format d hh:mm, but if
> B1-A1<1, the format would have to be "0 "hh:mm
>
> But there's no way to set up a conditional number format that looks at B1
> and
> A1; it looks at the value in the cell that's being formatted.
>
> So I think you are "stuck" with displaying the number of hours as
> something
> greater than 24 here.
>
> On Mon, 27 Sep 2004 12:28:56 -0500, Myrna Larson
> <anonymous@discussions.microsoft.com> wrote:
>
>>Modify your formula to
>>
>> =IF(B1-A1>1,B1-A1-1,B1-A1)
>>
>>Then format as Frank suggests. But note that this modifies your data, so
>>you
>>won't get the correct result if you add such numbers.
>>
>>Most of the time you leave the original formula alone and instead format
>>the
>>cell to shows hours > 24 (pick the format that does that from the list of
> time
>>formats).
>>
>>On Mon, 27 Sep 2004 03:59:07 -0700, "an"
> <anonymous@discussions.microsoft.com>
>>wrote:
>>
>>>Thanks for your reply.
>>>
>>>Oops!
>>>
>>>25:00
>>>Return 2 01:00
>>>When it would have to be 1 01:00
>>>
>>>Thanks.
>>>an
>>>
>>>>-----Original Message-----
>>>>Hi
>>>>format the output cell with
>>>>d hh:mm
>>>>
>>>>--
>>>>Regards
>>>>Frank Kabel
>>>>Frankfurt, Germany
>>>>
>>>>"an" <anonymous@discussions.microsoft.com> schrieb im
>>>Newsbeitrag
>>>>news:428f01c4a47e$9a266aa0$a601280a@phx.gbl...
>>>>> I have a formulae to sum hours conditionaly:
>>>>>
>>>>> =SUMPRODUCT(--(colorindex(A1:A3;TRUE)=3);--(A1:A3>TIME
>>>>> (24;0;0));A1:A3)
>>>>>
>>>>>
>>>>> If result will be greater that 24:00, for example 25:00,
>>>>> the formulae return 1:00.
>>>>>
>>>>> Is possible to get 1 day and 1:00 hour, please?
>>>>>
>>>>> Thanks in advance.
>>>>> an
>>>>
>>>>.
>>>>
>
- Next message: Richard O. Neville: "Re: Year To Date Ideas"
- Previous message: Paul Corrado: "Re: Year To Date Ideas"
- In reply to: Myrna Larson: "Re: > 24:00"
- Next in thread: an: "Re: Why 2 days and not 1 in this..."
- Reply: an: "Re: Why 2 days and not 1 in this..."
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|