Click here to Skip to main content
15,887,464 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I need to apply validation to a single column which should accept only alphabets and the length should not exceed 20.

What I have tried:

=(CODE(MID(A1,1,1))>64)+(CODE(MID(A1,1,1))<91)=2

L1 is the column name
Posted
Updated 19-Feb-16 14:21pm

1 solution

try this

ISERROR(FIND((LEN(ISNUMBER([My Column]))=20))


LEN is length of string
ISNUMBER is check for number

if cannot work
try this

Walkthrough: Creating a Custom Field Type[^]
 
Share this answer
 
v3
Comments
Member 12253249 19-Feb-16 23:38pm    
The length field, I have set while creating the column by giving max length = 20.
what i want to do next is apply a validation that will allow only alphabets to that column.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900