View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Pete_UK Pete_UK is offline
external usenet poster
 
Posts: 8,856
Default Can i run 2 IF statements in one formula?

Something like this:

=IF(AND(ISNUMBER(A1),LEN(A1)<=4),"okay","wrong")

Copy down as required.

Hope this helps.

Pete

On Feb 3, 4:12*pm, 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