Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default Formating cells to only accept ShortDate format

Need to format some columns in ShortDate format only
so that the only values accepted are in "##/##/##" format.

If someone types in Dec. 10, 2003, for example, an error should
be genereated, and the user is reminded to enter
dates in "##/##/##" format.


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,824
Default Formating cells to only accept ShortDate format

Why not just format the date as mm/dd/yy and let the user type the date in any
format they like?



"JShrimps, Jr." wrote:

Need to format some columns in ShortDate format only
so that the only values accepted are in "##/##/##" format.

If someone types in Dec. 10, 2003, for example, an error should
be genereated, and the user is reminded to enter
dates in "##/##/##" format.


--

Dave Peterson

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 78
Default Formating cells to only accept ShortDate format

Why would you want to do this?
Excel does not store the date in that format, but as a
decimal number and cell formatted as Date.
Just pre-set the cell format as "##/##/##" and it won't
matter what they type, it will display the short format.

Kevin Beckham

-----Original Message-----
Need to format some columns in ShortDate format only
so that the only values accepted are in "##/##/##" format.

If someone types in Dec. 10, 2003, for example, an error

should
be genereated, and the user is reminded to enter
dates in "##/##/##" format.


.

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default Formating cells to only accept ShortDate format

After formating a group of cells as "##/##/##",
and typing in "December 12, 2003", results in
"December 12, 2003" in the cell.
I have to limit the data entry to the "##/##/##" format only.
No text strings allowed.

"Kevin Beckham" wrote in message
...
Why would you want to do this?
Excel does not store the date in that format, but as a
decimal number and cell formatted as Date.
Just pre-set the cell format as "##/##/##" and it won't
matter what they type, it will display the short format.

Kevin Beckham

-----Original Message-----
Need to format some columns in ShortDate format only
so that the only values accepted are in "##/##/##" format.

If someone types in Dec. 10, 2003, for example, an error

should
be genereated, and the user is reminded to enter
dates in "##/##/##" format.


.



  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,824
Default Formating cells to only accept ShortDate format

Try Data|Validation and tell it to only accept dates.

but I typed in "december 12, 2003" in a cell and I got the date back. But I
formatted it as mm/dd/yy (under custom).



"JShrimps, Jr." wrote:

After formating a group of cells as "##/##/##",
and typing in "December 12, 2003", results in
"December 12, 2003" in the cell.
I have to limit the data entry to the "##/##/##" format only.
No text strings allowed.

"Kevin Beckham" wrote in message
...
Why would you want to do this?
Excel does not store the date in that format, but as a
decimal number and cell formatted as Date.
Just pre-set the cell format as "##/##/##" and it won't
matter what they type, it will display the short format.

Kevin Beckham

-----Original Message-----
Need to format some columns in ShortDate format only
so that the only values accepted are in "##/##/##" format.

If someone types in Dec. 10, 2003, for example, an error

should
be genereated, and the user is reminded to enter
dates in "##/##/##" format.


.


--

Dave Peterson

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
format cell to accept 2 letters only Wanna Learn Excel Discussion (Misc queries) 6 December 2nd 08 09:28 PM
Format cells to only accept numbers cradino Excel Discussion (Misc queries) 4 July 22nd 06 03:46 PM
how can I have Excel accept date in format dd/mm/yy ? Trucci Setting up and Configuration of Excel 3 July 21st 06 10:04 PM
How do I format cells to accept stones and pounds? Excelnewbie Excel Discussion (Misc queries) 2 March 27th 06 04:59 PM
Formating cells with date format Alexandre Duarte Excel Discussion (Misc queries) 3 December 15th 05 11:47 AM


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