In Excel date and time are saved as number, so in this article we’ll learn how we can see the number behind the date and time.
Convert time into number:
Convert date into number:
Note: In Excel time is saved in decimal values and date has started from 1-Jan-1900 as 1st day. When we enter any date in Excel it calculates from 1-Jan-1900 till entered date in days and then returns the result.
If you liked our blogs, share it with your friends on Facebook. And also you can follow us on Twitter and Facebook.
We would love to hear from you, do let us know how we can improve, complement or innovate our work and make it better for you. Write us at info@exceltip.com
The applications/code on this site are distributed as is and without warranties or liability. In no event shall the owner of the copyrights, or the authors of the applications/code be liable for any loss of profit, any problems or any damage resulting from the use or evaluation of the applications/code.
"Hi MMooney,
If you have a cell, A1 that contains a number representing seconds (say, 12345), then the following will convert to days (Excel's native unit of time):
A2 =((A1/60)/60)/24 {=0.1428819444...}
In other words, approximately 14% of a day.
To display that answer in, say, hours:mins:seconds, you could apply the custom format:
[h]:mm:ss
which will now display as 3:25:45 or 3 hours, 25 mins, and 45 seconds.
Hope that helps,
Alan."
What I'd like to do is convert integers (seconds) to time. Perhaps if there was a way to convert integers to serial numbers, then Excel would be able to format the numbers as time. Is there a way to convert integers to serial numbers?