Excel Formula: Convert Decimal Hours to Hours and Minutes
In Excel, there is a simple formula that supports to convert hours in the decimal format to a valid Excel time.
|Decimal_hours: the positive decimal number that you want to convert to Excel time.|
This formula returns a decimal number. To display the decimal in a standard Excel time format, you need to format the result as a time.
If the argument decimal_hours is a negative value, the formula returns a string ######.
How this formula work
Here is a list of decimal number in cell B3:B5, in cell C3, type below formula to get the decimal time.
Press Enter key, then drag autofill handle over to cell C5.
Then format the cells as time. Select the results, then go to Number drop-down list under Home tab, choose Time.
There are 24 hours one day, the decimal number divided by 24 will get the correct representation of hours in Excel.
If you want to display the time duration longer than 24 hours, you can format the time format as below:
Select the formula result then right click to select Format Cells from the context menu.
In the Format Cells dialog, under Number tab, choose Time in the Category list, then go to right Type section, choose 37:30:55. Click OK.
Then the result has been displayed longer than 24 hours.
- Convert date to Julian
Sometimes, you need to convert the standard date to the Julian date in Excel, here this article introduces a formula which combines the TEXT, YEAR and DATE functions to solve this job.
- Convert date string to datetime
Sometimes, while you import or paste some datetime data from other devices to Excel, the datetimes maybe not be recognized as proper dates...
- Convert date to year month
In some cases, you want to convert the date to only month, year, day or monthyear, daymonth, or year day in text format.
- Convert date to text
This tutorial provides the TEXT function to convert a date to text.
- Excel IF Function
Test for specified conditions, then returns the corresponding values
- Excel VALUE Function
Convert text to number.
- Excel MONTH Function
The MONTH is used to get the month as integer number (1 to 12) from date.
- Excel DAY Function
DAY function gets the day as a number (1 to 31) from a date
- Excel YEAR Function
The YEAR function returns the year based on the given date in a 4-digit serial number format.