Translate codes or categories into labels cleanly with SWITCH.
Copy this formula
=SWITCH(A2, "N", "North", "S", "South", "Other")SWITCH compares one value against a list of cases and returns the matching result; the final lone argument is the default. It's clearer than a stack of nested IFs when mapping fixed codes.
=SWITCH(A2, 1, "Low", 2, "Mid", 3, "High", "?")→MidMaps 2 to "Mid".
Nested IF (older Excel)
=IF(A2="N","North",IF(A2="S","South","Other"))Use when SWITCH isn't available.
Use SWITCH for exact matches of one value; use IFS for range conditions like >=90.
Need a formula for your own data?
Describe what you want in plain language and let ExcelGPT write, explain, and verify the formula — free to start, no plugin.