# Cumulative Time Problem calculating more than 24 hours.

1. ## Cumulative Time Problem calculating more than 24 hours.

Hi,

I need to create a spreadsheet that can convert time into hours, the inbuilt
functions only return times within a 24hour period which is completely
useless to me. I need to give a start date & time, i.e

24 August 2004 09:15

and an end date/time

24 August 2005 11:23

and have it return the total running time in a variety of formats, including
plain simple total hours (i.e. one years worth plus a couple).

Any ideas how to do this. I want to be able to keep a running total, as well
but I can probably figure it out once I can get the calculation for the
total (greater than 24 hours) hours working.

Regards

J  Register To Reply

2. ## Re: Cumulative Time Problem calculating more than 24 hours.

Calculation will be OK. Just format as [h]:mm to avoid tipping over at 24h

--
Kind regards,

Niek Otten

Microsoft MVP - Excel

"J" <this_dont@exist.com> wrote in message
news:%23DRcaicvFHA.464@TK2MSFTNGP15.phx.gbl...
> Hi,
>
> I need to create a spreadsheet that can convert time into hours, the
> inbuilt
> functions only return times within a 24hour period which is completely
> useless to me. I need to give a start date & time, i.e
>
> 24 August 2004 09:15
>
> and an end date/time
>
> 24 August 2005 11:23
>
> and have it return the total running time in a variety of formats,
> including
> plain simple total hours (i.e. one years worth plus a couple).
>
> Any ideas how to do this. I want to be able to keep a running total, as
> well
> but I can probably figure it out once I can get the calculation for the
> total (greater than 24 hours) hours working.
>
> Regards
>
> J
>
>  Register To Reply

3. ## RE: Cumulative Time Problem calculating more than 24 hours.

"Inbuilt function" provides days to the left of the decimal point and
specific time to the right of the decimal

try:

=minute(now())

"J" wrote:

> Hi,
>
> I need to create a spreadsheet that can convert time into hours, the inbuilt
> functions only return times within a 24hour period which is completely
> useless to me. I need to give a start date & time, i.e
>
> 24 August 2004 09:15
>
> and an end date/time
>
> 24 August 2005 11:23
>
> and have it return the total running time in a variety of formats, including
> plain simple total hours (i.e. one years worth plus a couple).
>
> Any ideas how to do this. I want to be able to keep a running total, as well
> but I can probably figure it out once I can get the calculation for the
> total (greater than 24 hours) hours working.
>
> Regards
>
> J
>
>
>  Register To Reply

4. ## Re: Cumulative Time Problem calculating more than 24 hours.

Excel handles date/times correctly (both in VBA and in worksheet
formulae) - at least most of the time..... What might be confusing is
how it stores them. See "About dates and date systems" and "Calculate

In your example, to get the number of hours, use the below formula:

A1 B1 C1
24 August 2004 09:15 24 August 2005 11:23 =INT((B22-A1)*24)

Gives me 8762 hours. Which is correct by my reckoning.

HTH,
Gareth

J wrote:
> Hi,
>
> I need to create a spreadsheet that can convert time into hours, the inbuilt
> functions only return times within a 24hour period which is completely
> useless to me. I need to give a start date & time, i.e
>
> 24 August 2004 09:15
>
> and an end date/time
>
> 24 August 2005 11:23
>
> and have it return the total running time in a variety of formats, including
> plain simple total hours (i.e. one years worth plus a couple).
>
> Any ideas how to do this. I want to be able to keep a running total, as well
> but I can probably figure it out once I can get the calculation for the
> total (greater than 24 hours) hours working.
>
> Regards
>
> J
>
>  Register To Reply