The generic formula of Excel IF with two or more conditions is this: IF (AND (condition1, condition2, …), value_if_true, value_if_false) Translated into a human language, the formula says: If condition 1 is true AND condition 2 is true, return value_if_true; else return value_if_false. More @Wikipedia
Hover over any link to get a description of the article. Please note that search keywords are sometimes hidden within the full article and don't appear in the description or title.