S
Salza
Hello everyone.
I have limited a cell (i.e F51) to these conditions when users key in
data
in it.
a) All letters are Upper Case
b) Maximum number of letter is 3
Bob Philips has helped me with this formula for that :-
=AND(LEN(F51)=3,NOT(ISNUMBER(--LEFT(F51,1))),NOT(ISNUMBER(--MID
(F51,2,1))),NOT(ISNUMBER(--RIGHT(F51,1))),EXACT(F51,UPPER(F51)))
It works perfectly.
And now, I would like to set one more condition in that cell F51.
In cell F51, the data should not be the same with any data (no
duplication/repetition) in cells B110:B241.
It works with this formula =COUNTIF(B110:B241,F51)=0 if it is set
alone, but can I add this to the formula Bob gave?
=AND(LEN(F51)=3,NOT(ISNUMBER(--LEFT(F51,1))),NOT(ISNUMBER(--MID
(F51,2,1))),NOT(ISNUMBER(--RIGHT(F51,1))),EXACT(F51,UPPER(F51)))
In short, cell F51 should meet this condition
a) All letters are Upper Case
b) Maximum number of letter is 3
c) Data should not be the same as any data in cells B110:B241.
Please help. Thank you.
I have limited a cell (i.e F51) to these conditions when users key in
data
in it.
a) All letters are Upper Case
b) Maximum number of letter is 3
Bob Philips has helped me with this formula for that :-
=AND(LEN(F51)=3,NOT(ISNUMBER(--LEFT(F51,1))),NOT(ISNUMBER(--MID
(F51,2,1))),NOT(ISNUMBER(--RIGHT(F51,1))),EXACT(F51,UPPER(F51)))
It works perfectly.
And now, I would like to set one more condition in that cell F51.
In cell F51, the data should not be the same with any data (no
duplication/repetition) in cells B110:B241.
It works with this formula =COUNTIF(B110:B241,F51)=0 if it is set
alone, but can I add this to the formula Bob gave?
=AND(LEN(F51)=3,NOT(ISNUMBER(--LEFT(F51,1))),NOT(ISNUMBER(--MID
(F51,2,1))),NOT(ISNUMBER(--RIGHT(F51,1))),EXACT(F51,UPPER(F51)))
In short, cell F51 should meet this condition
a) All letters are Upper Case
b) Maximum number of letter is 3
c) Data should not be the same as any data in cells B110:B241.
Please help. Thank you.