Skip to main content
Albero Academy

Logical Functions

Make decisions with IF, AND, OR and IFS.

Formulas & Functions9 min

IF is Excel's decision-maker: it returns one value when a condition is true and another when false. Combined with AND/OR, it drives most business logic in spreadsheets.

IF

=IF(condition, if_true, if_false)
=IF(B2 >= 40, "Pass", "Fail")
=IF(B2 > 100000, B2 * 0.9, B2) discount over a threshold
=IF(AND(B2 >= 40, C2 = "Yes"), "OK", "Review") combine conditions
=IF(OR(B2 = "A", B2 = "B"), "Top", "Other")

IFS & nested IF

multiple bands
=IFS(B2 >= 75, "Distinction",
B2 >= 40, "Pass",
TRUE, "Fail") — cleaner than nesting many IFs

Key takeaways

  1. 01IF(condition, if_true, if_false) returns different values based on a test.
  2. 02AND/OR combine multiple conditions inside IF.
  3. 03IFS handles multiple bands more readably than nested IFs (TRUE = else).
  4. 04IFERROR(formula, fallback) replaces error results with a clean value.

Finished this chapter?

Mark it complete to track your progress through Excel.