G
Gary
Ok.....this is what am trying to do.
If A3=alpha numeric,"X", if A3=text,"Y", Blank
any ideas?
If A3=alpha numeric,"X", if A3=text,"Y", Blank
any ideas?
Bob Phillips said:Keep it simple
=IF(ISNUMBER(A3),"X",IF(A3="Y",""))
what about if not a number and not Y?
--
HTH
Bob Phillips
(replace somewhere in email address with gmail if mailing direct)
Gary said:all i wanna do is. if A3 has an alpha numeric value(E344) then the cell
should return X. if A3 has text then it should return Y
Gary said:all i wanna do is. if A3 has an alpha numeric value(E344) then the cell
should return X. if A3 has text then it should return Y
Ron Rosenfeld said:Ok.....this is what am trying to do.
If A3=alpha numeric,"X", if A3=text,"Y", Blank
any ideas?
Your request is a little vague for me.
What is your definition of alpha numeric?
In other words, is there a particular sequence of letters and numbers, or
is it
any sequence which contains both letters and numbers?
Also, do the letters have to be restricted to the set [A-Z] (capital
letters
only) or are there other possibilities?
What is your definition of TEXT?
In Excel, text can include the set of numbers, depending on how they have
been
entered. It can also include any non-alphabetic character. Your
expectations
may differ.
--ron
....Assuming that when you write Text you mean only large or small letters
[A-Za-z], then, although it could be done using worksheet formulas, it's easier
using regular expressions.
....Then try this formula:
=IF(REGEX.COUNT(A1,"^[A-Z]\d{3}$")=1,"X",IF(REGEX.COUNT(A1,"[^A-Za-z]"),"","Y"))
Ok.....this is what am trying to do.
If A3=alpha numeric,"X", if A3=text,"Y", Blank
any ideas?
Alpha Numeric = 1 Alphabet (A to Z) and 3 Numerical Digits.
Text = All text, no numbers
Ron Rosenfeld wrote...
......Assuming that when you write Text you mean only large or small letters
[A-Za-z], then, although it could be done using worksheet formulas, it's easier
using regular expressions.
Text could just mean no numerals, \D.
...Then try this formula:
=IF(REGEX.COUNT(A1,"^[A-Z]\d{3}$")=1,"X",IF(REGEX.COUNT(A1,"[^A-Za-z]"),"","Y"))
You're restricting the alphanumeric test to upper case letters only.
Myself, I'd use
=IF(REGEX.COMP(A1,"^[A-Z]\d{3}$",0),"X",IF(REGEX.COMP(A1,"^\D+$"),"Y",""))
But this could be done without MOREFUNC.
=IF(AND(ABS(CODE(UPPER(A1)&" ")-77.5)<13,COUNT(-MID(A1,2,3))),"X",
IF(AND(A1<>"",COUNT(-MID(A1,{1,2,3,4},1))=0),"Y",""))