Excel Drop Down List: Create, Edit, Remove, Filter, Protect

 

Overview of Drop Down List in Excel

The dataset showcases online shopping information: ‘Order ID’, ‘Customer Name’, ‘Device’, ‘Order Date’, ‘Delivery date’, and ‘Payment Method’.

Created a drop down list with the values in ‘Order ID’ to extract related information.


What Is a Drop Down List in Excel?
How to Create a Drop Down List in Excel?
   ⏵1. Drop Down List from a Range of Cells
   ⏵2. Drop Down List from Table
   ⏵3. Drop Down List with Named Range
   ⏵4. Drop Down List with Color
   ⏵5. Drop Down List with Unique Values
   ⏵6. Drop Down List Based on Data from Another Sheet
   ⏵7. Drop Down List Based on Data from Another Workbook
   ⏵8. Creating a Dependent Drop Down List
   ⏵9. Making a Searchable Drop Down List
   ⏵10. Creating a Dynamic Drop Down List
   ⏵11. Creating a Searchable, Dynamic, and Multi-dependent Drop Down List
   ⏵12. Making a Drop Down List with Custom Message
   ⏵13. Creating an Editable Drop Down List with Error Alert Message
How to Add or Remove Items from Excel Drop Down List?
How to Protect Drop Down List in Excel?
How to Delete Drop Down List in Excel?
How to Filter Drop Down List & Extract Data Based on Selection in Excel?
How to Solve Issues with Excel Drop Down List?


What Is a Drop Down List in Excel?

A drop down list is a feature that allows users to select an element from a list of options.

Drop Down List image


How to Create a Drop Down List in Excel?

Use a range of cells, a table, or a named range to create a drop down list in Excel. It can be created from data in another worksheet or workbook and can be dependent, independent, searchable or editable.

1. Creating a Drop Down List from a Cell Range

To create a drop down list based on the values in column B:

Dataset for Creating Drop Down List from Range of Cells

  • Select a cell (C18).
  • Go to the Data tab and select Data Validation.

Go to Data Validation for Creating Drop Down

  • In Data Validation, go to Setting.
  • In List, choose Allow.
  • Define a range ($B$6:$B$15) in Source.
  • Click OK.

Defining Range for Creating Drop Down

  • This is the output.

Created Drop Down with ID

  • Enter the following formula in C19 to have the value from column C, based on the Order ID selection.
=VLOOKUP($C$18,$B$6:$G$15,ROW(B19)-ROW($B$18)+1,FALSE)
  • Use the Fill Handle to extract values.

Extracting Value based on Drop Down Value


2. Creating a Drop Down List from a Table

Create a drop down list using a table:

  • Select a cell range and go to the Insert tab to create a table.
  • Click Table.

Order of Commands to Create Table

  • Check My table has headers.
  • Click OK.Reconfirming the Data Range
  • To create a drop down list in C18 with data in Customer Name, select List in Allow.
  • Enter the following formula with the INDIRECT function in the Source and click OK.
=INDIRECT("Table1[Customer Name]")

Creating Drop Down with Table Column

  • Enter the following formula in C19 to extract the device name based on the customer name selection.
=INDEX(Table1,MATCH(C18,Table1[Customer Name],0),3)

Output Regarding the Drop Down Value

  • This is the output.

Output of creating Drop Down with Table


3. Creating a Drop Down List with a Named Range

  • Select a cell range and go to the Formulas tab.
  • Click Define Name.

Defining name to Create a Drop Down

  • Set a name ( ID) in Name and define a range in Refers to.

Creating a Name Range

  • Create a drop down list of order IDs in C19 by entering the following formula in Source
=ID

Defining Name Range in Source

  • Use the following formula in C19 to have the customer name based on the order ID selection.

=INDEX(B6:G15,MATCH($C$18,ID,0),2)

Having Output Based on Drop Down Value

  • Use the following formula to have the name of the device in C20.
=INDEX(B6:G15,MATCH($C$18,ID,0),3)

Having Another Output Based on Drop Down Value

  • This is the output.

Output of Named Range


4. Creating a Drop Down List with Color

Create a drop down list with color. Define a custom color with Conditional Formatting for each value of the drop down list.

  • Select List in Allow .
  • Enter the color names separated by a comma sign (,): ( Black,White,Silver,Gold) in Source.

