Thread: Data Validation
View Single Post
  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Ron Coderre Ron Coderre is offline
external usenet poster
 
Posts: 2,118
Default Data Validation

You're very welcome, Bruce....(and thanks for the feedback!)

***********
Regards,
Ron

XL2002, WinXP


"BruceY" wrote:

Hi Ron,

This worked GREAT. Thanks so much for your help and for your quick response.
--
Bruce


"Ron Coderre" wrote:

Try this:

Select Col_A, with A1 as the active cell

<data<validation
Allow: Custom
Formula: =AND(COUNTIF(A1,"NJ???????"),INT(--RIGHT(A1,7))=--RIGHT(A1,7))

Does that help?
***********
Regards,
Ron

XL2002, WinXP


"BruceY" wrote:

HI,
I would like to limit input to all cells within a column to the following;
cannot be more then 9 digits with the first two always being "NJ" and the
last 7 numeric including 0.

Anything other then this should generate an error message.

Any help would be gratly appreciated.
--
Bruce