Conditional Logicintermediate
Match a value against exact cases with SWITCH
=SWITCH(A2,"N","North","S","South","E","East","W","West","Unknown")
Worked examples (1)
These formulas work in Google Sheets with identical syntax.
Also in Excel
See the full SWITCH reference for Excel — including all worked examples, common errors, and FAQ.
SWITCH Excel reference →