Please Note: This article is written for users of the following Microsoft Excel versions: 97, 2000, 2002, and 2003. If you are using a later version (Excel 2007 or later), this tip may not work for you. For a version of this tip written specifically for later versions of Excel, click here: Formatted Dates Appear Differently on Different Systems.
Written by Allen Wyatt (last updated October 21, 2023)
This tip applies to Excel 97, 2000, 2002, and 2003
Edward has noticed a problem with formatted dates on different machines. Many times he will create a workbook on one computer but use a different computer to print the report for inclusion in a mailing. Even though he has the cells formatted one way when he creates the report (i.e., the date is mm/dd/yy), when he opens the workbook on the second computer the date will appear differently (mm/dd/yyyy). This causes problems with the appearance of the final printed report as the cell data is then truncated.
This occurs because of differences in the way that system dates are set up on the two machines. On one machine the system date is set up in Windows to display using two digits for the year, while the other is set up to display using four.
How does this affect Excel? Some of the date formats in Excel automatically use the system date format used by Windows. When you display the Number tab of the Format Cells dialog box you know that Excel provides a number of different date formats you can select. Note that some of the formats have an asterisk in front of them. These represent the "system date" formats. If you select one of these, it means that Excel uses the corresponding system date format to display the information in the cell. If you move the workbook to a different system and the formats used for system dates are different, then the dates will display differently in those cells.
The solution is to either change the system date formats to be the same on both systems (done in Windows, in the Regional Settings applet of the Control Panel), or simply pick a different date format in Excel. You'll want to pick one that doesn't have an asterisk in front of it, or define your own custom date format. You should then have no problem with different displays of the dates on the different systems.
ExcelTips is your source for cost-effective Microsoft Excel training. This tip (3218) applies to Microsoft Excel 97, 2000, 2002, and 2003. You can find a version of this tip for the ribbon interface of Excel (Excel 2007 and later) here: Formatted Dates Appear Differently on Different Systems.
Program Successfully in Excel! John Walkenbach's name is synonymous with excellence in deciphering complex technical topics. With this comprehensive guide, "Mr. Spreadsheet" shows how to maximize your Excel experience using professional spreadsheet application development tips from his own personal bookshelf. Check out Excel 2013 Power Programming with VBA today!
Is the information in your cells too jammed up? Here are some ways you can add some white space around that information ...
Discover MoreWhen your macro checks the formatting used for a cell, it needs to be careful that the type of formatting being checked ...
Discover MoreIf your column headings are too large to work well in your worksheet, why not turn them a bit? Here's how.
Discover MoreFREE SERVICE: Get tips like this every week in ExcelTips, a free productivity newsletter. Enter your address and click "Subscribe."
There are currently no comments for this tip. (Be the first to leave your comment—just use the simple form above!)
Got a version of Excel that uses the menu interface (Excel 97, Excel 2000, Excel 2002, or Excel 2003)? This site is for you! If you use a later version of Excel, visit our ExcelTips site focusing on the ribbon interface.
FREE SERVICE: Get tips like this every week in ExcelTips, a free productivity newsletter. Enter your address and click "Subscribe."
Copyright © 2024 Sharon Parq Associates, Inc.
Comments