IF in Zoho Sheet: Flag orders and apply conditional logic
Learn Zoho Sheet IF with a paid-order example, a two-condition rule, checked results and troubleshooting.
Verification status: See the evidence and test scope described in this guide. How formula examples are checked
Quick answer: =IF(C2="Paid";"Closed";"Open") returns Closed for a paid order and Open otherwise. IF chooses a value for one test; it does not filter the sheet or change the underlying status.
Availability and version history
- Introduced: The original introduction version and date are not established by the checked sources.
- Availability: Currently documented in Zoho Sheet’s rolling web-service help; no numbered release or retirement endpoint is established.
- Scope: English-language web-service documentation. Mobile and offline-client parity is outside the verified scope.
- Checked: October 14, 2026, against the official IF reference. Documentation and independent logical checks; no native Zoho Sheet test.
Exact syntax and branch meanings
=IF(test; value1; value2)
Zoho names the condition test, the true result value1 and the false result value2. The published signature displays all three positions without optional brackets. The short entry does not define an omitted or explicitly empty branch default, so every worked formula supplies both results.
Use straight double quotes for literal text such as “Closed”. A cell reference or a numeric result is a different argument type from a quoted label. The examples follow Zoho’s semicolon-separated English syntax rather than assuming another application’s separator or omission rules.
Complete eight-order practice data
Create a blank sheet named Orders. Enter these headers in A1:F1 and all eight records in A2:F9. Keep Amount and Units numeric; the other columns contain text.
| Row | A: Order ID | B: Region | C: Status | D: Amount | E: Agent | F: Units |
|---|---|---|---|---|---|---|
| 2 | O-101 | East | Paid | 120 | Ana | 12 |
| 3 | O-102 | West | Pending | 75 | Bo | 5 |
| 4 | O-103 | East | Paid | 210 | Ana | 7 |
| 5 | O-104 | North | Paid | 90 | Cy | 0 |
| 6 | O-105 | West | Paid | 150 | Bo | 3 |
| 7 | O-106 | East | Pending | 60 | Dana | 8 |
| 8 | O-107 | West | Paid | 125 | Ana | 12 |
| 9 | O-108 | North | Pending | 80 | Cy | 4 |
Alternatively, download the same eight-order CSV and import it into a new blank sheet at A1, retaining its header row and comma-delimited columns. The download contains only the six input columns, not formulas or native test results. The result columns below start at H so they cannot overwrite A:F.
Labels, amount checks and regional priority
Use H1:K1 for Payment label, Amount label, Regional priority and Anchored amount label. Enter the following formulas in H2:J2, then fill that range through row 9:
- H2:
=IF(C2="Paid";"Closed";"Open") - I2:
=IF(D2>=100;"Review";"Standard") - J2:
=IF(AND(B2="East";C2="Paid");"Priority";"Standard")
| Row | Expected H | Expected I | Expected J |
|---|---|---|---|
| 2 | Closed | Review | Priority |
| 3 | Open | Standard | Standard |
| 4 | Closed | Review | Priority |
| 5 | Closed | Standard | Standard |
| 6 | Closed | Review | Standard |
| 7 | Open | Standard | Standard |
| 8 | Closed | Review | Standard |
| 9 | Open | Standard | Standard |
The original H2 example is Closed, the original amount test for row 3 is Standard, and the East/Paid priority rule passes row 2. Separate columns let you inspect all three decisions without overwriting a previous result.
Advanced: one fixed setting for every filled row
Put Minimum review amount in M1 and 100 in N1. Enter =IF(D2>=$N$1;"Review";"Standard") in K2 and fill through K9. The results should match I2:I9 exactly because both rules currently use the same threshold.
Change only N1 to 150. K4 and K6 should read Review for amounts 210 and 150. All other K cells should read Standard. Restore N1 to 100 after checking. The fixed $N$1 address prevents the setting from moving to a different cell when the formula is filled down.
For exact boundaries, create another sheet named AmountBoundary. Put Amount and Result in A1:B1. Enter 99, 100, 101 in A2:A4. Put =IF(A2>=100;"Review";"Standard") in B2 and fill to B4; expect Standard, Review, Review.
These tests separate a threshold error from an anchoring error. A value exactly equal to 100 belongs in the first branch under a greater-than-or-equal rule.
Multiple states require an explicit ordering
Keep the order data unchanged. On a new sheet named StatusLabels, put Status and Label in A1:B1. Enter Paid, Pending, Cancelled in A2:A4. Enter the following formula in B2 and fill to B4:
=IF(A2="Paid";"Closed";IF(A2="Pending";"Open";"Check status"))
Expected labels are Closed, Open, Check status. The simple original two-way rule sends every non-Paid state to Open; the nested rule gives unrecognized states a separate label. Choose deliberately which behavior your worksheet needs.
An unknown or missing status should not silently become an assertion that an order is Pending. IF reports the branches you wrote, not the business meaning you may have intended.
Boolean values and text labels
On a separate sheet named ResultTypes, put =IF(TRUE;"Yes";"No") in B2 and =IF(FALSE;"Yes";"No") in B3; expect Yes and No as text. Put =IF(TRUE;1;0) in B4 and =IF(FALSE;1;0) in B5; expect the numbers 1 and 0.
These explicit branches make the output type intentional. A label containing the word True is still text when returned as a quoted string. It should not be confused with an unquoted boolean constant used in a logical test.
Errors, imported data and related functions
Zoho lists invalid names and missing text quotes among #NAME! causes, invalid references for #REF!, and invalid argument types for #VALUE!. Its short IF page does not establish all evaluation-order, empty-branch or mixed-type comparison rules. Keep both branches explicit and investigate unexpected source values rather than assuming another spreadsheet’s defaults.
Verify the imported amount and unit columns are numeric. If every row shows the same label, inspect the changed row references and the fixed setting separately. Avoid using an automatic fallback to hide missing order information.
AND combines required conditions; OR accepts any successful condition. IFS expresses multiple ordered tests, while IFERROR handles an error fallback under its own rules. COUNTIF and COUNTIFS count records rather than returning a label for each row.