New Tool Radar

AI for Data & Spreadsheets

How to Find Inconsistent Category Spellings in Excel Before They Split a Pivot

Find inconsistent spellings of the same category in Excel before they split a pivot total.

Schematic with three steps: List the distinct values in the category; Count rows per distinct value; Standardise on one spelling and re-check the.

A pivot table treats “North”, “north” and “North ” as three different categories, so one region’s sales split across three rows and the total looks wrong. The spellings usually come from free typing and from pasted data, and they are invisible in a long list. List the distinct values of the category column and read them before building the pivot.

What you need

  • Excel with the category column to check
  • A copy of the workbook
  • The agreed spelling for each category

Step 1: List the distinct values in the category column

Copy the category column to a spare sheet and use Data, Remove Duplicates to list each distinct value once. Read the list slowly; variants of the same category usually sit near each other.

Step 2: Count rows per distinct value

Add a COUNTIF beside each distinct value to count how many rows use it. A variant with only one or two rows is often a typo, while a variant with many rows may be the spelling everyone actually uses.

Step 3: Standardise on one spelling and re-check the pivot

Replace every variant with the agreed spelling, using Find and Replace or a lookup table, then rebuild the pivot. The category should now appear once, with the full count of rows.

Worked example: synthetic region column, 40 rows

The table below is a synthetic example. It shows the expected result of checking category spellings; no workbook was opened.

Distinct value found Rows Action
North 22 Keep, agreed spelling
north 9 Change to North
North 4 Change to North
Noth 2 Typo, change to North
South 3 Keep, agreed spelling

Expected result (UNTESTED). the region North appears under 4 spellings across 40 rows; standardising them leaves North with 37 rows and South with 3, and the pivot shows each region once. This check was not run live; the table shows the expected result for the synthetic example.

Limits

  • Remove Duplicates treats values as displayed, so a number and the same number as text count as different values.
  • Find and Replace on a whole sheet can change values in other columns; restrict it to the category column.
  • A variant that looks like a typo can be a real separate category; check the source before merging.
  • New entries after the clean-up can reintroduce variants; a drop-down list prevents that.

Sources

See all