We'd like to remind Forumites to please avoid political debate on the Forum... Read More »
We're aware that some users are experiencing technical issues which the team are working to resolve. See the Community Noticeboard for more info. Thank you for your patience.
📨 Have you signed up to the Forum's new Email Digest yet? Get a selection of trending threads sent straight to your inbox daily, weekly or monthly!
Time to Decimals in Excel
Options

James240
Posts: 16,391 Forumite


in Techie Stuff
Hiya
Currently im doing a project for work on EXCEL but i have no idea how to convert a column that is set as time i.e HR:MIN:SEC into a decimal figures in another column. If we assume that 0.50 is 00:30:00 min and 1.00 is 01:00:00hr and everything in between is decimilised as well what would the formula be to convert it?? Any help would be much appreciated
thanks James


Savings Total so far for 2023: £8,062.58
0
Comments
-
I had a play and this is how it seems to work..
If you set a cell format to time and enter a valid time (I chose to set A1 to 01:15:00) then set a different cell formatted as a number equal to it (with =A1) the cell shows as 0.05 If you multiply that by 1440 (minutes in a day) it come out at 75 which is 75mins since midnight the same as 01:15:00
So the time is stored as minutes since midnight / 14400 -
No neither do I.
But Excel has a VB based lang/macro capability built in
And VB has the concept of date / time serial numbers where the interger part is the date and the fraction part is the time
Maybe take a look at that option0 -
What kwikbreaks says, except that since you want the time in decimal hours, the multiplier is 24. Format that cell as Number, with as many decimal places as you want (3 will give a precision of just under 4 seconds, 2 would give a precision of 36 seconds).0
-
Hiya
Currently im doing a project for work on EXCEL but i have no idea how to convert a column that is set as time i.e HR:MIN:SEC into a decimal figures in another column. If we assume that 0.50 is 00:30:00 min and 1.00 is 01:00:00hr and everything in between is decimilised as well what would the formula be to convert it?? Any help would be much appreciated
thanks James
Ok, here's what to do (I think).
I use the cell format category of 'Custom' and type 'hh:mm:ss'.
Excel sees time as a 24hr clock with 24:00:00 equal to 1.0 (100%).
Therefore 01:00:00 will be 1/24= 0.41666...
and 04:00:00 will be 4/24= 0.1666...
and so on.
If you want to work in minutes you'll have, for example
01:04:00 as 64/1440= 0.0444... (since there are 1440 minutes in a day).
and working in seconds will be something like
01:15:30 as 4530/86400= 0.0524... (since there are 86400 seconds in a day)
I'd avoid trying to work in decimals, it's much better to go with the fraction format. ie x/24 or x/1440 or x/86400.
Hope this helps.
ComplexP0 -
Excel stores dates as decimals, where
0 = 1 January 1900
0.75 = 1 January 1900 18:00
1 = 2 January 1900
etc
so to see a number as a date just format the cell to be a date
[the date for value 0 will change if Tools>Options>Calculation has the 1904 date system in use, not a default]0 -
At the risk of sounding picky, 0 is 00/01/1900. 1 is 01/01/1900.0
This discussion has been closed.
Confirm your email address to Create Threads and Reply

Categories
- All Categories
- 350.9K Banking & Borrowing
- 253.1K Reduce Debt & Boost Income
- 453.5K Spending & Discounts
- 243.9K Work, Benefits & Business
- 598.7K Mortgages, Homes & Bills
- 176.9K Life & Family
- 257.2K Travel & Transport
- 1.5M Hobbies & Leisure
- 16.1K Discuss & Feedback
- 37.6K Read-Only Boards