IF
The foundational logical function. Test a condition, return one value if true, another if false. Every Excel user learns IF first — and never stops using it.
IF Complete Guide →The decision-making core of every formula. IF, IFS, AND, OR — the tools that make Excel formulas conditional, adaptive, and smart.
Logical functions are how you make Excel formulas think. "If revenue is above target, mark green — otherwise red." "If date is a weekend AND priority is high, flag urgent." "If any of these three conditions is true, notify." Without logical functions, formulas can only calculate. With them, formulas can decide.
The foundational logical function. Test a condition, return one value if true, another if false. Every Excel user learns IF first — and never stops using it.
IF Complete Guide →Multiple conditions without messy nesting. Instead of five nested IFs to grade A/B/C/D/F, one clean IFS. Excel 2019+ only.
IFS Complete Guide →Catch errors and return a fallback value. Wrap risky formulas (lookups, divisions) to prevent #N/A or #DIV/0! from appearing in reports.
IFERROR Complete Guide →Combine multiple conditions. AND requires all true. OR requires any true. NOT inverts. Used inside IF to build complex conditions.
AND / OR / NOT Guide →=IF(A1>90, "A", IF(A1>80, "B", IF(A1>70, "C", "F"))) — clear but ugly beyond 3 tiers. Switch to IFS.=IFS(A1>90, "A", A1>80, "B", A1>70, "C", TRUE, "F") — the final TRUE catches everything else.=IFERROR(VLOOKUP(A1, table, 2, FALSE), "Not found") — no more #N/A in reports.=IF(AND(price>100, stock>0), "Ready", "No") — both conditions required.=IF(OR(A1="urgent", A1="critical"), "🚨", "") — either label triggers the flag.Excel allows up to 64 nested IFs, but nobody should nest more than 3. Past 3, use IFS (multiple conditions), SWITCH (matching to a list), or a lookup table with VLOOKUP/XLOOKUP instead.
=IF(A1="", ...) checks if the cell is blank OR contains an empty string. =IF(ISBLANK(A1), ...) only matches truly empty cells — formulas returning "" don't count. Choose based on your data source.
IFERROR catches ALL errors and hides them. IFNA catches only #N/A. Use IFNA when you want to see other errors (like #DIV/0! or #REF!) so you can catch real bugs — while gracefully handling missing lookups.
Yes — up to 255 arguments. =AND(A1>0, B1<100, C1="active", D1>=today()) tests all four at once. But if you have 10+ conditions, restructure — a lookup table is usually cleaner.
Excel treats empty and 0 as similar. Use =IF(A1="", "", A1+B1) to explicitly return empty string when the source is blank, instead of the default 0.
Describe your decision — "if invoice is over 30 days late AND amount is over $1000, flag urgent — otherwise normal" — and get the exact nested formula.
Get the Add-in →