Time conversion

  • Thread starter Thread starter M.A.Tyler
  • Start date Start date
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).
 
One other question, why would 108=1:108? shouldn't it be 1:08? is there a fix?
 
Try this:

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

It should work for all values.

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

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top