In Excel: use =IFS(test1, result1, test2, result2, …) — it tests conditions in order and returns the first result that matches, with no nesting. Function availability: IFS: Excel 2019+. These are Microsoft's version markers; earlier perpetual releases do not include these functions. Check the actual product and update channel before using the formula. A marker does not establish an identical Web/Mac workflow or Google Sheets support.
On this page8
Syntax
Arguments
| Argument | required / optional | Description |
|---|---|---|
logical_test1 | required | The first condition to test. |
value1 | required | What to return when the first condition is TRUE. |
logical_test2, value2 | optional | Further condition-and-result pairs, tested in order. |
Related functions
Function availability: IFS: Excel 2019+. These are Microsoft's version markers; earlier perpetual releases do not include these functions. Check the actual product and update channel before using the formula. A marker does not establish an identical Web/Mac workflow or Google Sheets support.
List your conditions on paper in the order they should be tested — most specific or highest threshold first.
Type =IFS( and enter the first condition, a comma, then its result.
Continue with further condition-and-result pairs separated by commas.
Finish with TRUE and a default value so unmatched rows do not return #N/A.
What this does
IFS replaces a chain of nested IFs with a flat list of condition-and-result pairs. It evaluates them top to bottom and returns the first match, which makes ORDER the thing to get right: a test of >50 placed before >100 catches everything above 50 and the later test never fires. There is no built-in "otherwise" branch, so the standard idiom for a default is a final pair of TRUE and the fallback value. When nothing matches and no default is supplied, the result is #N/A. Requires Excel 2019 or later. The same idea underpins a lot of everyday Excel work, so the few minutes spent getting it right here pay back across every sheet you build afterwards. Treat it as a pattern, not a one-off, and it stops being something you look up and starts being something you reach for. The difference between a quick fix and a sheet you can trust is the extra minute you spend validating “ifs function”. Start on a copy or a tiny sample, keep the affected formula visible, and compare the result with the outcome you expected before you touch the real workbook. When a formula is involved, keep the inputs labelled beside it, reference cells instead of typing values, and apply number formatting only after the result checks out. The point is a layout choice that keeps the sheet readable and sortable, but the practical win is that someone else can open the file and understand what happened without asking you.
A worked example
Grading a score in B2: =IFS(B2>=90,"A", B2>=80,"B", B2>=70,"C", TRUE,"F") — note the thresholds run highest first, and the final TRUE catches everything else. Written as nested IFs the same logic needs four opening brackets and four closing ones, which is where the errors come from. IFS removes the bracket-counting that makes deep nested IFs the most error-prone construct in spreadsheets. Check the referenced cells, argument order and result type in your workbook. Start with the worked example before changing an input, then compare the changed result with the calculation you expected. An error value or a result of a different type is a reason to inspect the inputs and arguments.
In Google Sheets
Function availability: IFS: Excel 2019+. These are Microsoft's version markers; earlier perpetual releases do not include these functions. Check the actual product and update channel before using the formula. A marker does not establish an identical Web/Mac workflow or Google Sheets support. Nothing on this page is behind a login or a download: the exact answer is at the top, and the detail below it is there for when you need it. That is the whole promise here — the answer first, and just enough context to make it stick. For “ifs function”, keep the input cells and the result visible while you check the formula in Excel. Follow the worked example and change one input at a time. The steps explain the workbook calculation; this page does not run a live calculator for that task.
Common mistakes
- Ordering the conditions loosest-first, so a broad test catches rows a later specific one was meant to handle.
- Omitting the final TRUE default, which returns
#N/Afor anything unmatched. - Using it in Excel 2016 or earlier, where it returns
#NAME?.
Frequently asked questions
How do I add an "else" to IFS?
Make the last pair TRUE and your default value: =IFS(…, TRUE, "Other").
Does the order of conditions matter?
Yes, decisively. IFS returns the first match, so put the most restrictive test first.
What is the difference between IFS and SWITCH?
IFS evaluates arbitrary conditions; SWITCH compares one expression against a list of exact values. Ranges need IFS, exact matches suit SWITCH.
Which Excel release does this formula require?
Function availability: IFS: Excel 2019+. These are Microsoft's version markers; earlier perpetual releases do not include these functions. Check the actual product and update channel before using the formula. A marker does not establish an identical Web/Mac workflow or Google Sheets support.
Other ways people ask this
This is also commonly searched as “excel formula ifs function” and “how to use ifs function in excel”. They describe the identical operation, so you are in the right place no matter how you phrased it.
Why do people search for this in so many different ways?
Because the same task has many names. “excel formula ifs function”, “how to use ifs function in excel” all point at the one operation explained on this page, which is why they all lead here.