+ Reply to Thread
Results 1 to 11 of 11

Elapsed time in days

  1. #1
    Bernie Deitrick
    Guest

    Re: Elapsed time in days

    Steve,

    There is no format that will do that. You could use a formula:

    =INT(A2-A1)& ":" &TEXT(A2-A1,"hh:mm")

    but Excel will interpret the result as hh:mm:ss if you try to do further math using it.

    HTH,
    Bernie
    MS Excel MVP


    "Steve M via OfficeKB.com" <[email protected]> wrote in message news:[email protected]...
    > Cell A1 is Jan 1, 2005 0:00
    > Cell A2 is Feb 28, 2005 00:00
    >
    > I want cell A3 to calculate the elapsed time in days shown as "58:00:00".
    > How do I format cell A3?
    >
    >
    > --
    > Message posted via OfficeKB.com
    > http://www.officekb.com/Uwe/Forums.a...tions/200508/1




  2. #2
    Steve M via OfficeKB.com
    Guest

    Re: Elapsed time in days

    Thanks Bernie that's what I wanted.

    Bernie Deitrick wrote:
    >Steve,
    >
    >There is no format that will do that. You could use a formula:
    >
    >=INT(A2-A1)& ":" &TEXT(A2-A1,"hh:mm")
    >
    >but Excel will interpret the result as hh:mm:ss if you try to do further math using it.
    >
    >HTH,
    >Bernie
    >MS Excel MVP
    >
    >> Cell A1 is Jan 1, 2005 0:00
    >> Cell A2 is Feb 28, 2005 00:00
    >>
    >> I want cell A3 to calculate the elapsed time in days shown as "58:00:00".
    >> How do I format cell A3?



    --
    Message posted via OfficeKB.com
    http://www.officekb.com/Uwe/Forums.a...tions/200508/1

  3. #3
    Ron Rosenfeld
    Guest

    Re: Elapsed time in days

    On Mon, 08 Aug 2005 14:58:58 GMT, "Steve M via OfficeKB.com"
    <[email protected]> wrote:

    >Cell A1 is Jan 1, 2005 0:00
    >Cell A2 is Feb 28, 2005 00:00
    >
    >I want cell A3 to calculate the elapsed time in days shown as "58:00:00".
    >How do I format cell A3?



    0":00:00"


    --ron

  4. #4
    Bernie Deitrick
    Guest

    Re: Elapsed time in days

    Ron,

    Actually, no. That will round the days up incorrectly when the hours are more than 12.

    HTH,
    Bernie
    MS Excel MVP


    "Ron Rosenfeld" <[email protected]> wrote in message
    news:[email protected]...
    > On Mon, 08 Aug 2005 14:58:58 GMT, "Steve M via OfficeKB.com"
    > <[email protected]> wrote:
    >
    >>Cell A1 is Jan 1, 2005 0:00
    >>Cell A2 is Feb 28, 2005 00:00
    >>
    >>I want cell A3 to calculate the elapsed time in days shown as "58:00:00".
    >>How do I format cell A3?

    >
    >
    > 0":00:00"
    >
    >
    > --ron




  5. #5
    Ron Rosenfeld
    Guest

    Re: Elapsed time in days

    On Mon, 8 Aug 2005 12:48:39 -0400, "Bernie Deitrick" <deitbe @ consumer dot
    org> wrote:

    >Ron,
    >
    >Actually, no. That will round the days up incorrectly when the hours are more than 12.
    >
    >HTH,
    >Bernie
    >MS Excel MVP
    >


    I probably misinterpreted the OP's question, thinking that the times would
    always be 00:00 as he posted; hence there would never be fractional days.


    --ron

  6. #6
    Steve M via OfficeKB.com
    Guest

    Elapsed time in days

    Cell A1 is Jan 1, 2005 0:00
    Cell A2 is Feb 28, 2005 00:00

    I want cell A3 to calculate the elapsed time in days shown as "58:00:00".
    How do I format cell A3?


    --
    Message posted via OfficeKB.com
    http://www.officekb.com/Uwe/Forums.a...tions/200508/1

  7. #7
    Bernie Deitrick
    Guest

    Re: Elapsed time in days

    Steve,

    There is no format that will do that. You could use a formula:

    =INT(A2-A1)& ":" &TEXT(A2-A1,"hh:mm")

    but Excel will interpret the result as hh:mm:ss if you try to do further math using it.

    HTH,
    Bernie
    MS Excel MVP


    "Steve M via OfficeKB.com" <[email protected]> wrote in message news:[email protected]...
    > Cell A1 is Jan 1, 2005 0:00
    > Cell A2 is Feb 28, 2005 00:00
    >
    > I want cell A3 to calculate the elapsed time in days shown as "58:00:00".
    > How do I format cell A3?
    >
    >
    > --
    > Message posted via OfficeKB.com
    > http://www.officekb.com/Uwe/Forums.a...tions/200508/1




  8. #8
    Steve M via OfficeKB.com
    Guest

    Re: Elapsed time in days

    Thanks Bernie that's what I wanted.

    Bernie Deitrick wrote:
    >Steve,
    >
    >There is no format that will do that. You could use a formula:
    >
    >=INT(A2-A1)& ":" &TEXT(A2-A1,"hh:mm")
    >
    >but Excel will interpret the result as hh:mm:ss if you try to do further math using it.
    >
    >HTH,
    >Bernie
    >MS Excel MVP
    >
    >> Cell A1 is Jan 1, 2005 0:00
    >> Cell A2 is Feb 28, 2005 00:00
    >>
    >> I want cell A3 to calculate the elapsed time in days shown as "58:00:00".
    >> How do I format cell A3?



    --
    Message posted via OfficeKB.com
    http://www.officekb.com/Uwe/Forums.a...tions/200508/1

  9. #9
    Ron Rosenfeld
    Guest

    Re: Elapsed time in days

    On Mon, 08 Aug 2005 14:58:58 GMT, "Steve M via OfficeKB.com"
    <[email protected]> wrote:

    >Cell A1 is Jan 1, 2005 0:00
    >Cell A2 is Feb 28, 2005 00:00
    >
    >I want cell A3 to calculate the elapsed time in days shown as "58:00:00".
    >How do I format cell A3?



    0":00:00"


    --ron

  10. #10
    Bernie Deitrick
    Guest

    Re: Elapsed time in days

    Ron,

    Actually, no. That will round the days up incorrectly when the hours are more than 12.

    HTH,
    Bernie
    MS Excel MVP


    "Ron Rosenfeld" <[email protected]> wrote in message
    news:[email protected]...
    > On Mon, 08 Aug 2005 14:58:58 GMT, "Steve M via OfficeKB.com"
    > <[email protected]> wrote:
    >
    >>Cell A1 is Jan 1, 2005 0:00
    >>Cell A2 is Feb 28, 2005 00:00
    >>
    >>I want cell A3 to calculate the elapsed time in days shown as "58:00:00".
    >>How do I format cell A3?

    >
    >
    > 0":00:00"
    >
    >
    > --ron




  11. #11
    Ron Rosenfeld
    Guest

    Re: Elapsed time in days

    On Mon, 8 Aug 2005 12:48:39 -0400, "Bernie Deitrick" <deitbe @ consumer dot
    org> wrote:

    >Ron,
    >
    >Actually, no. That will round the days up incorrectly when the hours are more than 12.
    >
    >HTH,
    >Bernie
    >MS Excel MVP
    >


    I probably misinterpreted the OP's question, thinking that the times would
    always be 00:00 as he posted; hence there would never be fractional days.


    --ron

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1