Multiple IF Statements in Excel: Nested IF, IFS, AND/OR, and Lookup Alternatives
Master multiple IF statements in Excel with nested IF, IFS, IF+AND/OR, SWITCH, and VLOOKUP examples. Real formulas, common mistakes, and when to use each.

You've outgrown the single IF function. That happens fast. The moment your spreadsheet needs more than two outcomes, you hit a wall and start hunting for ways to chain conditions together. This guide walks through every realistic approach to multiple IF statements in Excel, with formulas you can paste into your own workbook today.
We'll cover nested IF, the cleaner IFS function, IF combined with AND or OR, plus SWITCH, CHOOSE, and lookup-based alternatives that scale better. You'll also learn when each method shines and when it becomes a maintenance nightmare. By the end, you'll know which tool to reach for based on your data, not habit. Whether you're calculating grades, sorting customers into tiers, or building approval logic for a finance workflow, the patterns below will save you hours.
Before we dive in, a heads-up: there's no single best method. The right answer depends on your Excel version, the number of conditions, and whether your team needs to read and modify the formula later. We'll flag those trade-offs at every step so you can pick wisely.
The basic IF function uses the syntax =IF(logical_test, value_if_true, value_if_false). It returns one value when the condition is true and another when false. Multiple IF logic builds on this by nesting more IFs inside the false branch, or by using newer functions like IFS that handle several conditions in one tidy call.
Why does this matter? A single IF only handles two outcomes. Real work rarely cooperates. You might need to assign letter grades A through F, calculate sales commission tiers, sort customers into Premium, Standard, and Basic buckets, or pick a tax bracket from five income ranges. Each of those needs three or more outcomes, and that's where multiple IF statements earn their keep.
Think about a payroll spreadsheet. Hourly rate depends on role, overtime kicks in past 40 hours, and bonus eligibility hinges on tenure. That's at least three conditional checks rolled into one calculation. A single IF can't model it. Either you nest, you combine logical functions, or you build a reference table. The choice you make today affects how much pain you'll have updating the file next quarter.

Three Core Approaches to Multiple Conditions
The classic approach. You place an IF inside another IF's value_if_false argument, and keep going until you've covered every condition. Works in every version of Excel ever shipped.
Grade calculator example:
=IF(A1>=90,"A",IF(A1>=80,"B",IF(A1>=70,"C",IF(A1>=60,"D","F"))))Excel technically allows up to 64 nested IFs. Don't do it. Anything past four levels becomes painful to debug and slow to evaluate. Best for two to four conditions on simple ranges.
Let's break each method down with more detail. The nested IF is still the most common approach, partly because it works everywhere and partly because most tutorials default to it. The trick is keeping the logic readable.
Once you're three or four IFs deep, line breaks and indentation in the formula bar (Alt+Enter on Windows, Ctrl+Option+Return on Mac) save your sanity. If you find yourself writing comments to remember what each branch does, switch tools.
Nested IFs evaluate from outside in. Excel checks the outermost test first, and only drops into the inner IF when that test is false. Understanding this evaluation order is half the battle. The other half is naming things sensibly — store thresholds in named cells so the formula reads like English rather than a wall of numbers.
One subtle trap: when you nest more than three or four levels deep, Excel's formula auditing tools start to struggle. The Evaluate Formula dialog (Formulas tab) still works, but stepping through each branch becomes tedious. Save yourself the headache and refactor early.
Common Multiple IF Patterns
- Use case: Convert numeric scores to letter grades
- Conditions: 5 (A, B, C, D, F)
- Best method: IFS or nested IF
- Use case: Pay 5%, 7%, or 10% based on sales
- Conditions: 3 thresholds
- Best method: Nested IF or VLOOKUP
- Use case: New / Active / Inactive / Closed
- Conditions: 4 exact-match values
- Best method: SWITCH or IFS
- Use case: Bonus % by years of service
- Conditions: 4-6 tiers
- Best method: VLOOKUP with reference table
- Use case: Apply marginal tax rate to income
- Conditions: 5-7 brackets
- Best method: VLOOKUP (approximate match)
- Use case: Auto-approve, hold for review, or reject
- Conditions: Compound (amount AND status OR discount)
- Best method: IF + AND + OR combination
- Use case: Free, standard, or expedited based on cart total
- Conditions: 3 thresholds with multiple inputs
- Best method: Nested IF or IFS
Method 5 deserves its own moment. The SWITCH function shines when you're matching exact values, not ranges. Think weekday codes, status flags, or product categories. Syntax is =SWITCH(expression, value1, result1, value2, result2, ..., default).
Example: =SWITCH(A1,"M","Monday","T","Tuesday","W","Wednesday","Unknown"). Cleaner than five nested IFs and faster to read. SWITCH stops checking the moment it hits a match, which is also marginally faster than the equivalent nested IF for long lists of exact values.
Method 6 is the often-forgotten CHOOSE function. It returns a value from a list based on a numeric index. =CHOOSE(A1,"Red","Yellow","Green") returns Red when A1 is 1, Yellow when 2, Green when 3.
Perfect when your input is already a number that maps directly to options. Useful inside other formulas where you want to pick a label without nesting. Pair CHOOSE with WEEKDAY to convert day numbers into names, or with MONTH to grab quarter labels.
CHOOSE has a hidden superpower: it can return ranges, not just single values. That means you can use it inside SUM, AVERAGE, or VLOOKUP to switch between different data tables based on a key. It's an old function but it still solves problems no other function handles as cleanly.
Order of conditions matters more than you think. Excel evaluates conditions top to bottom and returns the first TRUE result. Wrong: =IF(A1>=60,"D",IF(A1>=80,"B",...)) — anyone scoring 95 still gets a D because 95 is greater than 60 and that branch fires first. Right: list thresholds from highest to lowest so the most specific condition wins. The same rule applies to IFS, even though the syntax looks different.
Once you cross ten conditions, nested IF and even IFS become unmaintainable. That's where Method 7 takes over. Build a small reference table with two columns — your thresholds and the matching results — then use VLOOKUP or XLOOKUP to fetch the answer.
For grade calculations, set up cells E1:F5 with thresholds 0, 60, 70, 80, 90 and grades F, D, C, B, A. Then write =VLOOKUP(A1,$E$1:$F$5,2,TRUE). The TRUE flag enables approximate match, which finds the largest value not exceeding A1.
This approach has huge advantages. Adding a grade tier means inserting a row in the table, not rewriting a formula in 5,000 cells. Your logic lives in cells you can see and audit. New team members understand it instantly.
For more on building robust formulas like this, the Excel formulas cheat sheet covers VLOOKUP, INDEX/MATCH, and XLOOKUP side by side. XLOOKUP, available in Excel 365 and 2021, is even better — it handles exact and approximate match cleanly, returns custom defaults, and searches in either direction.
One catch with VLOOKUP approximate match: your lookup table must be sorted ascending. Forget that and you get nonsense results with no error message. XLOOKUP doesn't have this restriction, which is one more reason to migrate when you can.

