SWITCH Function in Excel: Syntax, Examples & Practice

Learn the Excel SWITCH function: Matches an expression against a list of values. Try focused practice and download a free workbook.

Syntax

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

Check the function documentation for your Excel version and platform. The browser simulator implements selected behavior and does not reproduce every Excel feature.

Worked example

RowA: EmployeeB: ValueC: Status
2Amit45000Active
3Priya62000Active
4Ravi38000Closed
5Neha55000Active
=SWITCH(C2,"Active","Open","Closed","Closed","Other")

Expected result: Open

This compact MIS-style table is prepared for SWITCH. Read the headers before building the formula.

Professional use

Map codes to readable labels.

Practice SWITCH · Download practice .xlsx

Apply your skills

Explore MIS and finance projects

Questions and answers

How can I practise SWITCH?

Use the focused ten-question SWITCH lab, then download its workbook for ten additional function-specific tasks and an answer key. Core learning works without an account.

Which Excel version supports SWITCH?

Check the function documentation for your Excel version and platform. The browser simulator implements selected behavior and does not reproduce every Excel feature.

Does the browser simulator replace Microsoft Excel?

No. It supports a selected set of formula behavior for practice. Native workbook recalculation, full function compatibility, PivotTables and external data features must be checked in your own Excel installation.

Interactive practice runs in your browser.