MS Excel: IFS function (from basic to advanced usage)
- Fakhriddinbek
- Apr 22
- 3 min read
Updated: Apr 24
The IFS function in Excel evaluates a series of conditions and returns a specific value for the first true condition. This makes the IFS function particularly helpful when applying multiple tests, streamlining the process compared to using traditional IF statements.

Instead of nesting numerous IF statements, the IFS function simplifies your formulas, making them cleaner and easier to read.
Syntax of the IFS Function
The syntax of the IFS function is simple. It looks like this:
=IFS(logical_test1, value_if_true1, [logical_test2, value_if_true2], ...)
logical_test: The condition to evaluate.
value_if_true: The result to return if the condition is true.
You can include up to 127 pairs of logical tests and values in one IFS function.
Basic Usage of the IFS Function
Let’s look at a real-world example: grading students based on their scores. You want to assign letter grades based on a numeric score (0–100) with the following criteria:
Score >= 90: Grade A
Score >= 80: Grade B
Score >= 70: Grade C
Score >= 60: Grade D
Score < 60: Grade F
Here's how to set up the IFS function for this scenario:
=IFS(A1 >= 90, "A", A1 >= 80, "B", A1 >= 70, "C", A1 >= 60, "D", A1 < 60, "F")
Replace A1 with the cell that contains the student's test score. When you enter this formula, Excel evaluates the conditions in the order given and returns the appropriate letter grade based on the score.
Advantages of Using the IFS Function
Using the IFS function has many benefits compared to traditional nested IF statements:
Simplicity: It simplifies formulas, making them easier to read and understand at a glance.
Error Reduction: Fewer nested functions help lower the risk of syntax errors.
Efficiency: The IFS function processes faster than multiple nested IFs, especially with large datasets.
Clarity: Its structure separates conditions and outcomes, making it logical and easy to follow.
Advanced Usage of the IFS Function
As you become more skilled in Excel, you may want to combine the IFS function with other functions like AND or OR for more complex applications.
Using IFS with AND
Suppose you wish to calculate discounts based on purchase amounts and customer types. If a customer is a "Premium" member and spends over $1000, they receive a 20% discount. Otherwise, they receive a 10% discount. Here’s how you can use the IFS function with AND:
=IFS(AND(B1="Premium", C1>1000), 0.20, B1="Premium", 0.10, B1="Regular", C1>1000, 0.10, TRUE, 0.05)
In this formula:
B1 refers to the customer type,
C1 refers to the purchase amount.
Using IFS with OR
You can use OR within the IFS function to categorize data types. For example, you might want to categorize items based on their condition:
"New": if the item is either "Brand New" or "Like New"
"Used": if the item is either "Used" or "Refurbished"
"Damaged": otherwise
Set this up like this:
=IFS(OR(A1="Brand New", A1="Like New"), "New", OR(A1="Used", A1="Refurbished"), "Used", TRUE, "Damaged")
Practical Tips for Using the IFS Function
To get the most out of the IFS function, keep these best practices in mind:
Test with Examples: Always create test cases to ensure your IFS function works as expected before applying it to your main dataset.
Document Your Formula: Since complex formulas can be confusing later on, document your logic within the worksheet for easier understanding in the future.
Error Handling: Including the `TRUE` condition at the end of your IFS function acts as a safety net, preventing errors when no conditions are met.
Unlocking the Power of IFS
The IFS function in Excel is a versatile tool that makes managing conditional logic easier. Whether you are applying simple evaluations or tackling more intricate scenarios, the IFS function helps reduce formula clutter and improves efficiency. By mastering both basic and advanced techniques of the IFS function, you can elevate your spreadsheet skills, resulting in improved data analysis and easier decision-making.
Start exploring the potential of the IFS function today and transform how you manage data in Excel!
Comments