XL: Maximum Times in Microsoft Excel

Last reviewed: February 11, 1998
Article ID: Q168435
The information in this article applies to:
  • Microsoft Excel 97 for Windows
  • Microsoft Excel for Windows 95, versions 7.0, 7.0a
  • Microsoft Excel for Windows, versions 5.0, 5.0c

SUMMARY

In Microsoft Excel, there are limits to the maximum times that you can enter into a cell or return by using a formula. This article explains the limits in different versions of Microsoft Excel.

MORE INFORMATION

In Microsoft Excel, versions 5.0 and later, you can enter times that exceed 24 hours by using a number format that includes "[h]" (without the quotation marks). The square brackets around the "h" instruct Microsoft Excel calculate times beyond 24 hour intervals, which allows you to enter times that exceed 24 hours. If you enter a time that exceeds 24 hours, Microsoft Excel automatically applies a number format that includes the "[h]" code.

There are limits that apply to times that use this format. If you enter a time into a cell or use a formula to return a time that exceeds the limits, you may notice either of the following problems:

  • If you enter a time that exceeds the limits, the time may appear as a text string.

    For example, if you enter the following time in Microsoft Excel 97

          20000:00:00
    

    the time appears in the cell as a text string aligned to the left.

  • If you use a formula to return a time that exceeds the limits, the formula returns a series of pound or number signs (####).

    For example, if you use the following values and formulas in a worksheet in Microsoft Excel 5.0

          A1: 12/31/2078 23:00:00
          A2: 1:00:00
          A3: =A1+A2
    

    the formula returns a series of pound signs because the time returned by the formula exceeds the maximum time for Microsoft Excel 5.0.

Microsoft Excel for Windows, version 5.0

The maximum time that you can enter into a cell is 1569143:59:59. This time is equivalent to 12/31/2078 23:59:59, which is the maximum time you can use in these versions of Microsoft Excel.

The maximum time that you can calculate using a formula is also 1569143:59:59.

Microsoft Excel for Windows, versions 5.0c, 7.0, 7.0a

The maximum time that you can enter into a cell is 9999:59:59. If you enter a time that is greater than or equal to 10,000 hours (10000:00:00), the time appears as a text string.

The maximum time that you can calculate using a formula is 1569143:59:59.

Microsoft Excel 97 for Windows

The maximum time that you can enter into a cell is 9999:59:59. If you enter a time that is greater than or equal to 10,000 hours (10000:00:00), the time appears as a text string.

The maximum time that you can calculate using a formula is 71003183:59:59. This time equates to 12/31/9999 23:59:59, which is the maximum time you can use in Microsoft Excel 97.

REFERENCES

For more information about using times in Microsoft Excel, please see the following articles in the Microsoft Knowledge Base:

   ARTICLE-ID: Q95948
   TITLE     : XL: Using Dates and Times (XE0127) Complete Text

   ARTICLE-ID: Q99349
   TITLE     : XL: Working with Time Periods That Exceed 24 Hours


Additional query words: XL5 XL7 XL97 5.00a 5.00c 7.00a [h]:mm [h]:mm:ss
Keywords : xlformat
Version : WINDOWS:5.0,5.0a,5.0c,7.0,7.0a,97
Platform : WINDOWS


THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Last reviewed: February 11, 1998
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.