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
Thanks, 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.
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.
NikolinoDE
Mar 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
- Riny_van_EekelenMar 07, 2021Platinum Contributor
sliao8788 For what it is worth, here's a numerical variant. That is, without text manipulation.
=INT(A1)/24+MOD(A1,1)*100/1440
formatted as time "h:mm". As in JMB17 's solution, it will return 2:30 (2 hrs and 30 minutes).