Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
Rob Rob is offline
external usenet poster
 
Posts: 718
Default Set an Input Mask with Data Validation??

I want to set data validation on cells to only allow:

C-###-#####-#### (# is any digit)

Is there a way I can use the equivalent of an Input Mask, or do I have to
write a big long formula?

Thanks
Rob
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Set an Input Mask with Data Validation??

I can't think of anything that supports this without a formula, but try this
one with Data=Validation, Custom

=AND(LEFT(A1,1)="C",LEN(A1)=16,ISNUMBER(SUBSTITUTE (RIGHT(A1,14),"-","")*1),L
EN(SUBSTITUTE(RIGHT(A1,14),"-",""))=12)

--
Regards,
Tom Ogilvy


"Rob" wrote in message
...
I want to set data validation on cells to only allow:

C-###-#####-#### (# is any digit)

Is there a way I can use the equivalent of an Input Mask, or do I have to
write a big long formula?

Thanks
Rob



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
how to format data with an input mask like ss# (***-**-****) Dennis New Users to Excel 2 March 28th 08 10:31 PM
Data Validation and Input Mask Bob Excel Discussion (Misc queries) 2 March 16th 07 04:24 PM
Data Validation-Input Mask Smitty52 Excel Discussion (Misc queries) 5 August 29th 06 03:12 AM
Input Mask Mark Harrison Excel Programming 3 December 3rd 03 01:45 PM
Mask input in input boxes? Eric[_14_] Excel Programming 4 November 29th 03 11:10 AM


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