LogicalExcel 2019

SWITCH

Compare an expression with several candidate values and choose its matching result.

Syntax

=SWITCH(expression, value1, result1, [value2, result2], …, [default])

Worked example

Translate a short status code into a readable label.

=SWITCH("P","O","Open","P","Paid","Other")

Result Paid

Microsoft documentation

Check the arguments, supported editions and behavior of this function in Microsoft’s reference.

Microsoft reference

Search ExcelTutor