Re: Cell validation
- From: Sai Krishna <SaiKrishna@xxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Thu, 22 May 2008 05:54:01 -0700
Hi Bob,
thanks a lot. It has worked!!!
regards
sai
"Bob Phillips" wrote:
easily resolved.
=AND(SUMPRODUCT(--(ISNUMBER(--MID(A21,ROW(INDIRECT("1:5")),1))))=0,SUMPRODUCT(--(ISNUMBER(--MID(A21,ROW(INDIRECT("6:9")),1))))=4,NOT(ISNUMBER(--RIGHT(A21,1))))
--
---
HTH
Bob
(there's no email, no snail mail, but somewhere should be gmail in my addy)
"Rick Rothstein (MVP - VB)" <rick.newsNO.SPAM@xxxxxxxxxxxxxxxxxx> wrote in
message news:%23su3e5%23uIHA.4952@xxxxxxxxxxxxxxxxxxxxxxx
That formula is not foolproof; for example, consider these entries...
ABCDE12.3F
ABCDE+123F
ABCDE$123F
ABCDE(12)F
Rick
"Bob Phillips" <bob.NGs@xxxxxxxxxxxxx> wrote in message
news:O52fyw%23uIHA.5448@xxxxxxxxxxxxxxxxxxxxxxx
=AND(SUMPRODUCT(--(ISNUMBER(--MID(A21,ROW(INDIRECT("1:5")),1))))=0,ISNUMBER(--MID(A21,6,4)),NOT(ISNUMBER(--RIGHT(A21,1))))
--
---
HTH
Bob
(there's no email, no snail mail, but somewhere should be gmail in my
addy)
"Sai Krishna" <SaiKrishna@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:76C8786A-AAB0-4DAC-AD9E-65DF55972C42@xxxxxxxxxxxxxxxx
Hi,
I have a cell where in I need to enter an alphanumeric strictly as under
AAAAI7504G
The rule is : First 5 should be alphabets, next 4 should be numbers and
the
last again an alphabet.
The total characters are therefore 10. For the length of the character,
we
can use Text length under Data validation. But we need to ensure that
rule is
followed.
The above is only an illustration. But the positions of alphabets and
numbers should be as per the rule above.
Now is there any formula that throws up a warning saying that a number
has
been entered in place of an alphabet. In other words, the above rule
should
not be violated.
regards
krishna
- References:
- Re: Cell validation
- From: Bob Phillips
- Re: Cell validation
- From: Rick Rothstein \(MVP - VB\)
- Re: Cell validation
- From: Bob Phillips
- Re: Cell validation
- Prev by Date: Re: Time
- Next by Date: Re: custom data validation
- Previous by thread: Re: Cell validation
- Next by thread: Re: Cell validation
- Index(es):
Relevant Pages
|