View Single Post
  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
John Bundy John Bundy is offline
external usenet poster
 
Posts: 772
Default Can i run 2 IF statements in one formula?

you can, yes, but you might like validation better. Go to Data-Validation
and choose Custom, enter this formula substituting A1 as necessary
=AND(LEN(A1)=4,ISNUMBER(A1)=TRUE)
You can also have an input message telling them what is required and a
custom error message that tells them the rules.

--
-John
Please rate when your question is answered to help us and others know what
is helpful.


"zak" wrote:

I have a column which can contain only numbers and can only be up to 4 digits
long. Is there an IF statement I can write to check for these 2 conditions?

Thanks in advance