+ Reply to Thread
Results 1 to 8 of 8

Converting a decimal number into time

  1. #1
    M.A.Tyler
    Guest

    Converting a decimal number into time

    Would like to convert a decimal number into time. Data is supplied as follows:
    22.4
    46.6
    111.8
    123.8
    Need to convert to [ss].00:
    :22.40
    :46.60
    :71.80
    :83.80
    Is there a formula I can use for this conversion?

    Thanks in advance!



  2. #2
    Biff
    Guest

    Re: Converting a decimal number into time

    Hi!

    Try this:

    =TIME(0,0,A1)+MOD(A1,1)/86000

    Format as \:[ss].00

    Not sure what the backslash is for. Excel adds it automatically.

    Biff

    "M.A.Tyler" <Great Lakes State> wrote in message
    news:[email protected]...
    > Would like to convert a decimal number into time. Data is supplied as
    > follows:
    > 22.4
    > 46.6
    > 111.8
    > 123.8
    > Need to convert to [ss].00:
    > :22.40
    > :46.60
    > :71.80
    > :83.80
    > Is there a formula I can use for this conversion?
    >
    > Thanks in advance!
    >
    >




  3. #3
    Biff
    Guest

    Re: Converting a decimal number into time

    Hold on there a second (no pun intended)!

    >> 22.4
    >> 46.6
    >> 111.8
    >> 123.8
    >> Need to convert to [ss].00:
    >> :22.40
    >> :46.60
    >> :71.80
    >> :83.80


    How does 111.8 relate to :71.80 and 123.8 to :83.80 ?

    Biff

    "Biff" <[email protected]> wrote in message
    news:[email protected]...
    > Hi!
    >
    > Try this:
    >
    > =TIME(0,0,A1)+MOD(A1,1)/86000
    >
    > Format as \:[ss].00
    >
    > Not sure what the backslash is for. Excel adds it automatically.
    >
    > Biff
    >
    > "M.A.Tyler" <Great Lakes State> wrote in message
    > news:[email protected]...
    >> Would like to convert a decimal number into time. Data is supplied as
    >> follows:
    >> 22.4
    >> 46.6
    >> 111.8
    >> 123.8
    >> Need to convert to [ss].00:
    >> :22.40
    >> :46.60
    >> :71.80
    >> :83.80
    >> Is there a formula I can use for this conversion?
    >>
    >> Thanks in advance!
    >>
    >>

    >
    >




  4. #4
    David Biddulph
    Guest

    Re: Converting a decimal number into time

    "Biff" <[email protected]> wrote in message
    news:[email protected]...
    > Hold on there a second (no pun intended)!


    >>> 22.4
    >>> 46.6
    >>> 111.8
    >>> 123.8
    >>> Need to convert to [ss].00:
    >>> :22.40
    >>> :46.60
    >>> :71.80
    >>> :83.80


    > How does 111.8 relate to :71.80 and 123.8 to :83.80 ?
    >
    > Biff


    How about:
    1 minute 11.8 seconds = 71.80 seconds
    1 minute 23.8 seconds = 83.80 seconds
    --
    David Biddulph



  5. #5
    M.A.Tyler
    Guest

    Re: Converting a decimal number into time

    Biff, David's answer to your question is correct. 111.8 is 1 minute, 11
    seconds and 80/100's. Your formula gives an answer of :111.8 I really need
    :71.80. Or 1:11.8 then when I convert to [ss].00 I'll get :71.8.

    Thanks for your help!

    "Biff" wrote:

    > Hold on there a second (no pun intended)!
    >
    > >> 22.4
    > >> 46.6
    > >> 111.8
    > >> 123.8
    > >> Need to convert to [ss].00:
    > >> :22.40
    > >> :46.60
    > >> :71.80
    > >> :83.80

    >
    > How does 111.8 relate to :71.80 and 123.8 to :83.80 ?
    >
    > Biff
    >
    > "Biff" <[email protected]> wrote in message
    > news:[email protected]...
    > > Hi!
    > >
    > > Try this:
    > >
    > > =TIME(0,0,A1)+MOD(A1,1)/86000
    > >
    > > Format as \:[ss].00
    > >
    > > Not sure what the backslash is for. Excel adds it automatically.
    > >
    > > Biff
    > >
    > > "M.A.Tyler" <Great Lakes State> wrote in message
    > > news:[email protected]...
    > >> Would like to convert a decimal number into time. Data is supplied as
    > >> follows:
    > >> 22.4
    > >> 46.6
    > >> 111.8
    > >> 123.8
    > >> Need to convert to [ss].00:
    > >> :22.40
    > >> :46.60
    > >> :71.80
    > >> :83.80
    > >> Is there a formula I can use for this conversion?
    > >>
    > >> Thanks in advance!
    > >>
    > >>

    > >
    > >

    >
    >
    >


  6. #6
    David Biddulph
    Guest

    Re: Converting a decimal number into time

    "M.A.Tyler" <Great Lakes State> wrote in message
    news:[email protected]...
    > Biff, David's answer to your question is correct. 111.8 is 1 minute, 11
    > seconds and 80/100's. Your formula gives an answer of :111.8 I really need
    > :71.80. Or 1:11.8 then when I convert to [ss].00 I'll get :71.8.


    In which case one could convert Biff's formula to:
    =TIME(0,0,60*INT(A1/100)+MOD(A1,100))+MOD(A1,1)/86000
    --
    David Biddulph



  7. #7
    Biff
    Guest

    Re: Converting a decimal number into time

    >>How does 111.8 relate to :71.80 and 123.8 to :83.80 ?

    >How about:
    >1 minute 11.8 seconds = 71.80 seconds
    >1 minute 23.8 seconds = 83.80 seconds


    Ah, very sharp!

    Biff

    "David Biddulph" <[email protected]> wrote in message
    news:[email protected]...
    > "Biff" <[email protected]> wrote in message
    > news:[email protected]...
    >> Hold on there a second (no pun intended)!

    >
    >>>> 22.4
    >>>> 46.6
    >>>> 111.8
    >>>> 123.8
    >>>> Need to convert to [ss].00:
    >>>> :22.40
    >>>> :46.60
    >>>> :71.80
    >>>> :83.80

    >
    >> How does 111.8 relate to :71.80 and 123.8 to :83.80 ?
    >>
    >> Biff

    >
    > How about:
    > 1 minute 11.8 seconds = 71.80 seconds
    > 1 minute 23.8 seconds = 83.80 seconds
    > --
    > David Biddulph
    >




  8. #8
    M.A.Tyler
    Guest

    Re: Converting a decimal number into time

    Thank you Biff and David. Formula is working great, you were both very
    helpful!!

    "David Biddulph" wrote:

    > "M.A.Tyler" <Great Lakes State> wrote in message
    > news:[email protected]...
    > > Biff, David's answer to your question is correct. 111.8 is 1 minute, 11
    > > seconds and 80/100's. Your formula gives an answer of :111.8 I really need
    > > :71.80. Or 1:11.8 then when I convert to [ss].00 I'll get :71.8.

    >
    > In which case one could convert Biff's formula to:
    > =TIME(0,0,60*INT(A1/100)+MOD(A1,100))+MOD(A1,1)/86000
    > --
    > David Biddulph
    >
    >
    >


+ 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