How to Use UNIQUE Function in Excel + tips
Learn how to use UNIQUE function in Excel step-by-step to extract unique values from a list.
Hello everyone! Today i will show you how to use UNIQUE function in Excel step by step. UNIQUE is available in Excel 365 and Excel 2021+.
What is UNIQUE Function in Excel?
The UNIQUE function help you remove duplicate items and extract a list of unique values automatically from a range. When your original list change or add new data, the unique list update automatically! No need click Remove Duplicates button manually anymore.
📚 Related Tutorial: Want to extract matching data with criteria first? Check out How to Use FILTER Function in Excel!
🛠️ Formula Syntax
=UNIQUE(array, [by_col], [exactly_once])
array: The range or column containing duplicate items (example:A2:A7).[by_col](Optional):FALSEto compare rows (default),TRUEto compare columns.[exactly_once](Optional):FALSEto return all distinct values (default),TRUEto return ONLY items that appear exactly 1 time!
📊 Simple Examples
Example 1: Basic Unique List (Remove Duplicates)
Suppose column A2:A7 contains duplicate fruits:
| Cell A | Value |
|---|---|
| A2 | Apple |
| A3 | Orange |
| A4 | Apple |
| A5 | Banana |
| A6 | Orange |
| A7 | Mango |
Formula:
=UNIQUE(A2:A7)
Result: Excel automatically removes duplicates and returns clean list:
| Unique Result |
|---|
| Apple |
| Orange |
| Banana |
| Mango |
Example 2: Unique List in Alphabetical Order (UNIQUE + SORT)
To get unique values sorted A to Z automatically:
=SORT(UNIQUE(A2:A7))
Result: Apple, Banana, Mango, Orange
Example 3: Unique Values from Table Column (For Dynamic Dropdown)
If your data table is named Sales and product column is Product:
=UNIQUE(Sales[Product])
This is super useful to create a dynamic dropdown list in Excel!
Example 4: Get Items That Appear EXACTLY Once ([exactly_once] = TRUE)
If you want to find items that appear only 1 time (no duplicates at all):
=UNIQUE(A2:A7, , TRUE)
Result:
Banana
Mango
(Because Apple and Orange appear 2 times!)
Example 5: Extract Unique Combination Rows
Suppose A2:B6 contains Product and Category:
| Product | Category |
|---|---|
| Apple | Fruit |
| Orange | Fruit |
| Apple | Fruit |
| Carrot | Vegetable |
| Apple | Fruit |
Formula:
=UNIQUE(A2:B6)
Excel checks entire row and returns each unique row combination.
Example 6: Combine UNIQUE + FILTER (Unique Items by Condition)
To get a unique list of employee names from department "IT":
=UNIQUE(FILTER(A2:A100, B2:B100="IT"))
⚡ Dynamic Array Functions Comparison
| Function | What It Does | Example |
|---|---|---|
UNIQUE | Extract unique distinct items (remove duplicates) | =UNIQUE(A2:A10) |
FILTER | Extract data rows matching condition | =FILTER(A2:C5, B2:B5="IT") |
SORT | Sort data range alphabetically or numerically | =SORT(A2:A10) |
SORTBY | Sort data range using values from another range | =SORTBY(A2:A10, B2:B10, -1) |
XLOOKUP | Lookup single matching item | =XLOOKUP(E1, A2:A5, B2:B5) |
💡 Quick Tips & Easy Memory Rule:
- Memory Rule:
UNIQUE= Keep only 1 of each item and remove duplicates.- Pro Tip for Dynamic Dropdown List: Put
=UNIQUE(A2:A100)in cellH2, then set Data Validation List source to=H2#(with#spill symbol) for automatic updating dropdown list!
📚 Related Resources & Tutorials
Related Tutorials
Opens in new tab ↗How to Use TRUNC Function in Excel + tips
Learn how to use TRUNC function in Excel step-by-step to extract unique values from a list.
How to Use VSTACK Function in Excel + Tips
Learn how to use VSTACK function in Excel step-by-step to combine ranges vertically top-to-bottom with simple examples and tips.
How to Use COUNTIF and COUNTIFS Function in Excel (Video in Khmer)
Learn how to use COUNTIF and COUNTIFS function in Excel step-by-step with simple examples and videos in Khmer.