IF Function in Apple Numbers: Syntax, Examples and Troubleshooting
A practical Apple Numbers IF guide with exact syntax, verified documentation, worked results and common pitfalls.
Verification status: See the evidence and test scope described in this guide. How formula examples are checked
Quick answer: =IF(B2>=60,"Pass","Review") returns Pass when a numeric score reaches 60, and Review otherwise. IF selects one of two result values from a logical test.
Availability and version history
- Introduced: Documented in Apple’s Formulas and Functions Help 15.4; the original introduction release is not established.
- Availability: Currently documented in Apple’s Functions Help 15.4 documentation edition; it is not a final supported-version endpoint.
- Scope: Shared iWork function help. Availability in individual clients and older releases is not established by this check.
- Checked: October 14, 2026, against the official IF reference. Documentation and independent logical checks; no native Numbers test.
Syntax and documented defaults
=IF(if-expression, if-true, if-false)
The first argument is the condition. A numeric zero condition is false; every nonzero numeric condition is true. The true and false results can be numbers, text, references or other expressions. Text literals require quotation marks.
Apple distinguishes missing branches carefully:
- If the true position is left empty but its comma is present, a true condition returns 0.
- If the false position is left empty after a trailing comma, a false condition returns 0.
- If the false argument is entirely omitted, with no comma after the true result, a false condition returns boolean FALSE.
Use explicit result values when their types matter. An empty branch is not automatically empty text; "" is an explicit empty string.
Reproduce the five-student example
Create a Numbers table named Example, with six columns A:F and six rows including a header row. Use Student, Score, Submitted, Score result, Eligibility and Grade as headers. Enter A2:C6:
| Row | Student | Score | Submitted | Expected D | Expected E |
|---|---|---|---|---|---|
| 2 | Avery | 78 | Yes | Pass | Eligible |
| 3 | Blake | 49 | No | Review | Hold |
| 4 | Casey | 93 | Yes | Pass | Eligible |
| 5 | Dana | 60 | Yes | Pass | Eligible |
| 6 | Ellis | 58 | Yes | Review | Hold |
In D2 enter =IF(B2>=60,"Pass","Review") and fill to D6. The original row-2 example returns Pass because 78≥60. The exact boundary in row 5 also passes; > would represent a different rule.
In E2 enter =IF(AND(B2>=60,C2="Yes"),"Eligible","Hold") and fill to E6. This preserves the original advanced Dana example in E5 while making the result for every row explicit. The score and submission requirements must both hold.
Advanced: ordered grade bands in a separate result column
In F2 enter the following formula and fill through F6:
=IF(B2>=90,"A",IF(B2>=75,"B",IF(B2>=60,"C","Review")))
Expected F2:F6 are B, Review, A, C, Review. Starting with the highest boundary makes each later branch handle scores that failed the earlier test. Putting a broad test such as score≥60 first would classify a score of 93 too early if it immediately returned C.
For exact boundaries, create another table named GradeBoundary, with two columns and seven rows. Enter Score and Grade in A1:B1 and 59, 60, 74, 75, 89, 90 in A2:A7. Enter =IF(A2>=90,"A",IF(A2>=75,"B",IF(A2>=60,"C","Review"))) in B2 and fill to B7. Expected labels are Review, C, C, B, B, A.
This example defines only these grade bands. It does not validate whether a score is within an intended 0–100 range or whether a blank should mean missing work. Add a separately justified input-validation rule if your actual task requires one.
Omitted, empty and explicit-result controls
Create a separate table named BranchControls, with two columns and eight rows. Use A for labels and enter each formula in its stated B cell:
| Cell | Formula | Expected result and type |
|---|---|---|
| B2 | =IF(FALSE,7) |
FALSE, boolean |
| B3 | =IF(FALSE,7,) |
0, number |
| B4 | =IF(TRUE,,9) |
0, number |
| B5 | =IF(FALSE,7,"") |
Empty text |
| B6 | =IF(0,"Yes","No") |
No, text |
| B7 | =IF(-2,"Yes","No") |
Yes, text |
| B8 | =IF(2,"Yes","No") |
Yes, text |
The first three follow the distinct omission rules in Apple’s entry. B5 deliberately supplies text that looks empty; it should not be treated as proof that the cell contains no formula. The numeric controls distinguish a zero condition from a nonzero one without relying on text conversion.
Guard a division using the documented condition pattern
Create a Numbers table named UnitRate, with three columns and four rows. Put Amount, Units and Rate or fallback in A1:C1. Enter 100,10, 90,0 and 40,8 in A2:B4.
Enter =IF(B2=0,0,A2/B2) in C2 and fill to C4. Expected results are 10, 0, 5. Apple explicitly documents this conditional pattern for avoiding division by zero.
Zero is a chosen fallback here, not a measured rate for the row with zero units. For a report where unknown must remain visible, use a clearly explained text label or a separate status column instead of quietly interpreting that fallback as a real observation.
Troubleshooting and related functions
All these fixtures use populated numeric scores or amounts and exact text labels. They do not establish every comparison rule for arbitrary text, missing cells, imported errors or extreme values. If a result is surprising, inspect the condition by itself before adding nested IF branches.
Keep results outside the source columns and confirm that relative row references change when filled. When moving a formula into another Numbers table, select its source cells in the formula editor so it receives the correct table qualifier. Follow the argument separator accepted by the document’s locale.
Use AND when every condition must hold, OR when any condition suffices and NOT to reverse a boolean. COUNTIF and COUNTIFS summarize matching records rather than choosing a result for one row.