Google Sheets IFS Function: Syntax, Examples & Tips

The IFS function evaluates multiple conditions and returns a value corresponding to the first true condition, simplifying nested IF statements.
Google Sheets
IFS(condition1, value1, [condition2, value2], …)

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

On this page
  1. Parameters
  2. What is an IFS Formula?
  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. This can be a logical expression that returns TRUE or FALSE.

value1:
The value that will be returned if condition1 is TRUE.

condition2:
The second condition that you want to evaluate (optional). This can also be a logical expression.

value2:
The value that will be returned if condition2 is TRUE (optional).

...:
Additional pairs of conditions and values can be added as needed, following the same pattern.

What is an IFS Formula?

The IFS function in Google Sheets is a logical function that allows you to evaluate multiple conditions and return a value corresponding to the first true condition. It is a more efficient alternative to using multiple nested IF statements, making your formulas cleaner and easier to read. The IFS function is particularly useful when you have several conditions to check and want to avoid the complexity of nested IFs.

In simpler terms, IFS lets you check various conditions in a straightforward manner and return a specific result based on the first condition that is met.

A Practical Example

Imagine you are grading students based on their scores stored in a Google Sheets document:

Scores Table:

StudentIDStudentNameScore
1Alice85
2Bob70
3Charlie90
4David60

You want to assign a grade based on the score:

  • A for scores 85 and above
  • B for scores between 70 and 84
  • C for scores between 60 and 69
  • D for scores below 60

IFS Formula

To achieve this, you would use the IFS function as follows:

Google Sheets
=IFS(C2 >= 85, "A", C2 >= 70, "B", C2 >= 60, "C", C2 < 60, "D")

In this formula:

  • C2 is the cell containing the Score for each student.
  • Each condition is followed by the corresponding grade that will be returned if the condition is true.

Result of the Formula

When you apply the IFS formula to the Scores Table, the output would look like this:

StudentIDStudentNameScoreGrade
1Alice85A
2Bob70B
3Charlie90A
4David60C

In this case, the IFS function evaluates each student's score and assigns the appropriate grade based on the defined conditions.

Why Use IFS?

IFS is beneficial because it simplifies the process of evaluating multiple conditions in Google Sheets. It reduces the complexity of nested IF statements, making your formulas easier to read and maintain. Additionally, it allows for a more organized approach to conditional logic, which can enhance the clarity of your spreadsheets.

Key Takeaways:

  • IFS: A logical function that evaluates multiple conditions and returns a value for the first true condition.
  • Simplified Logic: Eliminates the need for complex nested IF statements, improving readability.
  • Versatile: Ideal for scenarios where multiple conditions need to be checked, such as grading, categorizing, or decision-making.
  • Common Use Cases: Useful in grading systems, performance evaluations, and any situation requiring conditional outputs based on multiple criteria.

The IFS function is an essential tool for anyone working with data in Google Sheets, providing a powerful way to streamline conditional logic and enhance data analysis capabilities.

Happy spreadsheeting!

Example use case

You have a grading table where Column A lists student scores. Use the IFS formula in Column B to assign letter grades: A for 90+, B for 80-89, C for 70-79, and so on. This automates grade assignment based on score ranges, streamlining the grading process.

Need more help with Google Sheets formulas?

Sign up for Better Analyst and get unlimited AI-powered formula generation, explanations, and advanced data analysis.

Explore all Google Sheets formulas

Browse our complete library of Google Sheets 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.

IFS in Google Sheets - Better Analyst