Skip to content
← All Blogs
Survey data

How to clean inconsistent category names in survey data

Quick answer

Standardize inconsistent survey categories in five steps: list distinct values with counts, trim and fix casing, map the real variants to an approved list, send ambiguous ones to whoever owns the survey, and check every response resolves to an approved category. Keep the mapping table so next quarter is cleaned the same way.

You build the "Responses by department" bar chart and it has twenty-nine bars. Your company has eight departments. Somewhere in the survey, the "Department" question was a free-text box — or a dropdown that let people type — and now Marketing exists as Marketing, marketing, Mktg, Marketing Team, Mrkting, and marketing with a trailing space. Every one of those is its own bar, its own row in the cross-tab, its own slice of a pie that should have eight slices. The chart isn't wrong. The categories underneath it were never standardized.

Why survey categories fracture and totals stay hidden

Open-text and permissive dropdowns capture what people type, not what they mean, so a single real category splinters into casing differences, abbreviations, typos, and stray spaces. The damage is worse than a messy chart: because each variant holds a slice of the responses, no single "Marketing" number is complete, and any percentage you calculate — "18% of respondents are in Marketing" — is wrong and unfalsifiable until you group the variants. A cross-tab with thirty rows where there should be eight is the tell.

The example: one department, six spellings

Here's the distinct list from a typical Department column, with counts:

Raw value        Count
Marketing        41
marketing        12
Mktg              9
Marketing Team    6
Mrkting           2
marketing         3   <- trailing space

Six rows, one department, 73 real responses scattered so that the biggest "Marketing" bar shows only 41. Start by collapsing the free wins — casing and whitespace — with a normalize pass, =PROPER(TRIM(A2)), which folds marketing, MARKETING, and the trailing-space version into one Marketing. That alone drops you from six variants to three. The rest — Mktg, Mrkting, Marketing Team — are judgment calls a formula can't make, so they go into a mapping table where you decide, once, that all three mean Marketing. Resolve every response through it with =XLOOKUP(TRIM(A2), map[raw], map[clean], "REVIEW"), and anything you haven't classified returns REVIEW instead of quietly becoming a twenty-ninth bar.

Standardize survey categories in five steps

  1. List distinct values with counts. A quick pivot on the category column shows you the real size of the fracture and which variants are worth merging.
  2. Normalize the easy wins — trim and fix casing so pure formatting differences disappear before you make any judgment calls.
  3. Build a mapping table for the genuine variants (Mktg → Marketing), and keep the official list of departments as the only allowed right-hand side.
  4. Flag the ambiguous ones. Is "Sales & Marketing" one department or two? Don't guess. Send the short list of unclear values to whoever owns the survey or the org chart and let them decide.
  5. Lock the clean list. Once mapped, validate that every response resolves to one of the eight approved departments and nothing returns REVIEW.

The output is a chart with eight bars that sum to your response total, and a mapping table that documents exactly how you got there.

Merges are decisions, so make them visible

The technical part is easy. The risk is silently merging categories that shouldn't be merged. If you fold "Marketing" and "Growth" together because they look related, you may have erased a distinction the survey was designed to measure. Standardizing survey categories is mostly about surfacing every ambiguous variant, getting a decision from the person who knows the organization, and recording it so the same survey next quarter is cleaned the same way.

Write those decisions down next to the results. "Merged Mktg, Mrkting and Marketing Team into Marketing; kept Growth separate, as HR asked" is one line that turns an invisible judgment call into something anyone reading the report can check. It's the difference between a chart people half-trust and a chart your manager can present without wondering where the numbers came from. Next quarter, the same note tells whoever runs the survey exactly which merges to repeat.

Dotwave groups values written several ways, shows you each proposed merge before it applies, and writes every merge into a plain-English audit trail. Save the steps as a recipe and next quarter's survey gets the same treatment.

Create your free account
More articles

Keep reading

All articles →

Clean your next file in Dotwave

Fixes you approve, a plain-English record of every change, and a dashboard you send by link, PDF or scheduled email.

Create your free account

Free plan, no card required