Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 119
Default Validating date entry in cells

I have a column set to date format. The cells seem to accept invalid date
formats such as '01/01//2009'. The data is not converted to a date value.
Other date entries are modified. For example if you enter 01/02, Excel will
convert that to 1/1/2009.

What's a method to reject invalid dates such as above or 02/30/2009.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,355
Default Validating date entry in cells

Have you tried using data validation and requiring dates to be entered?
--
HTH,

Barb Reinhardt



"DocBrown" wrote:

I have a column set to date format. The cells seem to accept invalid date
formats such as '01/01//2009'. The data is not converted to a date value.
Other date entries are modified. For example if you enter 01/02, Excel will
convert that to 1/1/2009.

What's a method to reject invalid dates such as above or 02/30/2009.

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,069
Default Validating date entry in cells

Use Data Validation. Select the column with the date format, then select Data
Validation (in XL2007, Data Validation is on the Data ribbon). Set the

validation to allow "Date" between 1/1/1930 and 12/31/9999 (or whatever date
range you want). This will reject any entry Excel can't recognize as a valid
date.

Hope this helps,

Hutch

"DocBrown" wrote:

I have a column set to date format. The cells seem to accept invalid date
formats such as '01/01//2009'. The data is not converted to a date value.
Other date entries are modified. For example if you enter 01/02, Excel will
convert that to 1/1/2009.

What's a method to reject invalid dates such as above or 02/30/2009.

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 119
Default Validating date entry in cells

Thanks for the quick answer. I was hoping I wouldn't have to select a date
range, but oh well.

John S.

"Tom Hutchins" wrote:

Use Data Validation. Select the column with the date format, then select Data
Validation (in XL2007, Data Validation is on the Data ribbon). Set the

validation to allow "Date" between 1/1/1930 and 12/31/9999 (or whatever date
range you want). This will reject any entry Excel can't recognize as a valid
date.

Hope this helps,

Hutch

"DocBrown" wrote:

I have a column set to date format. The cells seem to accept invalid date
formats such as '01/01//2009'. The data is not converted to a date value.
Other date entries are modified. For example if you enter 01/02, Excel will
convert that to 1/1/2009.

What's a method to reject invalid dates such as above or 02/30/2009.

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
Validating a input box entry Alfredo_CPA Excel Programming 8 June 5th 09 08:23 PM
Validating an entry on a user form Risky Dave Excel Programming 3 December 17th 08 05:17 PM
Validating entry in ComboBox LAF Excel Discussion (Misc queries) 0 September 29th 05 08:45 PM
Validating excel entry... simonchia[_2_] Excel Programming 1 October 28th 04 12:48 PM
Validating Entry into Textbox Brad[_11_] Excel Programming 1 December 4th 03 02:58 PM


All times are GMT +1. The time now is 05:37 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"