Excel.Tips.Net Welcome toExcel.Tips.Net

Helpful Links

Tips.Net Home
ExcelTips Home
Ask an Excel Question
Make a Comment

Tips.Net Store

ExcelTips FAQ
ExcelTips Premium

Learn Access Now
Free Printable Forms

Beauty Tips
Car Tips
Cleaning Tips
College Tips
Cooking Tips
Excel2007 Tips
ExcelTips
Family Tips
Gardening Tips
Health Tips
Home Tips
Legal Tips
Money Tips
Organizing Tips
Pest Tips
Pet Tips
Wedding Tips
Word2007 Tips
WordTips

Advertise on the
ExcelTips Site

Newest Tips

Recording a Macro

Adding a Little Animation to Your Life

Converting a Range of URLs to Hyperlinks

Making the Formula Bar Persistent

Engineering Calculations

Digital Signatures for Macros

Fixing the Decimal Point

 

Backwards Date Parsing

Summary: Enter information into a worksheet, and you come to anticipate (and count on) how Excel will interpret that information and store it in the worksheet. If you suddenly find that Excel isn't parsing your date entries correctly, there are two possibilities you should check out right away. (This tip works with Microsoft Excel 97, Excel 2000, Excel 2002, Excel 2003, and Excel 2007.)

Larry was unfortunate enough to suffer a blue-screen crash on his system. After repairs, Larry noticed that the way in which Excel parsed dates was backwards. For instance, if he entered 2/3, he expected Excel to parse it as February 3 but Excel was instead parsing it as March 2.

There are two possible causes for the problem, and you'll need to figure out which one it is. First, you should determine if the problem exists in all of your Excel workbooks, or just in a few. If it is in a few, then it is probable that the date format has been set incorrectly for the cells in question. Follow these steps:

  1. Select the cells with dates.
  2. Right-click any of the selected cells and click on Format Cells from the resulting Context menu. Excel displays the Format Cells dialog box.
  3. Make sure the Number tab is displayed.
  4. In the Category list, choose Date.
  5. In the list of Types, select a date format you want to use.
  6. Using the Locale drop-down list, choose English (United States).
  7. Click OK.

If the problem is exhibited in all your Excel workbooks, then chances are good that it isn't an Excel problem at all but is related to your operating system. (In Larry's case this is probably the culprit, as the blue-screen crash was related to the operating system.) You can verify this because if it is the operating system, the "backward" dates will be evident even in other programs. For instance, open Windows Explorer and take a look at some of the dates displayed for various files. If the dates there appear in an order different than you would expect, then the problem is definitely with the operating system.

In this case you will need to open the Control Panel, display the Regional Settings, and make sure that the settings are proper for the United States. Understand that making the change in the Regional Settings will affect not only Excel, but all programs on the system.

ExcelTips is your source for cost-effective Microsoft Excel training. This tip (3929) applies to Microsoft Excel versions: 97 | 2000 | 2002 | 2003 | 2007

More Power! For some people, the prospect of creating macros can be scary. Those who conquer their fears, however, find they become much more confident and productive once they learn how to make Excel do exactly what they want. ExcelTips: The Macros is an invaluable source for learning Excel macros. You are introduced to the topic in bite-sized chunks, pulled from past issues of ExcelTips. Learn at your own pace, exactly the way you want.
 
Check out ExcelTips: The Macros today!