Data Cleaning· 8 min read

How to Extract Unique Values in Excel

Unique values are the clean list behind many reports: customer names, product codes, regions, tags, and categories. The key is extracting them without destroying the original rows.

Unique Values vs Remove Duplicates

Extracting unique values creates a new list. Removing duplicates changes the original table. If your workbook is important, extract first and remove later only when you are sure. This protects row-level data and makes auditing easier.

Common Use Cases

Unique-value extraction is useful whenever a spreadsheet contains repeated records but you need a clean reference list. Common examples include customer names for a dropdown, product SKUs for an import template, employee departments for a report filter, and region names for a dashboard slicer.

It is also a good quality-control step. If a region list contains North, Noth, and North , the unique list exposes the typo immediately.

Method 1: UNIQUE Function

In Microsoft 365 or recent Excel versions, the simplest formula is:

=UNIQUE(A2:A500)

This spills a clean list of distinct values. You can combine it with SORT:

=SORT(UNIQUE(A2:A500))

Method 2: Advanced Filter

  1. Select the column or range.
  2. Go to Data > Advanced.
  3. Choose Copy to another location.
  4. Select the output cell.
  5. Check Unique records only.

This method works well in older Excel versions where the UNIQUE function is not available.

Method 3: PivotTable

A PivotTable can also produce a unique list. Place the field you want in the Rows area and Excel groups repeated values automatically. This is useful when you want both the list and a count of how often each value appears.

For example, put Customer in Rows and Customer again in Values set to Count. You now have every customer plus the number of records for each one.

Method 4: Free Unique Values Tool

The Extract Unique Values tool lets you upload a workbook, choose a sheet and column, and download a clean list of distinct values. It is useful when you want the result quickly and do not want to risk changing the original workbook.

Because the tool works in the browser, the spreadsheet is not uploaded to a server. That matters when lists contain customer names, internal codes, or pricing data.

Common Problems

  • Extra spaces: Acme and Acme are different values. Clean with TRIM.
  • Case differences: Decide whether north and North should be treated as one value.
  • Numbers stored as text: 1001 as a number and "1001" as text may behave differently in formulas.

How to Clean the List Before Using It

After extracting unique values, sort the list alphabetically and scan the top and bottom. Blank entries, punctuation, and unusual capitalisation often become easier to see after sorting. If the list will feed a dropdown or import system, keep a separate approved list and compare future exports against it.

If values include leading zeros, such as account codes or ZIP codes, keep them as text. Converting them to numbers can permanently remove the leading zeros.

Extract unique values without changing the workbook

Choose a column, preview the distinct list, and download the result privately.

Open Unique Values Tool →