Syntax

SWITCH(expression, case1, value1, [default or case2, value2], …)

Arguments

The printed syntax lists 6 argument(s), in order:

  • expression
  • case1
  • value1
  • efault or case optional
  • alue optional
  • …

“optional” marks an argument Google prints in square brackets; “repeatable” marks one Google prints with “…”.

Description from Google Docs Editors Help

“Tests an expression against a list of cases and returns the corresponding value of the first matching case, with an optional default value if nothing else is met.”

Google’s help article for SWITCH →

Source: Google Docs Editors Help, “Google Sheets function list” (support.google.com/docs/table/25273), record record 163 of 516, data fetched 28 September 2026. Data month: September 2026.