Method 8 is the compound conditions trick. Real business rules often combine AND with OR. Imagine an approval workflow: a deal needs approval if it's over $50K AND either the customer is new OR the discount is above 15%.
Write that as =IF(AND(A1>50000,OR(B1="New",C1>15)),"Approved","Review"). Excel processes the inner OR first, then the outer AND, then the IF. You can mix and match these freely, just keep parenthesis pairs straight.
When you nest AND inside OR, group your tests deliberately — small parenthesis errors create silent logic bugs that look correct at a glance. Use Excel's Evaluate Formula tool to step through each piece if the result feels off.
Multiple IF by the Numbers
About common mistakes. The number one issue is forgetting closing parentheses. Excel's formula bar highlights matching pairs as you click — use that. The number two issue is wrong condition order on ranges (covered above). Number three: forgetting to wrap text in quotes. =IF(A1>5,Yes,No) throws #NAME? because Excel thinks Yes and No are named ranges. Use "Yes" and "No".
Other traps include mixing data types — a number compared to text returns FALSE silently, no error — and omitting the FALSE branch entirely. =IF(A1>5,"Yes") returns the literal text FALSE when A1 is 3. Always specify both outcomes. If you want a blank, use "". For a deeper dive into IF mechanics, see the guide on the IF statement in Excel for syntax fundamentals you may have skipped.
Hardcoded values are another sneaky problem. Writing =IF(A1>50000,"Bonus","No bonus") works once. The day finance changes the threshold to $55K, you have to edit every formula. Better: store the threshold in a cell, name it BonusThreshold, and reference it. One edit updates everything.
Mistake number five: using comma versus semicolon as a separator in non-US locales. European Excel installations often expect semicolons. If you copy a formula from an English-language tutorial and it throws an error, check your regional settings before assuming the formula itself is wrong.
Mistake number six: testing only happy-path values. Run your formula against edge cases — exact threshold matches, negative numbers, zero, blank cells, text where you expect numbers. Each one can expose a logic gap you'd never notice with normal data alone.
Decision Guide: Which Method to Use
- ✓2 outcomes only? Use a simple IF
- ✓3 to 5 ranges? Nested IF or IFS (prefer IFS if you have Excel 2019+)
- ✓Many exact-match values? Use SWITCH or VLOOKUP
- ✓Complex compound conditions? Combine IF with AND and OR
- ✓10 or more conditions? Build a reference table with VLOOKUP or XLOOKUP
- ✓Logic changes often? Always use a reference table, not formula edits
- ✓Need to highlight cells based on the result? Pair with conditional formatting in Excel
- ✓Working with 100k+ rows? Push logic to Power Query for best performance
- ✓Cells might be blank? Wrap your test with ISBLANK to avoid false matches
- ✓Sharing with Excel 2016 users? Avoid IFS and SWITCH — use nested IF
- ✓Need a default for unmatched cases? Add TRUE as the final IFS condition
- ✓Worried about #N/A errors? Wrap the whole formula in IFERROR or IFNA
Performance matters once your workbook hits 100,000 rows. Heavy nested IFs slow recalculation noticeably. VLOOKUP and XLOOKUP usually beat ten nested IFs by a wide margin because Excel optimizes lookup operations internally. IFS is also slightly faster than the equivalent nested IF in most benchmarks. For datasets in the hundreds of thousands, push your IF logic into Power Query — the M language handles conditional logic natively and runs outside the Excel calculation engine.
Volatile functions amplify the slowdown. If your IF chain references TODAY(), NOW(), INDIRECT(), or OFFSET(), every recalculation re-runs the whole chain on every cell change. Replace volatile inputs with static cells where possible. Switching calculation mode to manual (Formulas tab → Calculation Options → Manual) lets you finish editing before Excel recalculates the whole sheet.

