Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 03-08-2011, 07:19 PM
furface00 furface00 is offline Odd behaviour in formatted cells Windows XP Odd behaviour in formatted cells Office 2007
Novice
Odd behaviour in formatted cells
 
Join Date: Feb 2011
Posts: 14
furface00 is on a distinguished road
Default Odd behaviour in formatted cells

Hello,



I have helped a friend with setting up a spreadsheet on his laptop. He has a HP Pavilion Entertainment PC, Model # dv5 -1225ca. His operating system is Windows 7 Home Premium.

The first column on his spreadsheet has been formatted to accept a date in the format of mm/dd/yy.

When he enters a date, in most cells, if the format is correct the date moves to the right. In some cells, the date will move to the left even though the format is correct.

I have checked the format for those cells and it is the correct format. I have tried removing/resetting the formatting, saved the worksheet, closed down Excel. Then restarted Excel, changed the format and the cells still act in the same way.

Any suggestions what might be causing this issue?

Thanks

DD
Reply With Quote
  #2  
Old 03-09-2011, 06:04 AM
Colin Legg's Avatar
Colin Legg Colin Legg is offline Odd behaviour in formatted cells Windows 7 32bit Odd behaviour in formatted cells Office 2010 32bit
Expert
 
Join Date: Jan 2011
Location: UK
Posts: 369
Colin Legg will become famous soon enough
Default

Hi,
Quote:
The first column on his spreadsheet has been formatted to accept a date in the format of mm/dd/yy.

When he enters a date, in most cells, if the format is correct the date moves to the right. In some cells, the date will move to the left even though the format is correct.
It's because when the date is entered, Excel does not recognise it as a date so it interprets it as text. This is because of the regional settings. You don't specify the user's local; I live in the UK so I will explain this from a British perspective.

My regional settings in the control panel are English (United Kingdom). In the UK we write dates with the days before the months: dd/mm/yy. This is how Excel will expect my dates to be input into my spreadsheet.

If I open a new spreadsheet and input 01/02/10 into cell A1, Excel recognises it as a date (1st Feb 2010) and automatically adjusts it to 01/02/2010. This is how it appears both in the cell and in the formula bar (see picture 1 attached).

If I now format the cell with a format of mm/dd/yy, the cell displays the date as 02/01/10. However, the format only affects how the date is shown to the user. If you look in the formula bar, the date is still 01/02/2010. See picture 2 attached.

When you're putting dates into Excel, you must enter them as per your regional settings. If I now type in 05/04/2010 into cell A1, it will be interpreted as 5th April 2010 (even though the format is mm/dd/yy) so in the formula bar it will be saved as 05/04/2010. However, because the cell is formatted as mm/dd/yy, the date will be displayed in the cell as 04/05/10. See picture 3 attached.

If I type in 01/31/2010, there aren't 31 months in a year so Excel will not understand it as a date and will consider it to be a string. This is what is happening on your friend's PC. If you have an English (or similar locale) but have been typing in dates as mm/dd/yy then any entries which were interpretted as dates will have the months and days the wrong way around. They'll all need to be re-entered.

If you want to be able to type in dates using months first, then change the regional settings in the control panel.
Attached Images
File Type: jpg Picture1.JPG (8.2 KB, 9 views)
File Type: jpg Picture2.JPG (7.9 KB, 9 views)
File Type: jpg Picture3.JPG (7.6 KB, 9 views)
__________________
Colin

RAD Excel Blog
Reply With Quote
  #3  
Old 03-09-2011, 12:01 PM
furface00 furface00 is offline Odd behaviour in formatted cells Windows XP Odd behaviour in formatted cells Office 2007
Novice
Odd behaviour in formatted cells
 
Join Date: Feb 2011
Posts: 14
furface00 is on a distinguished road
Default

Colin,

Thanks for your reply. I will examine the regional settings on his computer and adjust them or the formatting to see if it will make a difference. I never would have looked at regional settings.
I will let you know what happens.

Thanks

DD
Reply With Quote
  #4  
Old 03-11-2011, 08:02 AM
furface00 furface00 is offline Odd behaviour in formatted cells Windows XP Odd behaviour in formatted cells Office 2007
Novice
Odd behaviour in formatted cells
 
Join Date: Feb 2011
Posts: 14
furface00 is on a distinguished road
Default

Colin,

Your instructions and solutions were perfect. Everything is now working as it should.

Many thanks.

DD
Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
AutoCorrect with Formatted Text pmokover Word 15 05-11-2017 08:50 PM
Odd behaviour in formatted cells Odd behaviour of table - keep rows together Stephan Lindner Word Tables 1 09-10-2011 05:31 AM
linking Excel pivot into PowerPoint formatted nhegler PowerPoint 0 11-22-2010 08:05 AM
Count range cells eliminating merge cells danbenedek Excel 0 06-15-2010 12:40 AM
Insert formatted table into word (mail merge) manojbmsce Mail Merge 0 09-25-2008 02:25 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 11:21 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft