Excel library

Multiple IF Statements in Excel (Nested IF, IFS, AND, OR)

A single IF formula works well when a cell only has two possible outcomes, such as Pass or Fail, but real spreadsheets rarely stop at two choices. Whether you are assigning performance tiers, checking bonus eligibility across two columns, or flagging orders that meet one of several rules, Excel lets you stack or combine conditions in a single cell. In this tutorial, I'll show you how to use multiple IF statements in Excel with nested IF, IFS, AND, and OR formulas.

Quick answer
  1. For several ordered tiers in all Excel versions, nest IF functions: =IF(B2>=90,"Gold",IF(B2>=75,"Silver",IF(B2>=60,"Bronze","Review"))).
  2. For cleaner tiers in Excel 2019 or Microsoft 365, use IFS: =IFS(B2>=90,"Gold",B2>=75,"Silver",B2>=60,"Bronze",TRUE,"Review").
  3. To test two columns at once, place AND or OR inside IF: =IF(AND(B2>=80,C2>=2),"Bonus","No Bonus").

Use IFS for multi-tier ranges in modern Excel, and pair IF with AND or OR when checking more than one column.

Method 1: Write Multiple IF Statements in Excel Using Nested IF

Use a nested IF formula when you need to return one of three or more outcomes and your workbook must open cleanly in every version of Excel. Nesting means placing a second IF function inside the value_if_false argument of the first IF.

Our sample data is in A1:C7, listing each employee in column A, their performance Score in column B, and their Years of service in column C.

  1. Select cell D1 and type Tier as the column header.
  2. Select cell D2 and enter the nested IF formula below.
  3. Press Enter to calculate Maya's tier.
  4. Drag the fill handle at the bottom-right corner of D2 down to D7 to copy the formula to the remaining rows.
fxFormula
=IF(B2>=90,"Gold",IF(B2>=75,"Silver",IF(B2>=60,"Bronze","Review")))
Nested IF formula in cell D2 assigning Gold, Silver, Bronze, and Review tiers based on scores in B2:B7
Nested IF in D2:D7 assigns each employee a tier from Gold down to Review based on their score

How this works: Excel evaluates the conditions from left to right and stops at the first test that returns TRUE. For Maya in row 2, B2>=90 is TRUE (94 is at least 90), so Excel immediately returns Gold and ignores the rest of the formula. For Liam (82) and Priya (76), the first test is FALSE, so Excel checks B2>=75 and returns Silver. Noah (63) falls into Bronze, Elena (91) earns Gold, and Omar (54) fails all three tests and receives the final fallback value, Review. If you only need three outcomes, you can also review our focused walkthrough on using the IF function with 3 conditions.

Note: Always order numeric thresholds consistently from highest to lowest (or lowest to highest). If you put B2>=60 before B2>=90, a score of 94 would match the first test and incorrectly return Bronze. Also make sure the number of closing parentheses at the end matches the number of IF functions you opened.

Method 2: Use the IFS Function (Excel 2019 and Microsoft 365)

Use the IFS function when you have Excel 2019, Excel 2021, Excel 2024, or Microsoft 365 and want to avoid deeply nested parentheses. IFS accepts pairs of condition and result arguments in a single flat list, which makes long formulas much easier to read and edit.

We will use the same employee table in A1:C7 and assign the exact same four tiers in column D.

  1. Select cell D1 and type Tier as the header.
  2. Select cell D2 and enter the IFS formula below.
  3. Press Enter to return Gold for row 2.
  4. Copy the formula down from D2 through D7 using the fill handle.
fxFormula
=IFS(B2>=90,"Gold",B2>=75,"Silver",B2>=60,"Bronze",TRUE,"Review")
IFS formula in cell D2 returning the same Gold, Silver, Bronze, and Review tiers without nested parentheses
The IFS function produces the same tier results with a flatter, easier-to-read formula

How this works: Like nested IF, IFS tests each condition from left to right and returns the result paired with the first TRUE test. Notice the final pair, TRUE,"Review". Because IFS has no built-in value_if_false argument, placing TRUE at the end acts as a catch-all default for any row that did not match an earlier rule, returning Review for Omar's score of 54. For more else-if patterns, see our guide to writing an else-if formula in Excel.

Note: If you omit the final TRUE catch-all and a cell fails every condition, IFS returns a #N/A error. Keep in mind that IFS is not available in Excel 2016 or earlier standalone desktop versions; use Method 1 if anyone opening the file runs an older version.

Method 3: Combine IF with AND When All Conditions Must Be True

Use IF with AND when a row must satisfy two or more rules at the same time before returning the positive result. Instead of nesting separate IF functions, you wrap all required tests inside AND as the logical test of a single IF.

