Excel Unique Names in a List: A Step-by-Step Guide
In this article
To get a clean list of unique names from a column in Excel, the fastest reliable method is the Remove Duplicates tool on a copied column. Select your names, copy them to a new location, then use Data > Remove Duplicates and confirm the column. For a formula-based approach that updates automatically, use UNIQUE in Excel for Microsoft 365 or Excel 2021 and later: =UNIQUE(A2:A100). The steps below cover both methods, plus the older formula workaround for Excel 2019 and earlier.
What You'll Need
- Excel for Windows, Mac, or the web. The
UNIQUEfunction requires Microsoft 365, Excel 2021, or later; the Remove Duplicates method works in all modern versions. - Your names in a single column, ideally with a header in row 1 and no blank rows in the middle.
- A spare column or worksheet to hold the output so your original data stays intact.
Step-by-Step
Method 1: Remove Duplicates (works in every version)
- Click the header of the column that holds your names to select the whole column, or drag to select just the cells with names.
- Press Ctrl+C (Windows) or Command+C (Mac) to copy.
- Click an empty column to the right of your data, or switch to a new worksheet, and paste with Ctrl+V or Command+V.
- With the pasted range still selected, go to Data > Remove Duplicates. Labels can differ slightly by version and platform, but this command is on the Data tab on both Windows and Mac.
- In the dialog, tick the column that contains your names. If you pasted a header, tick My data has headers so the header is not treated as a name.
- Click OK. Excel reports how many duplicates were removed and how many unique values remain. The pasted column now holds one copy of each name.
- Delete the header row or leave it in place, then sort the result with Data > Sort A to Z if you want alphabetical order.
Method 2: The UNIQUE function (Microsoft 365 and Excel 2021+)
- Click an empty cell where you want the list to start, such as D2.
- Type
=UNIQUE(A2:A100), replacing the range with the cells that actually hold your names. Include the header only if you want it in the output. - Press Enter. Excel spills the unique names down the column automatically. You do not need to drag the formula.
- To sort the result at the same time, wrap it:
=SORT(UNIQUE(A2:A100)). - If you add names to the source range later, extend the range or convert the source to an Excel Table (select the data and press Ctrl+T), then reference the table column so the formula grows with the data.
Method 3: Excel 2019 and earlier without UNIQUE
- Copy the names to a helper column and run Remove Duplicates as in Method 1. This is the practical route for older versions.
- If you need a formula, use
=IF(COUNTIF($B$2:B2,A2)=1,A2,"")in a helper column, fill down, then filter out the blanks. This is slower and more fragile than Remove Duplicates, so use it only when the list must update automatically.
Common Mistakes
- Running Remove Duplicates on the original data. It deletes rows permanently. Always work on a copy first.
- Forgetting the header tick box. If your first row is a header and the box is unticked, Excel treats the header as a name and may keep or remove it unpredictably.
- Hidden spaces. "Anna " and "Anna" look identical but count as different values. Use
TRIMin a helper column before deduplicating. - Case differences. Remove Duplicates ignores case, so "anna" and "Anna" are treated as the same name.
UNIQUEis also case-insensitive by default. If case matters, use=UNIQUE(EXACT(...))style logic or a helper column withEXACT. - Blank rows inside the range. A blank row can stop Remove Duplicates from seeing the rest of the list, so delete empty rows first.
Tips
- Use
=UNIQUE(A2:A100,,TRUE)to return only names that appear exactly once, excluding any name that appears more than once. - Combine with
SORTandFILTERfor a live, alphabetised list that ignores blanks:=SORT(UNIQUE(FILTER(A2:A100,A2:A100<>""))). - Convert your source to an Excel Table so ranges expand automatically and formulas do not need editing.
- Keep the original column untouched and put the unique list on a separate sheet for a clean audit trail.
Troubleshooting
- #NAME? error on UNIQUE. Your Excel version does not support it. Use Remove Duplicates instead, or open the file in Excel for the web with a Microsoft 365 account.
- #SPILL! error. Something is blocking the cells below the formula. Clear the cells or move the formula to an empty area.
- Duplicates remain after Remove Duplicates. Check for trailing spaces, non-breaking spaces, or inconsistent capitalisation. Clean with
TRIMandCLEANfirst. - Formula returns only one name. The range is probably too small or the source has blanks. Widen the range and remove blank rows.
- Remove Duplicates is greyed out. The sheet may be protected or the workbook shared in a mode that blocks the command. Unprotect the sheet via Review > Unprotect Sheet, or work on a local copy.
Frequently Asked Questions
Does Remove Duplicates delete my original data?
It deletes rows from the range you selected. If you run it on the original column, the duplicates are gone permanently unless you undo immediately. Always copy to a new location first.
Can I get a unique list that updates automatically?
Yes, with the UNIQUE function in Microsoft 365 or Excel 2021 and later. It spills a live list that changes when the source data changes. Older versions need a manual Remove Duplicates run.
Is UNIQUE case-sensitive?
No. By default it treats "Anna" and "anna" as the same value. If case matters, add a helper column using EXACT and deduplicate on that.
Why does my unique list still show duplicates?
Almost always hidden spaces or non-printing characters. Run TRIM and CLEAN on the names in a helper column, then deduplicate that column.
Can I count how many times each name appears?
Yes. Use =COUNTIF(A:A,A2) next to each name, or a PivotTable with the name field in Rows and the same field in Values set to Count.
Does this work in Excel for the web?
Yes. Remove Duplicates is available in Excel for the web, and UNIQUE works there with a Microsoft 365 subscription. Menu labels may differ slightly from the desktop app.