#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
jesjes
 
Posts: n/a
Default bug in dates?

After formatting Excell cells to read dates as MAR-01, I type the following:

12-05 gives me Dec-06
11/02 gives me Nov-06
but
12/57 gives me Dec-57

has happened on two PCs.
??
jesjes
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
RagDyeR
 
Posts: n/a
Default bug in dates?

What format did you use ... what format do you want?

mmm-dd
OR
mmm-yy

Because the results you're posting here, says that you formatted as mmm-yy.

Click in the cell and see what you find in the formula bar.

XL is reading your entries as month and day, but it's smart enough to
decipher 57 as a year.

Don't forget, formatting has to do *only* with displays, *not* entry masks!

You're only making a 2 segment date entry, so your regional settings have
precedence (where applicable).
--

Regards,

RD
----------------------------------------------------------------------------
-------------------
Please keep all correspondence within the Group, so all may benefit !
----------------------------------------------------------------------------
-------------------

"jesjes" wrote in message
...
After formatting Excell cells to read dates as MAR-01, I type the following:

12-05 gives me Dec-06
11/02 gives me Nov-06
but
12/57 gives me Dec-57

has happened on two PCs.
??
jesjes


  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Ron Rosenfeld
 
Posts: n/a
Default bug in dates?

On Mon, 2 Jan 2006 14:07:02 -0800, jesjes
wrote:

After formatting Excell cells to read dates as MAR-01, I type the following:

12-05 gives me Dec-06
11/02 gives me Nov-06
but
12/57 gives me Dec-57

has happened on two PCs.
??
jesjes


You need to understand how Excel parses date inputs. And you also need to
realize that how you format a cell does NOT affect how Excel interprets your
date input.

Excel interprets your input based on the date format of your OS
(Windows--Control Panel Regional Settings)

Here in the US, my short date format is mm/dd/yy

If I input something like 12-05, since twelve is a valid month, and 5 is a
valid day, Excel will interpret this as 5 December and append the current year
-- 2006.

The format you selected (MAR-01) is a month - year format, so it displays the
Dec and the 06 which is the current year. But if you look in your formula bar,
you will see that the interpreted date is 12/05/2006.

The same thing happens with 11/02 -- 11/02/2006 and displayed as Nov-06

However, when Excel sees 12/57, 57 is not a legitimate day of a month,
therefore Excel's rules say to interpret the 57 as a year, and assume that the
day of the month is '1'. The date in the formula bar will be 12/01/1957 and
the format of mmm-yy will show Dec-57.

Whether two digit date not between 1-31 is interpreted as 19xx or 20xx is also
dependent on a setting external to Excel in the Regional and Language OS
settings.

One solution is to be unambiguous in your entry of years, especially if the
year will be within the 1-31 range.

12-2006
11-2006
12-1957 or 12-57



--ron
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
PivotTables - Group Dates, excluding dates Todd1 Excel Discussion (Misc queries) 4 December 10th 05 05:06 PM
US dates to UK?? Bill Excel Worksheet Functions 4 December 8th 05 06:44 PM
Calculating number of days between two dates that fall between two other dates [email protected] Excel Discussion (Misc queries) 5 October 26th 05 06:18 PM
2 digit year in dates return 19xx not 20xx moranbo Excel Discussion (Misc queries) 1 September 7th 05 01:44 AM
Formating Dates for production schedule dpl7579 Excel Discussion (Misc queries) 1 January 11th 05 08:43 PM


All times are GMT +1. The time now is 04:02 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"