if statement for number of digits

  • Thread starter Thread starter Pam M
  • Start date Start date
P

Pam M

I need help writing an if statement. I would like to say:

If(A1 = a 4 digit number,"UNAPPROVED","")

How do I designate the 4 digit number in the formula?

Also, for another statement, I want to say "begins with 4, 5, 6, or 9, give
me "","unapproved".

Thanks,Pam
 
Shouldnt that be

=IF(ISNA(MATCH(LEFT(A1,1),{"4","5","6","9"},0)),"","UnApproved")

since the OP has asked for ""I want to say "begins with 4, 5, 6, or 9, give
me "","unapproved".""""


If this post helps click Yes
 
Both of these items worked perfectly, and were the most concise of the
choices. thank you all for your help, Pam
 
Back
Top