In our table A1:C7, suppose an employee qualifies for a quarterly Bonus only if their Score in column B is at least 80 and their Years in column C is at least 2.

  1. Select cell D1 and type Bonus as the column header.
  2. Select cell D2 and type the IF and AND formula below.
  3. Press Enter to evaluate Maya's bonus eligibility.
  4. Drag the fill handle from D2 down to D7 to check every employee.
fxFormula
=IF(AND(B2>=80,C2>=2),"Bonus","No Bonus")
IF with AND formula in cell D2 awarding Bonus only when Score is at least 80 and Years is at least 2
IF with AND awards Bonus only to Maya and Elena, who meet both the score and tenure rules

How this works: AND(B2>=80,C2>=2) returns TRUE only when both comparisons are true at once. Maya (score 94, 4 years) and Elena (score 91, 2 years) pass both checks and receive Bonus. Liam has a score of 82, but only 1 year of service, so AND returns FALSE and IF outputs No Bonus. Priya, Noah, and Omar meet the tenure rule but fall below the score threshold, so they also return No Bonus. You can explore more multi-column examples in our IF and AND formula tutorial.

Note: Text comparisons inside AND (such as A2="Maya") are not case-sensitive in Excel, and text values must always be wrapped in double quotes. Numbers like 80 and 2 should not have quotes around them.

Method 4: Combine IF with OR When Any Condition Can Be True

Use IF with OR when passing any one of several tests is enough to trigger the positive outcome. OR returns TRUE if at least one argument is true, and returns FALSE only when every argument fails.

Using the same table in A1:C7, suppose an employee is Eligible for a fast-track promotion review if their Score is at least 90 or they have at least 5 Years of service.

  1. Select cell D1 and enter Fast-Track as the header.
  2. Select cell D2 and enter the IF and OR formula below.
  3. Press Enter to test row 2.
  4. Drag the fill handle down to D7 to fill the rest of the column.
fxFormula
=IF(OR(B2>=90,C2>=5),"Eligible","Standard")
IF with OR formula in cell D2 marking employees Eligible when Score is at least 90 or Years is at least 5
IF with OR marks four employees Eligible because each meets at least one of the two conditions

How this works: OR(B2>=90,C2>=5) checks both rules and returns TRUE as soon as either one passes. Maya (score 94) and Elena (score 91) qualify on score, while Priya (5 years) and Omar (6 years) qualify on tenure, giving four Eligible rows in total. Liam (score 82, 1 year) and Noah (score 63, 2 years) miss both thresholds and return Standard.

Combining AND and OR Inside a Nested IF

You can also combine AND, OR, and nested IF in a single formula when you have tiered rules that check multiple columns. For example, this formula awards Top Bonus when both conditions are high, Standard Bonus when either secondary rule is met, and None otherwise:

fxFormula
=IF(AND(B2>=90,C2>=2),"Top Bonus",IF(OR(B2>=80,C2>=5),"Standard Bonus","None"))

On our sample table, Maya and Elena return Top Bonus, Liam, Priya, and Omar return Standard Bonus, and Noah returns None.

FAQs

How many IF statements can you nest in Excel?

Modern versions of Excel allow up to 64 nested IF functions in a single formula. In practice, nesting more than four or five levels becomes hard to read and maintain, so switching to IFS or a lookup table with XLOOKUP or VLOOKUP is usually better.

What is the difference between nested IF and IFS in Excel?

Both functions check conditions from left to right and stop at the first TRUE match, returning the same results. Nested IF works in every Excel version and has a built-in fallback argument, while IFS requires Excel 2019 or newer, avoids nested parentheses, and uses TRUE as its final condition for a default value.

Why does my multiple IF formula return the wrong tier?

The most common cause is listing conditions out of order. Because Excel stops at the first condition that evaluates to TRUE, a broader rule like B2>=60 placed ahead of B2>=90 will catch high scores before Excel ever reaches the stricter test.

Can I use AND and OR inside the IFS function?

Yes. Each condition argument in IFS can be an AND or OR expression, such as =IFS(AND(B2>=90,C2>=2),"Top Bonus",OR(B2>=80,C2>=5),"Standard Bonus",TRUE,"None").

When should I replace multiple IF statements with a lookup formula?

If you have more than five or six tiers, or if your thresholds change frequently, store the breakpoints in a small reference table and use XLOOKUP or VLOOKUP with an approximate match instead. Updating a threshold in a table cell is faster and safer than editing a long formula.

Conclusion

For most people writing multiple IF statements in Excel, IFS is the cleanest choice for multi-tier ranges because it eliminates nested parentheses and stays readable as you add rules. Stick with nested IF when you need full compatibility with older Excel versions, and pair IF with AND or OR whenever a decision depends on checking two or more columns at once.