FP

FormulaPilot

Spreadsheet formula tools

Open generator
Excel how-to guide

How to switch exact match in Excel

Translate a status code into a label, map a region abbreviation to a full name, or convert a number to a day or month name.

intermediateConditional LogicSWITCH reference

Step-by-step instructions

How to switch exact match3 steps

1

Enter the expression to evaluate — usually a cell reference — as the first argument.

2

List value-result pairs — the value to match followed by what to return if it matches.

3

Add a final default value after all pairs to handle unmatched inputs instead of returning

Example data

Worked example

CodeRegion Name
NNorth
SSouth
EEast
XUnknown

Common mistakes

Errors to watch out for

SWITCH returns

No value matched and no default was provided. Add a final argument after the last value-result pair to serve as the default — SWITCH(A2,"A","Alpha","B","Beta","Unknown").

SWITCH is not available

SWITCH requires Excel 2019 or Excel 365. Use nested IFs or an INDEX/MATCH lookup table for older versions.

FAQ

Frequently asked questions

When should I use SWITCH instead of IFS?

Use SWITCH when you are comparing one expression against multiple exact values. Use IFS when each condition is a different comparison (greater than, less than, contains, etc.).

Need a custom variation?

Describe your exact spreadsheet problem — get the formula in seconds.

Open AI Formula Generator — Free

Related how-to guides

Continue learning.