#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 100
Default Time conversion

A1=124.4
Can this be changed to read 1:24.4?
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11,058
Default Time conversion

in B1 enter:

=LEFT(A1,1) & ":" & RIGHT(A1,4)

--
Gary''s Student - gsnu200828


"M.A.Tyler" wrote:

A1=124.4
Can this be changed to read 1:24.4?

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 100
Default Time conversion

beautiful, thank you!

"Gary''s Student" wrote:

in B1 enter:

=LEFT(A1,1) & ":" & RIGHT(A1,4)

--
Gary''s Student - gsnu200828


"M.A.Tyler" wrote:

A1=124.4
Can this be changed to read 1:24.4?

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 5,934
Default Time conversion

Actually, there is a problem with Gary''s Student's formula (assuming I
understand your request correctly)... it only works if there are exactly 3
digits in front of the decimal point. This formula should what I think you
want under all possible circumstances...

=TEXT(A1,"0\:00.0")

but note that if you have less than 3 digits in front of the decimal point,
it put a "0:" in front of the number (which is formatted out to have a
leading zero where necessary).

--
Rick (MVP - Excel)


"M.A.Tyler" <Great Lakes State wrote in message
...
beautiful, thank you!

"Gary''s Student" wrote:

in B1 enter:

=LEFT(A1,1) & ":" & RIGHT(A1,4)

--
Gary''s Student - gsnu200828


"M.A.Tyler" wrote:

A1=124.4
Can this be changed to read 1:24.4?


  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 100
Default Time conversion

One other question, why would 108=1:108? shouldn't it be 1:08? is there a fix?

"Gary''s Student" wrote:

in B1 enter:

=LEFT(A1,1) & ":" & RIGHT(A1,4)

--
Gary''s Student - gsnu200828


"M.A.Tyler" wrote:

A1=124.4
Can this be changed to read 1:24.4?



  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,389
Default Time conversion

Try this:

=TIME(0,INT(A1/100),A1-INT(A1/100)*100)+MOD(A1,1)/86400

It should work for all values.

Regards,
Fred

"M.A.Tyler" <Great Lakes State wrote in message
...
One other question, why would 108=1:108? shouldn't it be 1:08? is there a
fix?

"Gary''s Student" wrote:

in B1 enter:

=LEFT(A1,1) & ":" & RIGHT(A1,4)

--
Gary''s Student - gsnu200828


"M.A.Tyler" wrote:

A1=124.4
Can this be changed to read 1:24.4?


  #7   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 100
Default Time conversion

This solves the question I just posted, works great. Thanks to both of you!

"Rick Rothstein" wrote:

Actually, there is a problem with Gary''s Student's formula (assuming I
understand your request correctly)... it only works if there are exactly 3
digits in front of the decimal point. This formula should what I think you
want under all possible circumstances...

=TEXT(A1,"0\:00.0")

but note that if you have less than 3 digits in front of the decimal point,
it put a "0:" in front of the number (which is formatted out to have a
leading zero where necessary).

--
Rick (MVP - Excel)


"M.A.Tyler" <Great Lakes State wrote in message
...
beautiful, thank you!

"Gary''s Student" wrote:

in B1 enter:

=LEFT(A1,1) & ":" & RIGHT(A1,4)

--
Gary''s Student - gsnu200828


"M.A.Tyler" wrote:

A1=124.4
Can this be changed to read 1:24.4?



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 conversion Seaman Excel Worksheet Functions 1 February 22nd 07 02:47 PM
time conversion thisguy Excel Discussion (Misc queries) 2 January 16th 07 04:29 AM
Time conversion SteveTALL Excel Worksheet Functions 2 December 17th 05 07:16 PM
Time conversion PivotMan Excel Worksheet Functions 1 October 14th 05 12:00 AM
time conversion Steane Excel Discussion (Misc queries) 3 August 18th 05 02:34 AM


All times are GMT +1. The time now is 10:16 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"