Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
M.A.Tyler
 
Posts: n/a
Default 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   Report Post  
Posted to microsoft.public.excel.misc
Biff
 
Posts: n/a
Default 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
...
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   Report Post  
Posted to microsoft.public.excel.misc
Biff
 
Posts: n/a
Default 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" wrote in message
...
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
...
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   Report Post  
Posted to microsoft.public.excel.misc
David Biddulph
 
Posts: n/a
Default Converting a decimal number into time

"Biff" wrote in message
...
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   Report Post  
Posted to microsoft.public.excel.misc
M.A.Tyler
 
Posts: n/a
Default 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" wrote in message
...
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
...
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   Report Post  
Posted to microsoft.public.excel.misc
David Biddulph
 
Posts: n/a
Default Converting a decimal number into time

"M.A.Tyler" <Great Lakes State wrote in message
...
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   Report Post  
Posted to microsoft.public.excel.misc
Biff
 
Posts: n/a
Default 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" wrote in message
...
"Biff" wrote in message
...
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   Report Post  
Posted to microsoft.public.excel.misc
M.A.Tyler
 
Posts: n/a
Default 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
...
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
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
time sheet drop down lists Steve Excel Discussion (Misc queries) 12 March 18th 06 10:30 PM
Convert a number to a time Jack Excel Discussion (Misc queries) 4 January 19th 06 09:08 AM
number returns only two decimal places after I change from text quale Excel Discussion (Misc queries) 5 December 8th 05 08:22 PM
Decimal time Kim Excel Worksheet Functions 12 September 20th 05 04:22 AM
Keep number format after converting time to text DH Excel Discussion (Misc queries) 2 April 28th 05 07:18 PM


All times are GMT +1. The time now is 01:58 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"