Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

In my excel sheet, I have selected date in Format Cells as 3/14/01 (which is M/DD/YY)

Some cells in DATE column are showing date in correct format like 5/31/12 (M/DD/YY), while some are showing it as 31/5/12 (D/MM/YY).

When I select any Date Cell from dale column, it shows 1/6/12, date on top data entry section appear as 06/01/2012

See attached pic for more info on this weired issue.

Any suggestion please?

share|improve this question

migrated from stackoverflow.com Jun 9 '12 at 7:10

This question came from our site for professional and enthusiast programmers.

3  
Check if those cell values are actually datetime values, or strings –  Mark Baker Jun 7 '12 at 17:16

1 Answer 1

Excel is looking for a 4 digit year. Replace the two digit 5/31/12 with 5/31/2012 and see what happens.

The other thing that happens is Excel looks to see what the regional date settings are and tries to match them. When I changed my regional settings for the date, Excel updated accordingly.

Under Windows 7. Right click the date under the taskbar and choose Adjust Date/Time. Change Date and Time. Change Calendar Settings.

enter image description here

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.