Excel Drop Down List from Table Step by Step Guide
In this article
Creating a drop down list that pulls items from an Excel table makes data entry faster and reduces errors.
What You'll Need
- A worksheet that contains a table of items you want to use as sources.
- The table must be formatted as an Excel Table (Insert > Table).
- Access to the Data Validation feature.
Step-by-Step
- Open the workbook and navigate to the sheet where you want to place the drop down.
- Select the cell or range of cells that will hold the list.
- Go to the Data tab on the ribbon.
- Click Data Validation in the Data Tools group.
- In the Settings tab of the dialog, set Allow to List.
- Click the button next to Source. This opens a small input box with a small arrow on the right.
- Select the column in your table that contains the items you want to appear in the list.
- Make sure the entire column is highlighted, for example
A2:A100if your table starts at A2. - Press OK to close the Source dialog.
- Press OK again to close the Data Validation dialog.
- Test the list by clicking the arrow that appears in one of the selected cells and choosing an item.
Detailed Example
Suppose you have a table named tbl_Colors that starts at cell Sheet1!B1 and contains the following colors: Red, Blue, Green, Yellow, Purple. To create a drop down that uses these colors, follow the steps above and, when you click the Source button, select the range Sheet1!B2:B6. If you later add a new color, such as Orange, at Sheet1!B7, you can either extend the range to Sheet1!B2:B7 or, better, use a named range that automatically expands.
To create a named range, select the column that contains the colors, go to the Formulas tab, click Define Name, and type a name like ColorList. In the Refers to box, enter =tbl_Colors[Color]. This formula tells Excel to use the entire Color column of the table, regardless of how many rows it contains. Then, in Data Validation, set the Source to =ColorList. Now, whenever you add a new color to the table, the drop down list updates automatically without any further editing.
Common Mistakes
One frequent error is selecting only a portion of the column when you define the source. If you stop at B4 instead of B6, the later rows will not be available for selection. Another mistake is forgetting to press OK after entering the source; the dialog will remain open and the validation rule will not be applied. Additionally, some users protect the worksheet before adding validation, which prevents the change from taking effect. To avoid this, unprotect the sheet temporarily, add the validation, and then protect it again.
Another subtle issue is using a range that includes blank cells at the bottom of the table. Blank cells can cause the list to display empty options. To prevent this, ensure that there are no completely empty rows within the selected range, or use a formula such as =OFFSET(tbl_Colors[Color],0,0,COUNTA(tbl_Colors[Color]),1) to dynamically create a range that stops at the last non‑blank entry.
Tips for Advanced Users
If you need the drop down to appear in multiple columns or rows, you can copy the cells that already have validation and paste them into the target area. The paste operation retains the validation rule, so you do not need to repeat the steps. When you want the list to be dependent on another drop down, you can use a formula in the Source field that references a cell containing a range. For example, if cell Sheet1!D1 contains the text "Fruit", you can set the Source to =INDIRECT(D1), provided that the named range matches the name of the source table.
Another tip is to use the Input Message and Error Alert tabs in the Data Validation dialog. The Input Message can display a short hint when a user selects a cell, such as "Choose a color from the list". The Error Alert can be customized to show a friendly message if the user tries to enter something that is not in the list, helping to enforce data integrity.
If you are working with large tables, consider converting the source range to a structured reference using the table name. Structured references are more readable and less prone to errors when the table is moved or resized. For example, instead of typing =Sheet1!$B$2:$B$100, you can type =tbl_Colors[Color] directly in the Source field.
Additional Section: Managing Dynamic Lists
Dynamic lists are especially useful when the source data changes frequently. To create a dynamic named range that expands automatically, use the OFFSET function combined with COUNTA. For a table that starts at Sheet1!C2, define a name called DynamicColors with the formula =OFFSET(Sheet1!$C$2,0,0,COUNTA(Sheet1!$C:$C),1). This formula counts the non‑blank cells in column C and creates a range that begins at C2 and extends downward for that many rows. Then, in Data Validation, set the Source to =DynamicColors. As you add or remove items in column C, the named range adjusts accordingly.
If you prefer to avoid formulas, you can also use the Table Design tab that appears when a table is selected. Clicking Resize Table allows you to manually extend the table to include new rows. Once the table is resized, any validation that references the table’s column will automatically include the new rows, provided the reference was made using the structured reference syntax.
Troubleshooting
If the drop down list shows no items or displays an error message, start by checking the source range. Verify that the range you entered in the Source field is correct and that it includes all the items you expect. You can test this by selecting the range in the worksheet and looking at its address in the Name Box.
Next, confirm that the cells are not locked or protected. If the worksheet is protected with the option to select locked cells disabled, Excel will prevent changes to validation settings. Temporarily remove protection, adjust the validation, and then restore protection.
Another check is to ensure that the source range does not contain formulas that return errors. If a formula in the source column returns an error, the drop down may display a blank or an error value. Replace error‑producing formulas with valid data or adjust the formula to handle errors.
Finally, if you are using a named range that relies on a formula, verify that the formula is correct and that it returns a range reference. A common mistake is to type the formula directly into the Source field instead of using the Name Manager to store the name first. Use the Name Manager (Formulas > Name Manager) to review and edit the named range before applying it to validation.