How to Create a Drop-Down List with Unique Values in Excel – 4 Methods

The sample dataset showcases Product name, Category, and Country to which the product is exported.

excel drop down list unique values


Method 1 – Insert a Pivot Table to Create a Drop-Down List with Unique Values in Excel

Create a drop-down list with unique values in the Category column:

Step 1:

  • Select the data range including column headers.
  • Click PivotTable in Insert.

 Insert a Pivot Table to Create a Drop Down List with Unique Values in Excel

  • In the dialog box, data is automatically selected. The default location is a New Worksheet.
  • Click OK.

 Insert a Pivot Table

  • In PivotTable Fields, drag Category to Rows.

 Insert a Pivot Table

  • Excel will create a pivot table:

 Insert a Pivot Table to Create a Drop Down List with Unique Values in Excel

Step 2:

  • Select a cell to create a drop-down list. Here, C3.
  • Click Data Validation in the Data tab.
  • Select Data Validation.

 Insert a Pivot Table to Create a Drop Down List with Unique Values in Excel

  • Select List in Allow.

 Insert a Pivot Table to Create a Drop Down List with Unique Values in Excel

  • Enter $A$4:$A$6 in Source.
  • Click OK.

 Insert a Pivot Table to Create a Drop Down List with Unique Values in Excel

You will see a drop-down list in C3 with the unique product categories.

 Insert a Pivot Table to Create a Drop Down List with Unique Values in Excel

Read More: How to Add Item to Drop-Down List in Excel


Method 2 – Create a Drop-Down List with Unique Values by Removing Duplicates in Excel

Create a drop-down list with unique values in the Country column:

Step 1:

  • Press CTRL+C to copy the cells in the Country column including the column header.
  • Paste them into column F pressing CTRL+V.

Create a Drop Down List with Unique Values by Removing Duplicates in Excel

  • Select all the cells in Column F.
  • Click Remove Duplicates in Data.

Create a Drop Down List with Unique Values by Removing Duplicates in Excel

  • In Remove Duplicates, the Country is selected in Columns.
  • Click OK.

Removing Duplicates in Excel

  • A  box is displayed: 6 duplicate values were found and removed.
  • Click OK.
    Create a Drop Down List with Unique Values by Removing Duplicates in Excel

There are 4 unique values.

Removing Duplicates in Excel

Step 2:

  • Select a cell to create the drop-down list. Here, F10.
  • Click Data Validation in Data.
  • Select Data Validation.

Removing Duplicates in Excel

  • Select List in Allow.

Create a Drop Down List with Unique Values by Removing Duplicates in Excel

  • Enter $F$5:$F$8 in Source.
  • Click OK.

Removing Duplicates in Excel

The drop-down list is displayed in F10 with the unique countries.

Create a Drop Down List with Unique Values by Removing Duplicates in Excel

Read More: How to Remove Duplicates from Drop Down List in Excel


Method 3 – Use the UNIQUE Function to Create a Drop Down List with Unique Values in Excel

Steps: 

  • Enter the following formula in F5:
=SORT(FILTER(UNIQUE(D5:D14),UNIQUE(D5:D14)<>0))

Create a Drop Down List with Unique Values by Removing Duplicates in Excel

Formula Breakdown:

  • The UNIQUE function extracts the unique values in D5:D14.
  • The FILTER function returns unique cell values in the Country column that are not null or empty.
  • The SORT function sorts the unique values in the Country column in an alphabetical A-Z order.
  • Press ENTER.

The Country column has 4 unique countries.

  • Follow the steps described above to create a drop-down list.

Create a Drop Down List with Unique Values by Removing Duplicates in Excel


Method 4 – Use a Formula to Create a Dynamic Drop Down List with Unique Values

Steps:

  • Follow the steps described above to create a drop-down list.
  • Select List in Allow.

Use Helper Function to Create a Dynamic Drop Down List with Unique Values

  • Enter the following formula in Source:
=OFFSET($F$5, 0, 0, COUNTA($F$5:$F$100), 1)

Formula Breakdown:

  • The COUNTA function counts the number of cells that are not empty.
  • The OFFSET function starts from a specified cell reference, moves down to a specific number of rows, moves right to a specific number of columns, and extracts a section with a specific height and width.
  • Click OK.

Use Helper Function

The drop-down list is displayed in F10 with the unique countries:

Use Helper Function to Create a Dynamic Drop Down List with Unique Values

  • If you insert a new row with a new country Italy,  the drop-down list in H5 automatically updates.

Use Helper Function

Read More: How to Create a Drop Down List from Another Sheet in Excel


Quick Notes

The UNIQUE function is only available in Excel 365.


Download Practice Workbook

Download the practice book.


Related Articles


<< Go Back to Create Drop-Down List in ExcelExcel Drop-Down List | Data Validation in Excel | Learn Excel

Get FREE Advanced Excel Exercises with Solutions!
ASM Arman
ASM Arman

Abu Saleh Arman is a Marine engineer and Excel & VBA expert. He loves programming with VBA. He finds VBA programming a time-saving tool to manipulate data, handle files, and interact with the internet. He is very interested in Python, MATLAB, PHP, Deep Neural Networks, and Machine Learning, showcasing his diverse skill set. Arman holds a B.Sc in Naval Architecture & Marine Engineering from BUET, Bangladesh. However, he switched to a content developer, where he writes technical content... Read Full Bio

We will be happy to hear your thoughts

Leave a reply

Advanced Excel Exercises with Solutions PDF

 

 

ExcelDemy
Logo