#1   Report Post  
Posted to microsoft.public.excel.misc
jvq jvq is offline
external usenet poster
 
Posts: 2
Default date format

How can I keep the mm/dd/yy format to display an error or message when other
users enter the wrong date: ie 12/31/20081?
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,651
Default date format

You can use data validation to reject an invalid date such as 31/12/08 if
you want 12/31/08, but not if someone puts in 7/11/08 instead of 11/7/08.
--
David Biddulph

"jvq" wrote in message
...
How can I keep the mm/dd/yy format to display an error or message when
other
users enter the wrong date: ie 12/31/20081?



  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 37
Default date format

You can even use conditional formatting with the below formula:

=ISERR(MONTH($F$9))

and put some color like red. So any cell where the data is not in date
format will, change to red color.

but this formatting and the solution by david will not work if somebody
enters 1/2/2008 (1st feb 2008) instead of 2/1/2008 (2nd jan 2008).

--
Kind Regards,
Satti Charvak
Only an Excel Enthusiast
Noida, India


"jvq" wrote:

How can I keep the mm/dd/yy format to display an error or message when other
users enter the wrong date: ie 12/31/20081?

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 35,218
Default date format

I think you should allow the users to enter the date in any format that's
valid.

But you can format the cell anyway you want--but I would use an unambiguous
format so that it's easy to verify the dates.

jvq wrote:

How can I keep the mm/dd/yy format to display an error or message when other
users enter the wrong date: ie 12/31/20081?


--

Dave Peterson
  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,819
Default date format

i wonder if he meant 20081 not being a valid year?

Dave Peterson wrote:

I think you should allow the users to enter the date in any format that's
valid.

But you can format the cell anyway you want--but I would use an unambiguous
format so that it's easy to verify the dates.

jvq wrote:

How can I keep the mm/dd/yy format to display an error or message when other
users enter the wrong date: ie 12/31/20081?






  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 35,218
Default date format

Could be, but then I bet the non-ambiguous date format would show that as an
error right away. And I bet David's data|validation rule would catch that.

Bob I wrote:

i wonder if he meant 20081 not being a valid year?

Dave Peterson wrote:

I think you should allow the users to enter the date in any format that's
valid.

But you can format the cell anyway you want--but I would use an unambiguous
format so that it's easy to verify the dates.

jvq wrote:

How can I keep the mm/dd/yy format to display an error or message when other
users enter the wrong date: ie 12/31/20081?




--

Dave Peterson
  #7   Report Post  
Posted to microsoft.public.excel.misc
jvq jvq is offline
external usenet poster
 
Posts: 2
Default date format

Yes, I meant 12/31/20081 as the wrong date. I use filters to run reports and
wrong dates mess up my reports. Data validation did the trick. Thank you!

"David Biddulph" wrote:

You can use data validation to reject an invalid date such as 31/12/08 if
you want 12/31/08, but not if someone puts in 7/11/08 instead of 11/7/08.
--
David Biddulph

"jvq" wrote in message
...
How can I keep the mm/dd/yy format to display an error or message when
other
users enter the wrong date: ie 12/31/20081?




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
convert serial date format to normal date format Flagworld Excel Discussion (Misc queries) 3 September 23rd 08 01:32 PM
Convert date from text format to date format Anita Excel Discussion (Misc queries) 3 June 4th 07 11:57 AM
Convert date + time text format to date format Paul Ho Excel Worksheet Functions 2 May 22nd 07 05:47 PM
Can I change a date with no format (20051111) to date format? Rose New Users to Excel 2 November 11th 05 09:03 PM
Excel 2000 date format cannot be set to Australian date format Brian Jones Excel Discussion (Misc queries) 1 March 30th 05 06:03 AM


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