Replace Nested IFs with a Clean SWITCH
Your pipeline export stores deal stages as single letters — L, Q, W — and translating them with nested IFs leaves you three parentheses deep in =IF(B2="L","Lead",IF(B2="Q",… that nobody wants to edit.
Excel & Google Sheets
This formula works in both Excel and Google Sheets.
How it works
SWITCH takes the value once, then reads match/result pairs left to right: if B2 is L it returns Lead, Q returns Qualified, W returns Won. The lone final argument is the default — anything unmatched shows Unknown instead of erroring. Leave the default off and an unmatched value returns #N/A, so include one whenever the data can contain surprises. SWITCH only does exact matches; for range tests like B2>=90, use IFS, which takes condition/result pairs instead. SWITCH works in Excel 2019 and newer, and in any Google Sheets.
When to use it
Use it to translate codes into labels — deal stages, order-status letters, shipping-method codes, region abbreviations — anywhere one value maps to one label by exact match.
Common mistakes
Did this formula help?
Engine-verified against the sample data aboveLast reviewed 2026-07-08