How to Get Unique Values from a Column in Excel
Learn how to excel get unique values from column using formulas, filters, and Power Query. This practical guide covers dynamic and static approaches with examples.

In this guide you will learn how to get unique values from a column in Excel using the UNIQUE function, Remove Duplicates, Advanced Filter, and Power Query. You'll decide based on your Excel version and whether you need dynamic results or a static list. This quick overview helps you pick the right approach quickly for data cleaning and analysis.
Why unique values matter in Excel
In data work, duplicates can distort insights, create bloated lists, and complicate lookups. Getting a clean set of unique values helps you build accurate validation lists, concise pivot tables, and reliable charts. According to XLS Library, data-cleaning steps like extracting unique values are foundational skills for both aspiring and professional Excel users. The ability to quickly isolate distinct entries also makes downstream tasks such as matching, merging, and reporting more predictable. If you need to excel get unique values from column, you should understand the trade-offs between dynamic and static methods and how each fits into typical workflows. For example, dynamic methods automatically update when the source data changes, which is ideal for dashboards and ongoing data feeds; static methods produce a fixed result you can paste into a summary report. The key is to align the method with your goal: do you want a live, refreshing list, or a one-time snapshot? In this section, we’ll outline the main approaches and set the stage for choosing the right tool for your dataset.
Quick methods overview
There are four primary ways to get unique values from a column in Excel: the dynamic UNIQUE function (available in Excel 365 and Excel 2021 or newer), the traditional Remove Duplicates tool, the Advanced Filter option, and Power Query for larger datasets or repeatable workflows. The choice depends on whether you need a live, refreshable list or a one-time, static extract. If your data updates frequently, dynamic methods reduce manual rework. For static reports, a one-time cleanup is often faster. Across these options, you’ll learn how to handle common caveats such as blank cells, mixed data types, and multiple columns. The XLS Library approach emphasizes starting with a simple method and escalating to more robust tools when your data grows or when you need repeatability.
Method 1: Using the UNIQUE function
The UNIQUE function creates a dynamic array that spills results into adjacent cells. If your data is in a named table or a defined range, you can use a formula like =UNIQUE(Table1[Column]) or =UNIQUE(A2:A100). In Excel 365 or Excel 2021 and later, this returns a live list that updates as the source data changes. If you’re new to dynamic arrays, remember that the output spills automatically; you don’t press Ctrl+Shift+Enter. You can also add a second argument to compare by columns (by_col) and a third argument to return only values that appear exactly once (exactly_once). For example, =UNIQUE(A2:A100, FALSE, FALSE) returns distinct values across rows. If you need to combine uniqueness with other criteria, you can nest UNIQUE inside FILTER to exclude blanks or apply conditions. This method is ideal for dashboards and iterative data exploration. XLS Library Analysis, 2026 notes that dynamic arrays simplify extracting uniques and reduce manual steps in routine data cleaning.
Method 2: Remove Duplicates tool
Remove Duplicates is a classic, static approach that works well when you want a clean list without changing the original data structure. Start by selecting the target column or a broader range that includes headers, then go to the Data tab and choose Remove Duplicates. In the dialog, uncheck any columns you don’t want to consider, leaving only the column that contains duplicates. Click OK to produce a new, deduplicated list in place or in a specified location if you first copy the data. This method is quick for one-off cleanups and does not require Excel 365’s dynamic arrays. It’s especially handy when you need a simple list for data validation or reporting, but be aware that it overwrites the data you selected, so a backup copy is essential before proceeding.
Method 3: Advanced Filter
Advanced Filter lets you copy a list of unique values to another location without altering the original data. Select your data range including the header, then go to Data > Advanced. Choose Copy to another location, specify the copy-to range, and check Unique records only. This produces a static list of unique values in a new location, which is useful for creating lookup tables or drop-down lists. If you need to filter by multiple criteria, you can set up a criteria range and apply complex conditions. This approach is powerful for precise extractions when you’re preparing data for an import or a presentation.
Method 4: Power Query
Power Query offers a robust, repeatable workflow for extracting unique values, especially on large datasets. Load your data into Power Query (Data > From Table/Range), select the column, and use Remove Rows > Remove Duplicates. Close & Load to bring the result back into Excel as a new table. Power Query can refresh the results automatically when the source data changes, which is ideal for data pipelines and ongoing data preparation. It also supports more complex transformations, such as merging multiple columns into a single key for multi-column uniqueness. This method may require a learning curve but pays off in scalability and reproducibility. For users who routinely clean data, Power Query is a long-term investment.
Handling blanks, case sensitivity, and multi-column rules
When extracting unique values, blanks can muddy the output. In many cases you’ll want to exclude blanks, or treat them as a distinct value depending on your use case. With the UNIQUE function, you can combine with FILTER to remove blanks, e.g., =UNIQUE(FILTER(A2:A100, A2:A100<>
)), or you can preprocess the data to normalize case using UPPER or LOWER. If you’re dealing with multiple columns and want to identify unique rows, you can create a helper column that concatenates the columns (e.g., =A2&"|"&B2) and then apply UNIQUE to that derived column. Power Query can also combine columns using a custom column before removing duplicates, giving you a reliable approach for multi-column uniqueness. The key is to decide whether you need case-insensitive matching, how you want to handle blanks, and whether the result should reflect a single-key snapshot or a live, updated list.
Practical examples and templates
To solidify the concepts, try a small dataset in Excel and implement each method side by side. Start with a simple column of product codes, then test UNIQUE for a dynamic result, Remove Duplicates for a one-shot cleanup, Advanced Filter for a static list, and Power Query for a refreshable workflow. The real value comes from understanding when to switch methods—for quick checks, Remove Duplicates is fast; for dashboards with ongoing data feeds, UNIQUE or Power Query offers resilience. As you practice, create templates: a dynamic extraction sheet with a helper table, a static deduplicated list for reporting, and a Power Query template you can reuse across projects. The XLS Library approach emphasizes building reusable solutions that scale with your data needs.
Tools & Materials
- Backup copy of original data(Always duplicate before applying destructive operations like Remove Duplicates.)
- Excel 365/2021 or newer(Needed for the UNIQUE function; supports dynamic arrays.)
- Data range or table with the target column(Ensure header row intact.)
- Power Query (optional)(Useful for large datasets and repeatable workflows.)
- Advanced Filter capability in Excel(Alternative for static extraction.)
Steps
Estimated time: 30-45 minutes
- 1
Prepare data and create a backup
Identify the target column and create a backup copy of the data. This ensures you can revert to the original if needed. If your dataset is in a table, note the table name for easier formulation.
Tip: Always start with a backup to prevent irreversible changes. - 2
Check your Excel version
Confirm that you are using Excel 365/2021 or newer to use the UNIQUE function. If not, plan to use Remove Duplicates, Advanced Filter, or Power Query as alternatives.
Tip: If you’re unsure, try typing =UNIQUE on a blank cell to see if spill occurs. - 3
Apply the UNIQUE function
In a new column, enter a dynamic array formula such as =UNIQUE(Table1[Column]) or =UNIQUE(A2:A100). The results spill automatically into adjacent cells as a live list. You can refine by adding by_col or exactly_once as needed.
Tip: Use named tables for robust ranges (e.g., Table1[Column]). - 4
Use Remove Duplicates for static extraction
Select the target column, go to Data > Remove Duplicates, and ensure only the relevant column is checked. Confirm to replace the selected area with a deduplicated list. This is a quick one-off cleanup.
Tip: Always perform on a copied range to preserve the original data. - 5
Try Advanced Filter for copied results
With your data selected, choose Data > Advanced, select Copy to another location, specify the destination, and check Unique records only. This creates a static list in a new location without altering the source.
Tip: Keep a labeled destination area to avoid overwriting other data. - 6
Leverage Power Query for large datasets
Import the data into Power Query (Data > From Table/Range), remove duplicates, and Close & Load to a new table. This method scales well and supports refreshing when the source changes.
Tip: Create a reusable Power Query template for future projects. - 7
Handle blanks and case sensitivity
Decide how to treat blanks and case. You can filter blanks or normalize case using functions like UPPER; for multi-column uniqueness, create a key by concatenating columns.
Tip: Consistency in data formatting reduces duplication headaches. - 8
Validate output and save
Compare the number of unique values to expectations, verify sample entries, and save the results (as a separate sheet or table). Document the method used for future audits.
Tip: Add a note in your workbook about the chosen method to aid collaborators.
People Also Ask
What is the best method to get unique values in Excel?
The best method depends on your needs: dynamic results use UNIQUE; static extraction uses Remove Duplicates or Advanced Filter. For ongoing data, prefer dynamic methods; for a one-time cleanup, static methods are often faster.
The best method depends on whether you need a dynamic or static result, with UNIQUE for dynamic lists and Remove Duplicates for one-time cleanup.
Does the UNIQUE function work in all Excel versions?
UNIQUE is available in Excel 365 and Excel 2021 and later. Older versions don’t include dynamic arrays, so use Remove Duplicates, Advanced Filter, or Power Query instead.
UNIQUE works in Excel 365 and 2021, not in older versions.
How can I get unique values from multiple columns?
You can create a composite key by concatenating the columns and apply UNIQUE to the result, or use Power Query to group by multiple columns. This yields distinct row combinations.
Combine the columns into a key, then apply UNIQUE, or use Power Query for multi-column uniqueness.
How do I keep the original data intact while extracting uniques?
Work on a copy of the data or use dynamic arrays that spill into a new area. Avoid in-place removal unless you can easily revert.
Work on a copy to keep the original data intact.
What about blanks in the data when getting unique values?
By default, blanks are treated as a value. Use FILTER to exclude blanks or adjust with a helper rule to ignore empties as needed.
If you want to ignore blanks, combine UNIQUE with FILTER to remove empty cells.
Can I refresh unique results automatically when data changes?
Yes, with UNIQUE the results update automatically if the source data changes. For Remove Duplicates or Advanced Filter, you must re-run the steps.
Dynamic array results update automatically when the source changes.
Watch Video
The Essentials
- Choose the method based on version and need for dynamism.
- UNIQUE provides dynamic results; Remove Duplicates is static.
- Power Query handles large datasets efficiently.
- Always verify results against the original data.
