Use IF with AND and OR in Google Sheets to evaluate multiple conditions

Quick guide to writing IF formulas combined with AND and OR so your sheet makes decisions based on multiple criteria (for example: sales and tenure). Includes examples and common troubleshooting tips.

What the video covers

Google Sheets / Office & Google Workspace

Watch the video on YouTube

Step-by-step instructions

  1. Open your spreadsheet and identify the inputs
    Locate the columns you will test (example: Sales in column A and Tenure (years) in column B). Decide where you want the formula result to appear (example: C2 or D2).
  2. Write an IF + AND formula (all conditions must be true)
    In the chosen output cell enter a formula like: =IF(AND(A2=10000,B2=3),"Eligible Bonus","No Bonus"). This returns the first value only when both conditions are true; otherwise it returns the second value.
  3. Write an IF + OR formula (any condition can be true)
    In another output cell enter a formula like: =IF(OR(A2=10000,B2=3),"Qualifies","Disqualified"). This returns the positive result when at least one condition is true.
  4. Copy or fill the formula down the column
    Drag the fill handle or double-click it to apply the formula to other rows so each row evaluates its own A and B cells (relative references update automatically).
  5. Combine AND and OR for more complex rules
    You can nest AND and OR inside IF to express mixed logic. Example pattern: =IF(AND(OR(A2=10000,B2=3),C2="Active"),"Approved","Not Approved"). Adjust cell references and criteria to match your data.
  6. Adjust for different outputs and data types
    Instead of text you can return numbers, dates, or references to other cells. Ensure compared values are the correct type (convert text numbers to numeric values if needed) and change comparison operators ( , = , , =, =) as required.

Watch the video

Video thumbnail for Use IF with AND and OR in Google Sheets to evaluate multiple conditions Play tutorial

Watch on YouTube

Why it matters

Real-world analysis usually needs more than one test per row. Combining IF with AND/OR lets a single cell return different results based on multiple column values (e.g., award a bonus only when sales and tenure meet thresholds, or qualify a record when either condition is met).

Check your result

The formulas produce the expected text or values in the output cells for example rows (e.g., "Eligible Bonus" appears only when both sales ≥10000 and tenure ≥3; "Qualifies" appears when either condition is true).

Troubleshooting

Common issues: mismatched parentheses, wrong comparison operators, or locale differences (some locales use semicolons instead of commas). If you get a #NAME? or #ERROR, check spelling of functions, balanced parentheses, and that cell references point to numeric values rather than text.