Building a multi-IF formula goes wrong fast if you skip the planning step. The timeline below shows the order I recommend every time, whether you're writing two conditions or twelve. Plan first, build incrementally, test each branch with sample data, and refactor when the formula gets ugly. Don't try to type the whole thing in one go — that's how parenthesis nightmares are born.
How to Build a Multi-IF Formula
Define conditions in plain English
Order from most specific to least
Build the formula one IF at a time
Test each branch with sample data
Refactor to IFS or VLOOKUP
A quick word on cross-platform behavior. Nested IF, IFS, AND, OR, SWITCH, and CHOOSE all work identically in Excel for Mac. Keyboard shortcuts for formula editing differ — Cmd instead of Ctrl, and Function key behavior on newer MacBooks may need toggling — but the formulas themselves are the same. Excel for the Web also supports all these functions. Some advanced array operations and dynamic array spilling can behave differently on the web client, but core conditional logic is fully supported.
Excel for iPad has the same engine but limited formula auditing tools. If you're building complex multi-IF logic, do it on desktop first and test on mobile after. Google Sheets supports nearly identical IF, IFS, AND, OR, and SWITCH syntax, so formulas often translate directly. The main difference is that Sheets has had IFS and SWITCH longer than older Excel versions, so cross-team compatibility is usually fine.
If you exchange files with people on legacy Excel installs, stick to nested IF and AND/OR. They're universal. Save the modern functions for files that stay inside your own Microsoft 365 environment, where every user has access to the latest engine and won't open your workbook to find every IFS cell broken.
Multiple IF Methods: Trade-Offs
- +Nested IF works in every Excel version, no upgrade needed
- +IFS dramatically improves readability for 5+ conditions
- +IF + AND/OR handles compound conditions elegantly
- +VLOOKUP/XLOOKUP scale to dozens of tiers without formula bloat
- +Reference tables let non-technical users edit logic safely
- +SWITCH is fastest for exact-match scenarios
- −Nested IF beyond 4 levels becomes unreadable and bug-prone
- −IFS and SWITCH require Excel 2019 or Microsoft 365
- −VLOOKUP needs an extra reference table to maintain
- −Long IF chains slow recalculation on large datasets
- −Compound AND/OR logic is hard to debug without breaking it apart
- −Hardcoded thresholds force formula edits when business rules change
Refactoring example time. Suppose you have this five-level nested IF for grades:
=IF(A1>=90,"A",IF(A1>=80,"B",IF(A1>=70,"C",IF(A1>=60,"D","F"))))
Rewrite with IFS:
=IFS(A1>=90,"A",A1>=80,"B",A1>=70,"C",A1>=60,"D",TRUE,"F")
Now with VLOOKUP and a table in E1:F5 (0/F, 60/D, 70/C, 80/B, 90/A):
=VLOOKUP(A1,$E$1:$F$5,2,TRUE)
Three approaches, same result. The VLOOKUP version is shortest, easiest to update, and fastest on big sheets. Notice the $E$1:$F$5 uses an absolute reference in Excel so the table location stays locked when you copy the formula down. If you forget the dollar signs, the table reference shifts as you fill, and your grades will all return wrong values from rows lower in the table.
One more practical tip: pair your multi-IF formulas with visual feedback. Once you're returning Pass/Fail or grade letters, set up conditional formatting in Excel to color-code the result cells.
A green Pass and red Fail are easier to scan than text alone, especially when you're sharing the workbook with others or presenting it. Conditional formatting can also act as an audit tool: highlight any cell where your IF formula returns an unexpected default and you'll spot data issues fast.
Mastering multiple IF logic is also a stepping stone to more advanced formula patterns. Once you understand the evaluation order and how to combine logical functions, array formulas, dynamic arrays, and the LET function become much easier to learn.
LET in particular pairs beautifully with complex IF logic. You can name intermediate calculations and reuse them inside the same formula, which makes a six-condition IFS readable for anyone who opens the file. Solid Excel formula basics are the foundation for all of this.
Don't overlook error handling either. Wrap your multi-IF formula in IFERROR or IFNA to catch any unexpected results: =IFERROR(IFS(A1>=90,"A",A1>=80,"B",TRUE,"F"),"Invalid"). That way, blank or text-formatted inputs return a clean message instead of #N/A or #VALUE!. Small touch, big improvement when others use your file.
Documentation matters too. If your formula is doing something non-obvious, drop a comment in an adjacent cell explaining the logic. Or better, use a Notes column right next to the result. Future you (and your teammates) will thank you when nobody can remember why one particular threshold value sits at 73 instead of 70.
That covers every realistic way to handle multiple IF statements in Excel. Pick the method that matches your data shape, your Excel version, and your team's skill level. When in doubt, lean toward the readable option — your future self will thank you when you reopen the file in six months and have to remember what you were thinking.
And if you ever inherit a workbook with a 10-deep nested IF, treat it as a refactor opportunity rather than a puzzle to debug. A reference table plus a single VLOOKUP almost always wins on readability, speed, and maintainability. The only time nested IF still beats lookups is when you have just two or three simple range checks and you don't want the overhead of a separate table.
Multiple IF Statements in Excel Questions and Answers
About the Author
Attorney & Bar Exam Preparation Specialist
Yale Law SchoolJames R. Hargrove is a practicing attorney and legal educator with a Juris Doctor from Yale Law School and an LLM in Constitutional Law. With over a decade of experience coaching bar exam candidates across multiple jurisdictions, he specializes in MBE strategy, state-specific essay preparation, and multistate performance test techniques.