Creating a Drop Down with Colors

  • To define a color for each of the elements of the drop down, select the drop down and go to Conditional Formatting in the Home tab.
  • Go to Highlight Cell Rules and click  Equal To…

List of Sequence for Conditional Formatting

  • In Equal To, enter the name of the color (Black).
  • Select Custom Format to set a color for the color name.

Order of Commands to Set Custom Color for Certain Color

  • Choose a color in Fill.

Defining Fill Color

  • You can also change the font color in Font. Here, white.

Setting Font Color

  • Click OK.

Confirming The Conditional Formatting

  • Set colors for the other options.

Similar Process to Set Multiple Conditions

  • The drop down displays color based on the cell value.

Cell Output Based on Matched Color

  • Color will automatically change based on the selection.

Output of Changing Color From Drop Down

  • Use the Fill Handle to AutoFill the drop down.

AutoFill the Cells and define color


5. Creating a Drop Down List with Unique Values

Create a drop down with unique values ignoring the duplicates.

Create a drop down with the unique values of column D and another drop down with unique values of column E.

Dataset for Creating Drop Down with Unique Values

  • Use the following formula in B22 to see the unique brand names.
=UNIQUE(D9:D18)

Using UNIQUE Function to find unique brands

  • Enter the following formula to create a drop down in C5 with the unique values.
=$B$22:$B$25

Creating Drop Down with Unique Brands

  • Enter the following formula in C22 to see the unique values from column E that match the brand in C5.
=FILTER(E9:E18,C5=D9:D18)

Filtering Unique Device Based on Brand

  • Go to Data Validation.
  • Use the following formula in Source.
=$C$22$

Creating Drop Down with Unique Devices

  • This is the output.

Drop Down with Unique Values


6. Creating a Drop Down List Based on Data from Another Sheet

Create a drop down list with the data from another worksheet. Here,  mobile brands and their phone models are in the PhoneList worksheet.

Data Available in Another Sheet

Use the brand names and phone models to create two drop down lists in another worksheet (AnotherSheet).

  • To create a drop down list of brand names in D6 with the data in the PhoneList worksheet, enter the following formula in Source.
=PhoneList!$B$3:$E$3

Creating Brand Drop Down with Values from Another Sheet

  • Use the Fill Handle to create the same drop down list in column D.
  • Use the following formula with the INDIRECT function in Source to have the phone models from the PhoneList worksheet in a drop down based on the brand names in column D.
=INDIRECT($D6)
Having Values in Drop Down from Another Sheet

Click here to enlarge the image.

  • This is the output.

Output of Drop Down from Values in Another Sheet


7. Creating a Drop Down List Based on Data from Another Workbook

You can create a drop down list based on data of another workbook.

In the AvailablePaymentMethods workbook, there is a list of payment methods for online shopping. Use the data to create a drop down list in the Drop down in Excel workbook.

  • Go to Formulas and select Define Name.

Defining Name of Range in Another Workbook

  • In New Name, define a name (PayType) in Name.
  • Define a range (Sheet1!$B$3:$B$7) in Refers to.
  • Click OK.

Defining Name Range

  • Go to the Drop down in Excel workbook and set a named range (PayType).
  • Enter [AvailablePaymentMethods.xlsx]Sheet1!PayType to define the name range in the AvailablePaymentMethods workbook.
  • Enter the following formula in Source to create a drop down list with the named range in G6.
=PayType

Create Drop Down with that Name Range

  • You can select a payment method from the drop down.

Drop Down Creation from Another Workbook

  • Use the Fill Handle to AutoFill the drop down.

Final Output of Making a Drop Down List from Another Workbook

Note
i. Both workbooks must be open while creating the drop down.
ii. Don’t create multiple dependent drop down lists from another workbook.

8. Creating a Dependent Drop Down List

Create a dependent drop list in Excel. Values will change based on the selection of another independent drop down list.

  • To create an independent drop down list of brands in D6, enter the following formula in Source (Data Validation).
=$B$18:$E$18

 Creating Independent Drop Down

  • To create the dependent drop down list of phone models in E6, enter the following formula with the INDIRECT function in Source.
=INDIRECT($D6)
Creating Dependent Drop Down

Click here to enlarge the image.

  • The dependent drop down based on the selection of brand from an independent drop down list is created.

Output of Dependent Drop Down

  • Use the Fill Handle to AutoFill the drop down lists.

Final Output of Dependent Drop Down


