#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Bri
 
Posts: n/a
Default date validation

Hi

Is there a way to easily validate dates in cells? (ie June 31, 2001 should
be rejected, for example)

I have cells formatted dd/mm/yyyy. If I enter, say jun 20, 2001, it shows
as 20/06/2001 as expected. BUT, if I accidently enter, say 31/06/2001,
Excel doesn't flag the error.

Is there a fix?
Bri



  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Ron Coderre
 
Posts: n/a
Default date validation

When you format a cell for dates, Excel only applies that format when the
cell value IS a date. Run this formula on the celll containing 31/06/2001:
(assuming it is in Cell A1): =ISNUMBER(A1) should return FALSE if it is not
a number (which dates are),

To restrict entries to dates, try this:
Select your input cells
DataValidation
Allow: Date
Then, set your date restrictions.

Entering 31/06/2001 should now engage a warning.


Does that help?

***********
Regards,
Ron

XL2002, WinXP-Pro


"Bri" wrote:

Hi

Is there a way to easily validate dates in cells? (ie June 31, 2001 should
be rejected, for example)

I have cells formatted dd/mm/yyyy. If I enter, say jun 20, 2001, it shows
as 20/06/2001 as expected. BUT, if I accidently enter, say 31/06/2001,
Excel doesn't flag the error.

Is there a fix?
Bri




  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
JE McGimpsey
 
Posts: n/a
Default date validation

Check out Data/Validation. Choose Date from the Allow dropdown.

In article ,
"Bri" wrote:

Hi

Is there a way to easily validate dates in cells? (ie June 31, 2001 should
be rejected, for example)

I have cells formatted dd/mm/yyyy. If I enter, say jun 20, 2001, it shows
as 20/06/2001 as expected. BUT, if I accidently enter, say 31/06/2001,
Excel doesn't flag the error.

Is there a fix?
Bri

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Bri
 
Posts: n/a
Default date validation

Thanks to both respondees!!
Bri


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
Date Validation - Must equal Sundays date jeridbohmann Excel Discussion (Misc queries) 14 November 30th 05 08:40 PM
Adding XY days to date in cells satucha Excel Discussion (Misc queries) 1 November 25th 05 08:02 AM
Another Date issue. TimM Excel Worksheet Functions 1 November 17th 05 01:58 AM
Date Math Problem Dkline Excel Worksheet Functions 4 March 4th 05 04:11 PM
Need help troubleshooting an array formula XLXP on Win2K KR Excel Worksheet Functions 1 December 13th 04 07:41 PM


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