Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
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
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
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
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
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
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
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 |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Validating a input box entry | Excel Programming | |||
Validating an entry on a user form | Excel Programming | |||
Validating entry in ComboBox | Excel Discussion (Misc queries) | |||
Validating excel entry... | Excel Programming | |||
Validating Entry into Textbox | Excel Programming |