# Converting Time to Decimal Values

http://www.exceltip.com/excel-time/converting-time-to-decimal-values.html

This article will convert current local time in (UTC/GMT) – World Time Zone

Use the HOUR and MINUTE formulas to extract the hour and minute numbers from the time.

For example ..

You have time as “3:30 PM” and you want to converting time to decimals, so that it will display 3o minute as a Half of hour, or display the result as “15:50″

# To convert time to decimal values:

you can use below formula

### =HOUR(A3)+(MINUTE(A3)/60)

or if you want to convert Minute value you can use formula called “CONVERT

0

## 38 thoughts on “Converting Time to Decimal Values”

1. This formula is excellent, but how do you convert a time if it shows hours but a decimal figure for Minutes i.e. 20.83 to 20:50

2. To conver time to decimal simply multiply it by 24 formatting the result to two places of decimal.

3. “I’m trying to convert time to decimals in Excel. I’ve used the following formula for “”positive”” time:
x =60*(HOUR(R10)+(MINUTE(R10)/60))i.e. R10=1:03:55; x =63.00
This formula does not work for
R10=-1:03:55
How should the formula be modified to accomadate “”negative”” time? “

4. This tip was interesting, but I’m trying to find out how to convert seconds to hours, then minutes in Excel. If in Cell A1 I have 3,900 seconds I can get A2 to relfect minutes by using A1/60 which is 65 minutes, but I cannot get A3 to reflect anything but 1.08 which is 1 point 08 hours, when I want 1 hour, 5 minutes to be displayed. 1:05. Help !

5. Okay, that formula works, however, if I exceed 24 hours, the formula will turn 24:30 to 0.30. Now I know that I can format the cell for 24 hours by usin [h]h.mm, but this does not work in this instance. How do I get the formula to show the hours exceeding 24.00

6. im making time computaion for my internet cafe using excel. i cant compute the time total time usage to 60 minute so tha ti can comoute it ot my desired payment per minute. how can i convert the total time usage to a dacimal?

7. “Hi Merlot54,
If you have A1 = 3900 (seconds)
Then:
A2 = A1/60 = 65 (minutes)
A3 = (A2/60)/24 = 0.00075 (of a day)
If you now format A3 using:
[hh]:mm:ss
You will get:
00:01:05 (hours, mins, seconds).
The trick is to be very careful with your units. 1.08 on its own, will mean 1.08 days to excel (~25 hours, 55 mins, and 12 seconds).
HTH,
Alan.”

8. “Hi Eric,
That will be a challenge!
Perhaps you could set out your detailed reasoning / calculation and we can have a look.
In general, to find out the difference between two times, just enter hour:min times in two cells, and subtract one from the other. Obviously that won’t give the answer you are looking for above though!
Alan.”

9. I think that ihave figured this out, it seems to work so far. If you subtract one time from the next and then *24 the answer you will get teh answer in decimal tenths of an hour. If you limit the anser to one decimal place it looks right so far. Thanks for your quick response. In aviation time are use in tenths of as hour.

10. “Hi Eric,
If you subtract one time from another, and then multiply by 24, you will shift your units from days (Excel’s unit of time) to hours.
You have ot be careful at that point, since you are no longer using the ‘normal’ unit of time – you’ll have to be explicit in all your calculations.
If you just want to diaply a time as a decimal, then change the display format from, say, hh:mm to General.
Example:
If you enter 2:38 in a cell it displays as 02:38 being 2 hours and 38 minutes.
If you change the format of the cell to General (say), then you see:
0.109722222222222
That decimal was always the value in the cell – we only changed the format that it was displayed in. It repesents the proportion of a day that is 2 hours and 38 mins.
Alternatively, if you multiply that value by 24, you get:
2.63333333333333
In other words, 2.6.. hours is approximately 2 hours 38 minutes (actually 2 hours 36 minutes but I rounded the value to one decimal place as you indicated above).
Alan.”

11. I am trying to create a timecard. How do I enter “time in” , “time out”, “time in”, “time out”, and then calculate those times to come up with the total time worked?

12. “Hi Bridget,
Just subtract each start time from the associated finish time, and add together the results.
Watch your formatting and data entry.
The standard excel time unit is a day.
If you enter start time of 08:00 it will *display* in that format, but the cell will contain the *value* 0.3333… (= 8 / 24 of a day).
Alan.”

13. This formula is excellent, but how do you convert a time if it shows hours but a decimal figure for Minutes i.e. 20.83 to 20:50

14. To conver time to decimal simply multiply it by 24 formatting the result to two places of decimal.

