Contact

IFS Function in Google Sheets: Syntax, Examples & Compatibility

Logical Beginner Google Sheets

Learn how to return the first matching outcome from several ordered conditions in Google Sheets. Includes syntax, two verified-by-reasoning results, troubleshooting and portability notes.

Verification status: See the evidence and test scope described in this guide. How formula examples are checked

Quick answer: return the first matching outcome from several ordered conditions in Google Sheets. The reproducible examples below use explicit values so the formula’s meaning is testable without a large workbook.

Evidence: The function name and syntax are documented in the linked vendor function reference. Expected outputs were independently reasoned or checked outside the application. These are not native Google Sheets test results. A guide being published here does not certify every software release or file-import scenario.

Availability and version history

  • Introduced: Introduction version not established by the official history reviewed.
  • Availability: Documented in the rolling Google Sheets service; examples use the web spreadsheet workflow.
  • Checked: October 14, 2026; official IFS reference. Documentation check, not a new native test; existing example-verification notes retain their scope.

Syntax and arguments

=IFS(logical_test1, value_if_true1, [logical_test2, value_if_true2], ...)

List pairs of condition and return value, ordered by priority. A final TRUE, fallback pair is a common default.

Best use case: Return the first matching outcome from several ordered conditions.

Set up the example sheet

Suppose a quality-control report assigns grades A (90+), B (60–89) and C (below 60). Use literal scores first, then replace 72 with a cell reference.

Enter the formula in an unused cell. For a formula returning several values, leave an unobstructed area where those values can expand. These formulas use comma argument separators in a typical English-language locale; commas or semicolons inside quoted text are data, not argument separators. Adapt the separator if your regional settings require it.

Worked example 1: IFS with known input

=IFS(72>=90,"A",72>=60,"B",TRUE,"C")

Expected output: B.

The first condition fails and the second is true, so the selected result is B.

Worked example 2: a second IFS case

=IFS(45>=90,"A",45>=60,"B",TRUE,"C")

Expected output: C.

Both thresholds fail, so the unconditional final branch returns C.

Compare both results before replacing literal values or short sample ranges with your own workbook data. For a spilling formula, compare every output cell, not only the top-left result.

Test threshold boundaries and an explicit fallback

Enter numeric values 59.9, 60, 89.9, 90 in A2:A5. In B2 enter and fill down:

=IFS(A2>=90,"A",A2>=60,"B",TRUE,"C")

Expected results: C, B, B, A. Both thresholds are inclusive. This is the fictional classification rule in this guide, not a universal standard for scoring or evaluation.

Reversing the first two tests would classify 90 as B because its 60-or-more test would match first. The first-match rule describes the selected output; it is not a guarantee that every unselected expression in a complex formula is never evaluated.

Google explicitly documents #N/A if every condition is FALSE. For =IFS(45>=90,"A",45>=60,"B"), no branch matches. The final TRUE,"C" in the main formula is an ordinary condition/result pair used as an unconditional fallback, not a separate optional default argument.

To flag values outside this example’s allowed range first, use =IFS(A2<0,"Review",A2>100,"Review",A2>=90,"A",A2>=60,"B",TRUE,"C"). For −1, 101, 90, expected results are Review, Review, A. This guard assumes numeric input and does not silently establish a policy for blanks or text.

Keep a small boundary table beside the rule while revising thresholds. A correct formula can still encode the wrong priority or domain if those decisions are not written down.

Practical advice and troubleshooting

When this formula helps: Place stricter or more specific tests first. IFS returns the first true branch, so ordering the 60+ test before the 90+ test would misclassify scores.

Important edge case: If none of the conditions is true and there is no fallback, Google documents #N/A. Supply TRUE as the last condition when a default is needed.

If the result differs, first verify the text-versus-number types of the input cells, the argument separators for your locale, and the range size. For dynamic arrays, inspect occupied cells in the output area. For an imported workbook, inspect whether the function name or syntax changed during conversion before attributing an error to the source values.

Compatibility and version considerations

IFS behaves similarly for the shown thresholds, but old Excel versions may not implement it and localized formulas may change separators.

Google Sheets is a rolling service. Check the current web-file locale and any imported-formula changes; a desktop release number does not identify the Sheets calculation environment.

Function availability and parameter behavior must be judged for the specific application and release; a function documented in one spreadsheet does not automatically work in another.

Editorial verification: Direct function documentation reviewed October 14, 2026. The two example outputs are independently reasoned; no native application run, screenshot, or version-specific output is claimed. Review the editorial testing standards if you require stronger proof before importing a workbook.