Pass fail label
=IF(C2>=70, "Pass", "Fail") prints readable status beside each score.
IF evaluates a logical test and returns value_if_true when the test passes, otherwise value_if_false. It is the basic branching function for labels, safe division, and simple approvals before you reach for IFS or lookup tables.
Use IF for binary decisions: pass or fail, tax or no tax, show a message when a cell is empty, or return a blank instead of an error.
Skip deep nested IF trees with many tiers. IFS, SWITCH, or an XLOOKUP table read better and are easier to audit.
Write a condition that resolves to TRUE or FALSE, such as B2>100 or A2="Yes".
Provide value_if_true: number, text in quotes, another formula, or a cell reference.
Provide value_if_false for the else branch. Omitting it returns FALSE by default in some cases.
Nest IF inside either branch for more than two outcomes, but stop before readability breaks.
Combine IF with AND or OR when the test needs multiple checks in one expression.
Drag the formula down a column so each row evaluates its own condition.
=IF(C2>=70, "Pass", "Fail") prints readable status beside each score.
=IF(B2=0, "", A2/B2) avoids #DIV/0! when the denominator can be zero.
=IF(D2="Closed Won", E2*0.1, 0) pays commission only on won deals.
Build this without starting from a blank cell
Use a Better Sheets tool for IF, then watch a walkthrough when you want the full pattern.
Watch how IF works
Guides that explain IF in more depth.
The IF() formula is a logical function that makes it easy for users to compare a certain value and an expected value. It takes a look at a value to see if basic conditions are met.
Read post →Dive into Google Sheets with our free beginner tutorials on the powerful =IF() formula. Practical applications, templates, and tools included!
Read post →Boost your confidence, master formula usage and overcome errors in this step-by-step guide. Join us to demystify spreadsheets.
Read post →IFS runs several condition-result pairs in order and returns the result for the first condition that is TRUE. It replaces long nested IF trees for tiered scoring, bonus bands, and SLA buckets where each step tests a comparison.
Read guide →IFERROR wraps another formula and returns value_if_error when the inner expression hits any error, including #N/A, #REF!, #VALUE!, and #DIV/0!. Use it for polished dashboards. Fix the root cause when the error signals bad data you should clean.
Read guide →SWITCH evaluates an expression against a list of case values and returns the result for the first match. A default value catches everything else. It cleans up nested IF chains when you compare one cell to many constants like status codes.
Read guide →Every formula starts with = followed by a function name and arguments in parentheses. Ranges use A1 notation, text sits in quotes, and operators like + and & combine values. Sheets recalculates when inputs change, so syntax errors show as #NAME? or #ERROR! in the cell.
Read guide →Done reading about IF?
Membership unlocks 636+ tutorials, unlimited generators, and every template. Practical lessons. Zero fluff.
Need this once
Jump to a free tool or a single tutorial for this topic.
Learning Sheets for real
Unlock the full library, generators, and templates with membership.