View Single Post
  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Mike H Mike H is offline
external usenet poster
 
Posts: 11,501
Default combine IF, AND and OR operstors in a statement

What error

the formula says if (I16=Y or ?) AND I24=? then return 'Please enter country
code'
and if those econditions aren't met return ERROR and that works

What are you expecting to happen?

Mike

"Vince" wrote:

How do I nest AND & OR operators in an IF statement? E.g. the statement
=IF(AND(OR(I16="Y",I16="?"),I24="?"),"Please enter country code","ERROR")
creates an error