Converting Hours in Decimal Form to HH:MM:SS Format

Article translations Article translations
Article ID: 72578 - View products that this article applies to.
This article was previously published under Q72578
Expand all | Collapse all

On This Page

  • Microsoft Excel for Windows 2.0|2.0
  • Microsoft Excel for Windows 2.01|2.01
  • Microsoft Excel for Windows 2.1|2.1
  • Microsoft Excel for Windows 2.10c|2.10c
  • Microsoft Excel for Windows 2.10d|2.10d
  • Microsoft Excel for Windows 3.0|3.0
  • Microsoft Excel for Windows 3.0a|3.0a
  • Microsoft Excel for Windows 4.0|4.0
  • Microsoft Excel for Windows 4.0a|4.0a
  • Microsoft Excel for Windows 4.0c|4.0c
  • Microsoft Excel for Windows 5.0c|5.0c
  • Microsoft Excel for Windows 95 7.0a|7.0a
  • Microsoft Excel for the Macintosh 3.0|3.0
  • Microsoft Excel for the Macintosh 4.0|4.0
  • Microsoft Excel for the Macintosh 5.0|5.0
  • Microsoft Excel for the Macintosh 5.0a|5.0a

SUMMARY

If you want to convert hours displayed in decimal form so that they can be displayed in a time format such as hh:mm:ss (for example, to convert 2.1 to 2:06:00), use the following the appropriate procedure for your version Microsoft Excel.

MORE INFORMATION

Microsoft Excel Versions 5.0 and Later

To convert the number, follow these steps:

  1. Use the following formula to convert the number (n) to a serial number

    =n/24

    where n is any decimal number representing hours.
  2. On the Format menu, click Cells, and then click the Number tab.
  3. Under Category, select Time, and under Format Codes, select the number format you want.

Microsoft Excel Versions 4.0 and Earlier

To convert the number, follow these steps:

  1. Use the following formula to convert the number (n) to a serial number

    =n/24

    where n is any decimal number representing hours.
  2. On the Format menu, click Number, and select the desired number format (for example, select hh:mm:ss).
NOTE: You can also use these procedures to convert from time values to decimal values. To do this, start from a time value, convert it to a decimal format, and then multiply by 24 to get the decimal representing the time value.

REFERENCES

"User's Guide," version 5.0, pages 111, 209-218
"Function Reference," version 4.0, pages 433-434
"Function Reference," version 3.0, pages 236-237

Properties

Article ID: 72578 - Last Review: November 16, 2006 - Revision: 1.4
APPLIES TO
  • Microsoft Excel 97 Standard Edition
  • Microsoft Excel 95 Standard Edition
  • Microsoft Excel 98 for Macintosh
Keywords: 
kbinfo KB72578
Retired KB Content Disclaimer
This article was written about products for which Microsoft no longer offers support. Therefore, this article is offered "as is" and will no longer be updated.

Give Feedback

 

Contact us for more help

Contact us for more help
Connect with Answer Desk for expert help.
Get more support from smallbusiness.support.microsoft.com