15. “I’m trying to convert time to decimals in Excel. I’ve used the following formula for “”positive”” time:
x =60*(HOUR(R10)+(MINUTE(R10)/60))i.e. R10=1:03:55; x =63.00

This formula does not work for
R10=-1:03:55

How should the formula be modified to accomadate “”negative”” time? “

16. This tip was interesting, but I’m trying to find out how to convert seconds to hours, then minutes in Excel. If in Cell A1 I have 3,900 seconds I can get A2 to relfect minutes by using A1/60 which is 65 minutes, but I cannot get A3 to reflect anything but 1.08 which is 1 point 08 hours, when I want 1 hour, 5 minutes to be displayed. 1:05. Help !

17. Okay, that formula works, however, if I exceed 24 hours, the formula will turn 24:30 to 0.30. Now I know that I can format the cell for 24 hours by usin [h]h.mm, but this does not work in this instance. How do I get the formula to show the hours exceeding 24.00

18. im making time computaion for my internet cafe using excel. i cant compute the time total time usage to 60 minute so tha ti can comoute it ot my desired payment per minute. how can i convert the total time usage to a dacimal?

19. “Hi Merlot54,

If you have A1 = 3900 (seconds)
Then:

A2 = A1/60 = 65 (minutes)

A3 = (A2/60)/24 = 0.00075 (of a day)

If you now format A3 using:

[hh]:mm:ss

You will get:

00:01:05 (hours, mins, seconds).

The trick is to be very careful with your units. 1.08 on its own, will mean 1.08 days to excel (~25 hours, 55 mins, and 12 seconds).

HTH,

Alan.”

20. “Hi Eric,

That will be a challenge!

Perhaps you could set out your detailed reasoning / calculation and we can have a look.

In general, to find out the difference between two times, just enter hour:min times in two cells, and subtract one from the other. Obviously that won’t give the answer you are looking for above though!

Alan.”

21. I think that ihave figured this out, it seems to work so far. If you subtract one time from the next and then *24 the answer you will get teh answer in decimal tenths of an hour. If you limit the anser to one decimal place it looks right so far. Thanks for your quick response. In aviation time are use in tenths of as hour.

22. “Hi Eric,

If you subtract one time from another, and then multiply by 24, you will shift your units from days (Excel’s unit of time) to hours.

You have ot be careful at that point, since you are no longer using the ‘normal’ unit of time – you’ll have to be explicit in all your calculations.

If you just want to diaply a time as a decimal, then change the display format from, say, hh:mm to General.

Example:

If you enter 2:38 in a cell it displays as 02:38 being 2 hours and 38 minutes.

If you change the format of the cell to General (say), then you see:

0.109722222222222

That decimal was always the value in the cell – we only changed the format that it was displayed in. It repesents the proportion of a day that is 2 hours and 38 mins.

Alternatively, if you multiply that value by 24, you get:

2.63333333333333

In other words, 2.6.. hours is approximately 2 hours 38 minutes (actually 2 hours 36 minutes but I rounded the value to one decimal place as you indicated above).

Alan.”

23. I am trying to create a timecard. How do I enter “time in” , “time out”, “time in”, “time out”, and then calculate those times to come up with the total time worked?

24. “Hi Bridget,

Just subtract each start time from the associated finish time, and add together the results.

Watch your formatting and data entry.

The standard excel time unit is a day.

If you enter start time of 08:00 it will *display* in that format, but the cell will contain the *value* 0.3333… (= 8 / 24 of a day).

Alan.”

25. hi room
I am a very basic user and trying to make a sheet for wages I calculate the hours worked say 3 then another 7 I want to show this as each hour equals 1 i.e. 10 then times the answer by 18.62 as currency the result should be £180.62 your help would be much appreciated please remember I am a basic user

26. I’m an HR professional, and I’m in the process of assigning Bonus componenets.

Eg. for 10 points I’m assigning .55 cents

then 11 points get how many cents.

27. If 1day is equal to 8hrs then if I have several days to compute 5/6 is 1day; 11/7 is 1/2day; 12/10 is 1day so total is 2 1/2day (2 x 8 = 16 + 4 for 1/2) leave subtract to total number of entitled leave e.g. is 7days2hrs how to calculate the balance?

28. I want to calculate the total salary of employees.
When total salary = 22503 then i want to show in cell 22505 and salary = 22502 then i want to show in cell 22500.
Pleas send the formula name and example also

29. Good day!
Anyone here can give me a vba code on how to convert 65 to 01:05. Your reply is highly appreciated.thanks

30. My formula:

=CEILING((HOUR((E4-C4)) + MINUTE((E4-C4)) / 60 + SECOND((E4-C4)) / 3600),0.1)

When C4 is the Start Time and E4 is the End Time.