FormulaCraft

How to write an IF with multiple conditions in Excel and Google Sheets

Topic:IF, IFS & nested conditions
Excel & Google Sheets
=IF(AND(A2>50,B2="Yes"),"Approved","Rejected")

Verified example

Computed by a real spreadsheet engine on the sample data below.

ScoreApprovedResult
75Yes
30Yes
80No
60Yes

=IF(AND(A2>50,B2="Yes"),"Approved","Rejected")Approved

Try it with your data

Edit the grid or formula, then run it through a real spreadsheet engine — no signup.

Sample data — click any cell to edit

Runs server-side · free · no signup

Step by step

  1. 1Identify your conditions. For AND logic (all conditions must be true), wrap them in AND(). For OR logic (any condition can be true), wrap them in OR().
  2. 2Place the AND() or OR() as the logical test of IF: =IF(AND(A2>50,B2="Yes"),"Approved","Rejected").
  3. 3Press Enter. The formula evaluates all conditions inside AND/OR, then returns the appropriate value based on the combined result.

Tips

Need it for your exact data?

Describe your columns in plain English and get the precise formula for your sheet, with the right Excel or Sheets syntax.

Frequently asked

How many conditions can AND or OR hold?

Both AND and OR accept up to 255 conditions in a single formula.

What is the difference between AND and OR in an IF formula?

AND returns TRUE only when every condition is true. OR returns TRUE when at least one condition is true.

More on IF, IFS & nested conditions

See all →

Formulas used

Written and reviewed by FormulaCraft Team. Each formula on this page is run through our verification engine before publishing.

Last reviewed: