Notice: This website is an unofficial Microsoft Knowledge Base (hereinafter KB) archive and is intended to provide a reliable access to deleted content from Microsoft KB. All KB articles are owned by Microsoft Corporation. Read full disclaimer for more details.

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


View products that this article applies to.

Summary

This article shows you how to convert hours displayed in decimal form to a time format such as hh:mm:ss (for example, converting 2.1 to 2:06:00).

↑ Back to the top


More information

To convert a number, follow these steps:
  1. Use the following formula to convert the number 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; under Type, select the number format that you want.
NOTE: You can also use this procedure to convert 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.

↑ Back to the top


Keywords: KB214125, kbinfo, kbhowto

↑ Back to the top

Article Info
Article ID : 214125
Revision : 5
Created on : 11/5/2003
Published on : 11/5/2003
Exists online : False
Views : 264