Survey and form data mixes "Y", "yes", "TRUE", "1" for the same answer. Map every affirmative variant to a single clean "Yes" (and the rest to "No") so the column is consistent.
The example
y / YES / True / 1 → Yes.
| A | B | |
|---|---|---|
| 1 | Raw | Clean |
| 2 | y | Yes |
| 3 | nope | No |
The formula
The formula:
How it works
How it works:
UPPER(TRIM(A2))normalizes case and spaces so “y” and “ YES ” match.OR(… = {array})tests the value against a list of affirmatives in one expression.- Anything not in the list falls through to "No" — adjust the list to your data.
- A lookup table of raw→clean values scales better when there are many variants.
A mapping table beats a long IF. When inputs sprawl (Y/Yes/yep/affirmative/✓/1/true…), a two-column table of raw→standard values and a VLOOKUP is cleaner and easier to extend than nesting more conditions. Add a default for unmatched values so nothing silently disappears.
Try it: interactive demo
Type any yes/no-ish answer.
Variations
Lookup table
Many variants:
To 1/0
Numeric flag:
Three-way
Yes/No/Unknown:
Pitfalls & errors
Normalize first. UPPER and TRIM so case and spaces don’t cause misses.
List every variant. Missing one sends it to "No" silently — check your data.
Array OR needs Ctrl+Shift+Enter in older Excel; 365 handles it natively.
Practice workbook
Frequently asked questions
How do I standardize Yes/No answers in Excel?
What if there are many variants?
How do I convert to 1/0 instead?
Stop fighting formulas. Learn them in a day.
This recipe is one of hundreds of real-world formulas we teach. Our Excel Formulas & Functions class covers lookups, logic, text, and dynamic arrays hands-on — live in Dallas–Fort Worth, Houston, Austin, Oklahoma City, Denver, or online.
See the Formulas & Functions Class