9. Creating a Searchable Drop Down List

Create a searchable drop down list in C19 with the brand names. There will be a dependable and searchable drop down with phone models in C20 based on the selected brand.

Dataset for Searchable Drop Down

  • Insert new columns (G and H) to have unique brand and model names. Use the following formula in G6.
=UNIQUE(OFFSET(D6,0,0,COUNTA(D:D)-1,1))

Finding Unique Brand Names

 

  • Enter the following formula in Source to create a searchable drop down in C19 with the brand names.
=$G$6#

Creating Brand Drop Down

  • You will be able to search brand names in C19.

Searchable Drop Down in Brand Name

  • Enter the following formula in H6 to see phone models based on the brand selection of the searchable drop down.
=UNIQUE(FILTER(E6:E17,C19=D6:D17))

Unique Model of Phones

  • Enter the following formula in Source to create a searchable drop down in C20 with the phone model names.
=$H$6#

Drop down in Phone Model

  • You have independent and dependent searchable drop down lists.

Output of Searchable Drop Down


10. Creating a Dynamic Drop Down List to Add & Auto Update New Entries

Create a dynamic drop down list. New entries  will auto update the drop down list.

Create a dynamic drop down based on the values in column B to extract values based on that ID.

Dataset for Dynamic Drop Down

Click here to enlarge the image.

  • Insert a separate column and enter the following formula in L6 to see unique IDs based on column B values.
=UNIQUE(OFFSET(B6,0,0,COUNTA(B:B)-3,1))
Create Now Column for Order ID

Click here to enlarge the image.

  • Create a drop down list with the unique IDs in J5 by entering the following formula in Source.
=$L$6#
Create an Order ID Drop Down

Click here to enlarge the image.

  • Select an ID from the drop down and use the following formula in J6 to see the customer name for the selected ID.
=VLOOKUP($J$5,B:G,ROW(I6)-ROW($I$5)+1,FALSE)
  • Use the Fill Handle to AutoFill the rest of the values.
Extracting Value Based on Drop Down Value

Click here to enlarge the image.

  • The extracted dates will be shown as integer numbers. Change the number format to Short Date or Long Date in Number Format.

Changing Date Format

  • Add extra IDs and their related values. They will automatically be updated in the drop down and in column L.
 Output of adding New Entries

Click here to enlarge the image.

  • This is the output.

Output of Dynamic Drop Down


11. Creating a Searchable, Dynamic, and Multi-dependent Drop Down List

Create an independent searchable drop down list with brand names, a brand name dependent searchable drop down list of phone models, a phone model dependent searchable drop down list of chipsets and a cell with the price of the product be dependent on all three drop down lists.

Dataset of Creating a Searchable, Dynamic, and Multi-dependent Drop Down List

  • Enter the following formula in L6.
=UNIQUE(OFFSET(D6,0,0,COUNTA(D:D)-1,1))

Finding Unique Phone Brand

  • Create an independent searchable drop down of brand names in J5 by entering the following formula in Source.
=$L$6#

Creating Brand Name Drop Down List

  • Filter the phone models based on the brand selected from the drop down in J5. Use the following formula.
=UNIQUE(FILTER(E:E,J5=D:D))

Finding Model Based on Brand

  • Create a brand name dependent searchable drop down of phone model names in J6. Enter the following formula in Source.
=$M$6#

Creating Model Name Drop Down List

  • Filter the chipsets based on the model selected from the drop down in .J6. Use the following formula.
=UNIQUE(FILTER(F:F,J6=E:E))

Finding Chipset Based on Model

  • Enter the following formula in Source to create a model name dependent searchable drop down of chipsets in J7.
=$N$6#

Creating Chipset Name Drop Down List

  • Use the following formula in J8 to find the price of the product that matches the selected values.
=INDEX(G:G,MATCH(1,(J5=D:D)*(J6=E:E)*(J7=F:F),0))

Creating a Searchable, Dynamic, and Multi-dependent Drop Down List

  • As all drop down lists are dynamic, you can add new entries and the drop down lists will update.

Final Output of Creating a Searchable, Dynamic, and Multi-dependent Drop Down List


12. Creating a Drop Down List with a Custom Message

Add a custom messageto the drop downs in column E.

  • Create a dependent drop down list of the phone model, as described in Method 7.

