Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Excel / Programming / January 2007

Tip: Looking for answers? Try searching our database.

Forcing a certain date format in an Excel column

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
angela - 25 Jan 2007 23:41 GMT
Hello-
How can I restrict user data entry in a column to a certain date format?
MM/DD/YYYY

any help much appreciated! thanks
macropod - 26 Jan 2007 02:42 GMT
Hi Angela,

You could set the cell to use Data Validation (see Data|Validation on the
menu). With this, you can even force the input date to fall within a specified
date range - which you could base on the current date if you want to.

For example:
. click Data|Validation|Settings
. Allow = 'Date'
. Data = 'between'
. Start Date = '=DATE(YEAR(TODAY()),1,1)'
. End date = '=TODAY()'
. uncheck 'Ignore blank'
This would force the user to input a date between 1 January this year and
today. Providing your regional settings are in month-day-year form, the user
will have to input the date in MM/DD/YYYY form.

Cheers

Signature

macropod
[MVP - Microsoft Word]

| Hello-
| How can I restrict user data entry in a column to a certain date format?
| MM/DD/YYYY
|
| any help much appreciated! thanks
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.