Forum Discussion
sliao8788
Mar 06, 2021Copper Contributor
convert numbers to time
Hi I am trying to convert a number format in one cell to time format in another cell. Here is my example In cell A1 I have a number 1.90 and I need it to be converted into 1:90 in cell B1. what for...
sliao8788
Mar 06, 2021Copper Contributor
If I do this it changes the value to 21:36 and not leave it as 1:90
NikolinoDE
Mar 06, 2021Gold Contributor
You are absolutely right, was too hasty ... I have to give me more time to let everything through.
File> Options> Document Review>
For this purpose you could create an entry in the autocorrection:
Replace:, (comma)
through:: (colon)
It is now possible to enter a time in the following format: 10,, 20,, 30 and this automatically becomes 10:20:30
Nikolino
I know I don't know anything (Socrates)
File> Options> Document Review>
For this purpose you could create an entry in the autocorrection:
Replace:, (comma)
through:: (colon)
It is now possible to enter a time in the following format: 10,, 20,, 30 and this automatically becomes 10:20:30
Nikolino
I know I don't know anything (Socrates)
- sliao8788Mar 06, 2021Copper ContributorThanks, This kind of solves the problem. but this was what I was trying to do,
In cell A1 I have a number 1.90 and I need it to be converted into 1:90 in cell B1. what formula do I use.- JMB17Mar 06, 2021Bronze ContributorIf you just want it to display "1:90", then you could try:
=SUBSTITUTE(TEXT(A1,"0.00"),".",":")
But, it will be a text value, so you won't be able to perform any arithmetic operations with it very easily.
I believe you could use:
=TIMEVALUE(SUBSTITUTE(TEXT(A1,"0.00"),".",":"))
and format it as [h]:mm and it would be an actual numeric time value, but it will display as "2:30" and not "1:90". If you want it to display as hours:minutes, then I'm not sure how you stop excel from incrementing the hours when you go past 60. - NikolinoDEMar 06, 2021Gold Contributor
Formula from excel 2010
=SUBSTITUTE(A1,".",",")*1
This formula was available from Excel 97
=REPLACE(A1,FIND(".",A1),1,":")*1
Thank you for your understanding and patience
Nikolino
I know I don't know anything (Socrates)- sliao8788Mar 07, 2021Copper Contributor
NikolinoDE Thanks for all the help. Tried this method and it is giving a value of 1:09 and not 1:90. if I change the number to 1.91 in cell A1, it gives me a result of 2:31