#1   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 6
Default Validation

How can I limit input of A1 to a specific date format i.e. dd.mm.yy

From cell A1, I would like to extract the month and display as mmm in cell A2

Thanks
  #2   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 35,218
Default Validation

You could format the cell the way you want and use data|validation (in xl2003
menus) to restrict the entry to a date.

Then in B1, you could use a formula:
=if(a1="","",text(a1,"mmm"))

Be aware that data|validation is easily broken (copy|paste will crush it). But
it should work if the user is typing something.

ps. The user will be able to type the date the way they like and the formatting
will show it to you as you like.

Personally, I'd use an unambiguous format like: dd-mmm-yyyy



Panchi wrote:

How can I limit input of A1 to a specific date format i.e. dd.mm.yy

From cell A1, I would like to extract the month and display as mmm in cell A2

Thanks


--

Dave Peterson
  #3   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 6
Default Validation

Hi Dave,

I have used the formula as you have advised but the cell shows the whole
date as in A1 and not the month itself.

Panchi

"Dave Peterson" wrote:

You could format the cell the way you want and use data|validation (in xl2003
menus) to restrict the entry to a date.

Then in B1, you could use a formula:
=if(a1="","",text(a1,"mmm"))

Be aware that data|validation is easily broken (copy|paste will crush it). But
it should work if the user is typing something.

ps. The user will be able to type the date the way they like and the formatting
will show it to you as you like.

Personally, I'd use an unambiguous format like: dd-mmm-yyyy



Panchi wrote:

How can I limit input of A1 to a specific date format i.e. dd.mm.yy

From cell A1, I would like to extract the month and display as mmm in cell A2

Thanks


--

Dave Peterson
.

  #4   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 6
Default Validation

Its OK Dave... its work perfect........ I had a validation set on the cell
but when i removed it, your formula worked perfect. Thanks

"Dave Peterson" wrote:

You could format the cell the way you want and use data|validation (in xl2003
menus) to restrict the entry to a date.

Then in B1, you could use a formula:
=if(a1="","",text(a1,"mmm"))

Be aware that data|validation is easily broken (copy|paste will crush it). But
it should work if the user is typing something.

ps. The user will be able to type the date the way they like and the formatting
will show it to you as you like.

Personally, I'd use an unambiguous format like: dd-mmm-yyyy



Panchi wrote:

How can I limit input of A1 to a specific date format i.e. dd.mm.yy

From cell A1, I would like to extract the month and display as mmm in cell A2

Thanks


--

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
Validation Data using Validation Table cell range..... Dermot Excel Discussion (Misc queries) 16 January 5th 10 09:35 PM
Data Validation Update Validation Selection PCreighton Excel Worksheet Functions 3 September 11th 07 03:32 PM
data validation invalid in dynamic validation list ilia Excel Discussion (Misc queries) 0 November 7th 06 12:54 PM
data validation invalid in dynamic validation list ilia Excel Worksheet Functions 0 November 7th 06 12:54 PM
Data validation with validation lists and combo boxs Keith Excel Discussion (Misc queries) 1 October 12th 06 11:08 AM


All times are GMT +1. The time now is 07:24 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"