Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
tamato43
 
Posts: n/a
Default Month/Year Field Help

I'm rying to create a Month and Year (MM/YY) field on a spreadsheet to
document expiration date.

I've formatted the cell to show Month/Year (MM/YY, MM-YY, Mon-YY), but when
I just enter month and year, e.g. 03/06, it defaults to Mar-05.

Am I doing something wrong?
  #2   Report Post  
Bob Phillips
 
Posts: n/a
Default

Yes, date input assumes you will start with the day (month in the US), and
then assumes a month (day) and if you don't add a year it defaults to this
year.

--
HTH

Bob Phillips

"tamato43" wrote in message
...
I'm rying to create a Month and Year (MM/YY) field on a spreadsheet to
document expiration date.

I've formatted the cell to show Month/Year (MM/YY, MM-YY, Mon-YY), but

when
I just enter month and year, e.g. 03/06, it defaults to Mar-05.

Am I doing something wrong?



  #3   Report Post  
tamato43
 
Posts: n/a
Default

Is there a way to format it correctly then? to just show Month year?

"Bob Phillips" wrote:

Yes, date input assumes you will start with the day (month in the US), and
then assumes a month (day) and if you don't add a year it defaults to this
year.

--
HTH

Bob Phillips

"tamato43" wrote in message
...
I'm rying to create a Month and Year (MM/YY) field on a spreadsheet to
document expiration date.

I've formatted the cell to show Month/Year (MM/YY, MM-YY, Mon-YY), but

when
I just enter month and year, e.g. 03/06, it defaults to Mar-05.

Am I doing something wrong?




  #4   Report Post  
Bob Phillips
 
Posts: n/a
Default

You can get it to show MM/YY but you still have to input it all.

--
HTH

Bob Phillips

"tamato43" wrote in message
...
Is there a way to format it correctly then? to just show Month year?

"Bob Phillips" wrote:

Yes, date input assumes you will start with the day (month in the US),

and
then assumes a month (day) and if you don't add a year it defaults to

this
year.

--
HTH

Bob Phillips

"tamato43" wrote in message
...
I'm rying to create a Month and Year (MM/YY) field on a spreadsheet to
document expiration date.

I've formatted the cell to show Month/Year (MM/YY, MM-YY, Mon-YY), but

when
I just enter month and year, e.g. 03/06, it defaults to Mar-05.

Am I doing something wrong?






  #5   Report Post  
Ron Rosenfeld
 
Posts: n/a
Default

On Wed, 25 May 2005 08:22:01 -0700, "tamato43"
wrote:

I'm rying to create a Month and Year (MM/YY) field on a spreadsheet to
document expiration date.

I've formatted the cell to show Month/Year (MM/YY, MM-YY, Mon-YY), but when
I just enter month and year, e.g. 03/06, it defaults to Mar-05.

Am I doing something wrong?


You are making the common error of assuming that cell formatting has anything
to do with data parsing with regard to input of dates.

Your format changes only affect how Excel displays the dates.

How Excel will parse your date INPUT depends on different rules. Briefly, if
you only input in the form of 00/00, it will interpret this (if possible) as
mm/dd and append the current year.

However, if "dd" is a number greater than the number of days in "mm"
interpreted as a month, then it will interpret the result as mm/yy.

The best solution depends on your application. One method would be to use a
form for input with different fields for Month and Year, and then have your
routines interpret that input according to your own rules.

Another method would be to enter the full date.

Still another method would be to preformat the cell as text, do your entry and
have an event VB Macro running to interpret the input according to your own
rules.


--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
Stop text from stringing into next field when empty NothingButRomance Excel Worksheet Functions 7 May 17th 05 02:22 AM
Stop text from stringing into next field when empty NothingButRomance Excel Worksheet Functions 2 May 15th 05 05:32 PM
save text field w/ leading zeros in .csv format & not lose zeros? Ques Excel Discussion (Misc queries) 1 May 4th 05 06:21 PM
Problems with Pivot Table Field Sorting in Excel 2002 Phoenix71555 Excel Discussion (Misc queries) 1 February 27th 05 11:25 PM
Pivot Table Page Field Jimbola Excel Discussion (Misc queries) 0 February 6th 05 09:13 PM


All times are GMT +1. The time now is 05:17 PM.

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

About Us

"It's about Microsoft Excel"