Created a Dependable Drop Down

  • In Data Validation, go to Input Message.
  • Check Show input message when cell is selected.
  • Set a title in Title and a custom message in Input message.
  • Click OK.

Adding Custom Message

  • The custom message will be displayed when the cell is selected.

Drop Down List with Custom Message


13. Creating an Editable Drop Down List with an Error Alert Message

To create a searchable drop down list of brands in C19 and a searchable phone model names based on the selected brand in C20:

Dataset for Editable Drop Down List

  • Enter the following formula in G6 to create a dynamic column with unique brand names.
=UNIQUE(OFFSET(D6,0,0,COUNTA(D:D)-1,1))

Creating Unique Brand List

  • Create a dynamic searchable drop down of brand names in C19 by entering the following formula in Source.
=$G$6#

Creating Unique Brand Drop Down List

  • To create a drop down editable list, go to the Error Alert tab.
  • Check the box Show error alert after invalid data is entered.
  • Set a style, title, and error message for the wrong search value and click OK.

Enabling Editing Option

  • Create a drop down with the values in Model.

Similarly Enabling Editing Option

  • If you enter a wrong input in those editable drop down lists, the error alert will be displayed with an option to retry or cancel.

 Output of Editable Drop Down


How to Add or Remove Items from an Excel Drop Down List?

You can add or remove items by adding or removing cells while defining the range in Source.

Add Items in The Drop Down List


How to Protect a Drop Down List in Excel?

To protect a drop down list in Excel, protect the cell range used to create that drop down list.

A drop down list of customer names was created in C18. Protect the table to protect the drop down.

  • Select the entire table and go to the Home tab.
  • Click  Alignment to extend it.

Extending the Alignment Group

  • In Format Cells, check Locked in the Protection tab.

Protecting Cells from Format Cells

  • The table is protected. Go to the Review tab and click on Protect Workbook.

Protecting Whole Worksheet

  • Enter a password and check Select locked cells.
  • Click OK.

Setting Password for Protection

  • Re-enter the password.

Re-enter the Password

  • Both table and drop down are protected.

Warning While Editing Protected Range


How to Delete a Drop Down List in Excel?

To delete a drop down list in Excel:

  • Select the drop down list and go to the Data tab.
  • Click Data Validation.

Deleting Drop Down List

  • In Data Validation, click Clear All.
  • Click OK.

Deleting Drop Down List

  • The drop down list will be removed.

Deleted Drop Down List


How to Filter a Drop Down List & Extract Data Based on a Selection in Excel?

Create a table.

Creating Table

Create a drop down list from column D.

Creating Devices Drop Down

Enter the following formula to extract the entire data based on the drop down selection.

=FILTER(Table3,Table3[Device]=$C$18,"No Information Available")

Extracting Data From Table Based on Drop Down Value

Change the values of the drop down list and data extraction will automatically be updated.

Extracting Data from Table Based on Drop Down


How to Solve Issues with an Excel Drop Down List?

1. The Drop Down List is Not Visible

Solution: Check the box In-cell dropdown to make the drop down list visible.

Solving the problem of not Showing Drop Down List


2. Showing Blank in Drop Down List

Selecting Range with Blank cells

Solution: Define the drop down list range to ignore blanks.


3. Valid Entries Not Allowed in Drop Down List

Solution: Use proper cases while entering a valid entry.


4. Invalid Entries Allowed in Drop Down List

Selecting Range with Blank cells

As the source range is bigger than the actual value list, the values entered in those cells might be listed, even though they are invalid.

Solution: Define the drop down list range to stop the entry of invalid elements.


Download Practice Workbook
Download the practice workbook.


 

Excel Drop Down List: Knowledge Hub


<< Go Back to Data Validation in Excel | Learn Excel

Get FREE Advanced Excel Exercises with Solutions!
Naimul Hasan Arif
Naimul Hasan Arif

Naimul Hasan Arif, a BUET graduate in Naval Architecture and Marine Engineering, has been contributing to the ExcelDemy project for nearly two years. Currently serving as an Excel and VBA Content Developer, Arif has written more than 120 articles and has also provided user support through comments His expertise lies in Microsoft Office Suite, VBA and he thrives on learning new aspects of data analysis. Arif's dedication to the ExcelDemy project is reflected in his consistent contributions and... Read Full Bio

We will be happy to hear your thoughts

Leave a reply

Advanced Excel Exercises with Solutions PDF

 

 

ExcelDemy
Logo