Excel IFS Function: Syntax, Examples & Tips

The IFS function evaluates multiple conditions in Excel and returns specified values based on the first true condition met.
Excel
=IFS(condition1, value1, [condition2, value2], ...)

One free generation or explanation per browser, shared across Excel and Google Sheets. Account usage limits apply afterward.

Need more than a single IFS formula? Try our free AI for Excel — it reads your entire spreadsheet, answers questions in plain English, and builds charts and analysis in the same chat.

On this page
  1. Parameters
  2. What is an IFS Formula in Excel?
  3. A Practical Example
  4. IFS Formula
  5. Result of the Formula
  6. Why Use IFS?
  7. Key Takeaways:
  8. Example use case

Parameters

condition1:
The first condition that you want to evaluate. If this condition is TRUE, the corresponding value1 will be returned.

value1:
The value that will be returned if condition1 is TRUE. This can be a number, text, logical value, or a formula.

condition2:
The second condition that you want to evaluate. If this condition is TRUE, the corresponding value2 will be returned. This parameter is optional and can be repeated for additional conditions.

value2:
The value that will be returned if condition2 is TRUE. This can be a number, text, logical value, or a formula. This parameter is optional and can be repeated for additional values.

...:
Additional pairs of conditions and values can be added in the same format as condition3, value3, condition4, value4, and so on, allowing for multiple conditions to be evaluated.

What is an IFS Formula in Excel?

The IFS function in Excel is a powerful tool that allows you to evaluate multiple conditions and return a value corresponding to the first TRUE condition. It simplifies the process of writing nested IF statements by allowing you to specify multiple conditions in a single formula.

In simpler terms, the IFS function helps you make decisions based on several criteria, making it easier to analyze complex data.

A Practical Example

Imagine you are managing a student grading system, and you have the following data in an Excel spreadsheet:

Student Grades Table:

StudentScore
Alice85
Bob70
Charlie95
David60
Eve80

You want to assign letter grades based on the scores using the following criteria:

  • A: 90 and above
  • B: 80 to 89
  • C: 70 to 79
  • D: 60 to 69
  • F: Below 60

IFS Formula

To assign letter grades based on the scores, you would use the IFS formula as follows:

Excel
=IFS(B2>=90, "A", B2>=80, "B", B2>=70, "C", B2>=60, "D", B2<60, "F")

Breakdown of the Formula:

  • B2>=90, "A": If the score in B2 is 90 or above, return "A".
  • B2>=80, "B": If the score in B2 is 80 or above (but less than 90), return "B".
  • B2>=70, "C": If the score in B2 is 70 or above (but less than 80), return "C".
  • B2>=60, "D": If the score in B2 is 60 or above (but less than 70), return "D".
  • B2<60, "F": If the score in B2 is below 60, return "F".

Result of the Formula

When you apply the formula to each student's score, you would get the following letter grades:

StudentScoreGrade
Alice85B
Bob70C
Charlie95A
David60D
Eve80B

Why Use IFS?

The IFS function is particularly useful when you need to evaluate multiple conditions without the complexity of nested IF statements. It allows you to create clear and concise formulas that are easier to read and maintain.

Key Takeaways:

  • IFS: Evaluates multiple conditions and returns a value for the first TRUE condition.
  • Simplified Logic: Reduces the complexity of nested IF statements.
  • Common Use Cases: Ideal for grading systems, performance evaluations, and any scenario where multiple criteria need to be assessed.

Understanding how to use the IFS function can significantly enhance your data analysis capabilities in Excel, enabling you to make informed decisions based on complex criteria.

Happy calculating!

Example use case

You have a table where Column A contains student names and Column B contains their corresponding exam scores. You can use the IFS function to assign letter grades based on the scores, such as "A" for scores 90 and above, "B" for scores between 80 and 89, "C" for scores between 70 and 79, "D" for scores between 60 and 69, and "F" for scores below 60. This allows for a clear and efficient grading system that helps educators quickly assess student performance and identify those who may need additional support.

Beyond the IFS function: Better Analyst is a full Excel AI that goes well past individual formulas. Upload any spreadsheet and ask questions in plain English — you'll get formulas, data analysis, and charts back in seconds. It's a free AI Excel assistant that works with any .xlsx, .xls, or .csv file — no plugins, no Microsoft 365 required.

Don't have a spreadsheet yet? Use our free AI spreadsheet generator to turn a text prompt into a downloadable Excel file — a full AI Excel sheet maker that builds headers, columns, and formulas from your description.

Need more help with Excel formulas?

Create a free account for formula help, explanations, and spreadsheet analysis. Usage limits depend on your plan.

Explore all Excel formulas

Browse our complete library of Excel formula guides

Compare your options

Decide with evidence, not a sales pitch.

Open a neutral research prompt in the AI tool you already use. Compare capabilities, limitations, and fit before you choose.

  1. 01ChatGPTOpen a balanced comparison prompt in ChatGPT.
  2. 02ClaudeOpen the same research prompt in Claude.
  3. 03PerplexityResearch the comparison with linked web sources.

AI answers can be incomplete. Check source links, current pricing, and product documentation before deciding.