logical_test - Required. Condition to test (e.g., A1>100, B2="Yes"). Returns TRUE or FALSE.
value_if_true - Required. Value to return when condition is TRUE (text, number, or formula).
value_if_false - Optional. Optional. Value to return when FALSE. Defaults to FALSE if omitted.
| A | B | |
|---|---|---|
| 1 | Score | Grade |
| 2 | 95 | |
| 3 | 75 | |
| 4 | Formula: | =IF(A2>=90,"A","B") A |
Example: A1=150
=IF(150>100) → "High"
Example: A1=95
=IF(95>=90, 9.5, 0) → 9.5
Example: A1=85
=IF(85>=90,IF(85>=80)) → "B"
Example: A1=21, B1="US"
=IF(AND(TRUE,TRUE)) → "Eligible"
Nested IF formulas to convert numeric scores (0-100) into letter grades (A, B, C, D, F). Each IF tests a range. The IF function in Excel is perfect for grading systems in education, employee performance reviews, quality control scoring, and automated assessment workflows. This Excel IF formula structure handles multiple grade tiers efficiently without complex logic, making it ideal for teachers, HR managers, and data analysts who need reliable grading automation.
| A | B | C | |
|---|---|---|---|
| 1 | Student | Score | Grade |
| 2 | Alice | 95 | |
| 3 | Bob | 78 | |
| 4 | Formula: | =IF(A2>=90,"A",IF(A2>=80,"B","C")) A |
Calculate sales commission rates based on performance tiers. Higher sales earn higher commission percentages. The Excel IF function enables dynamic compensation models where commission rates automatically adjust based on achievement levels. This IF formula pattern is essential for sales teams, account managers, and finance departments managing variable compensation structures. Nested IF statements create fair, transparent commission tiers that motivate performance while maintaining budget control.
| A | B | C | |
|---|---|---|---|
| 1 | Salesperson | Sales | Commission Rate |
| 2 | Alice | $125,000 | |
| 3 | Formula: | =IF(B2>=100000,15%,IF(B2>=50000,10%,5%)) 15% |
❌ The Problem:
✅ Solution:
=IF(A1>100, "High", "Low")Always specify both value_if_true and value_if_false for clarity.
❌ The Problem:
✅ Solution:
=A1>100Use the comparison directly - it already returns a boolean value.
❌ The Problem:
✅ Solution:
=IF(A1=100, "Equal", "Not Equal")Always provide both outcomes explicitly for clear logic.
Master these IF Function variants:
From basics to advanced - AI generates perfect formulas instantly.