UNIQUE function
Generate a distinct location list for filtering.
Lookup and reference
Where can you use it?
Reporting and operations teams. Use functions in this group to retrieve a field from an item, employee or order list, select the right record, or move values into another report.
Scenario in the workbook
Deduplicate regions. The result preserves the order of first appearance.
A worked example from the workbook
| Row | A | B |
|---|---|---|
| 6 | Source value | Output position |
| 7 | East | 1 |
| 8 | North | 2 |
| 9 | East | 1 |
Record 1
=INDEX(UNIQUE($A$7:$A$9),B7,1)Expected resultEast
See the inputs and instructions for all 3 examplesCopyable formulas
English Excel · en-US
=UNIQUE(A2:A5)Turkish Excel · tr-TR
=BENZERSİZ(A2:A5)Example and expected result
Enter L01, L02, L01 and L02 in A2:A5. The output spills down. Supported in Microsoft 365, Excel 2021 and Excel 2024.
Expected result L01 and L02.
Worked examples
Deduplicate regions. The result preserves the order of first appearance.
Open the English sheet. Inputs begin at A6. F7:F9 show the live results and G7:G9 show the original results for comparison.
| Row | A | B |
|---|---|---|
| 6 | Source value | Output position |
| 7 | East | 1 |
| 8 | North | 2 |
| 9 | East | 1 |
| Case | Formula | Expected result |
|---|---|---|
| Record 1 | =INDEX(UNIQUE($A$7:$A$9),B7,1) |
East |
| Record 2 | =INDEX(UNIQUE($A$7:$A$9),B8,1) |
North |
| Record 3 | =INDEX(UNIQUE($A$7:$A$9),B9,1) |
East |