A drop-down list is an excellent way to give the user an option to select from apre-defined list.
It can be used while getting a user to fill a form,or while creating interactive Excel dashboards.
Drop-down lists are quite common on websites/apps and are very intuitive for the user.
Watch Video – Creating a Drop Down List in Excel
In this tutorial, you’ll learn how to create a drop down list in Excel (it takes only a few seconds to do this) along with all the awesome stuff you can do with it.
This Tutorial Covers:
How to Create a Drop Down List in Excel
In this section, you will learn the exacts steps to create an Excel drop-down list:
- Using Data from Cells.
- Entering Data Manually.
- Using the OFFSET formula.
#1 Using Data from Cells
Let’s say you have a list of itemsas shown below:
Here are the steps to create an Excel Drop Down List:
- Select a cell where you want to create the drop down list.
- Go to Data –> Data Tools –> Data Validation.
- In the Data Validation dialogue box, within the Settings tab, select List as the Validation criteria.
- As soon as you select List, the source field appears.
- As soon as you select List, the source field appears.
- In the source field, enter=$A$2:$A$6, or simply click in the Source field and select the cells using the mouse and click OK. This will insert a drop down list in cell C2.
- Make sure that the In-cell dropdown option is checked (which is checked by default). If this option in unchecked, the cell does not show a drop down, however, you can manually enter the values in the list.
- Make sure that the In-cell dropdown option is checked (which is checked by default). If this option in unchecked, the cell does not show a drop down, however, you can manually enter the values in the list.
Note: If you want to create drop down lists in multiple cells at one go, select all the cells where you want to create it and then follow the above steps. Make sure that the cell references are absolute (such as $A$2) and not relative (such asA2, or A$2, or $A2).
#2 By Entering Data Manually
In the above example, cell references are used in the Source field. You can also add items directly by entering it manually in the source field.
For example, let’s say you want to show two options, Yes and No, in the drop down in a cell. Here is how you can directly enter it in the data validation source field:
- Select a cell where you wantto create the drop down list (cell C2 in this example).
- Go to Data –> Data Tools –> Data Validation.
- In the Data Validation dialogue box, within the Settings tab, select List as the Validation criteria.
- As soon as you select List, the source field appears.
- As soon as you select List, the source field appears.
- In the source field, enter Yes, No
- Make sure that the In-cell dropdown option is checked.
- Click OK.
This will create a drop-down list in the selected cell. All the items listed in the source field, separated by a comma, are listed in different lines in the drop down menu.
All the itemsenteredin the source field, separated by a comma, are displayed in different lines in the drop down list.
Note: If you want to create drop down lists in multiple cells at one go, select all the cells where you want to create it and then follow the above steps.
#3 Using Excel Formulas
Apart from selecting from cells and entering data manually, you can also use a formula in the source field to create an Excel drop down list.
Any formula that returns a list of values can be used to create a drop-down list in Excel.
For example, suppose you have the data set as shown below:
Here are the steps to create an Excel drop down list using the OFFSET function:
- Select a cell where you want to create the drop down list (cell C2 in this example).
- Go to Data –> Data Tools –> Data Validation.
- In the Data Validation dialogue box, within the Settings tab, select List as the Validation criteria.
- As soon as you select List, the source field appears.
- As soon as you select List, the source field appears.
- In the Source field, enter the following formula: =OFFSET($A$2,0,0,5)
- Make sure that the In-cell dropdown option is checked.
- Click OK.
This will create a drop-down list that lists all the fruit names (as shown below).
Note: If you want to create a drop-down list in multiple cells at one go, select all the cells where you want to create it and then follow the above steps. Make sure that the cell references are absolute (such as $A$2) and not relative (such asA2, or A$2, or $A2).
How this formula Works??
In the above case, we used an OFFSET function to create the drop down list. It returns a list of items from the ra
It returns a list of items from the range A2:A6.
Here is the syntax of the OFFSET function: =OFFSET(reference, rows, cols, [height], [width])
It takes five arguments, where we specified the reference as A2 (the starting point of the list). Rows/Cols are specified as 0 as we don’t want to offset the reference cell. Height is specified as 5 as there are five elements in the list.
Now, when you use this formula, it returns an arraythat has the list of the five fruits in A2:A6.Note that if you enter the formula in a cell, select it and press F9, you would see that it returns an array of the fruit names.
Creating a Dynamic Drop Down List in Excel (Using OFFSET)
The above technique of using a formula to create a drop down list can be extended to create a dynamic drop down list as well. If you use the OFFSET function, as shown above, even if you add more items to the list, the drop down would not update automatically. You will have to manually update it each time you change the list.
Here is a way to make it dynamic (and it’s nothing but a minor tweak in the formula):
- Select a cell where you want to create the drop down list (cell C2 in this example).
- Go to Data –> Data Tools –> Data Validation.
- In the Data Validation dialogue box, within the Settings tab, select List as the Validation criteria. As soon as you select List, the source field appears.
- In the source field, enter the following formula: =OFFSET($A$2,0,0,COUNTIF($A$2:$A$100,”<>”))
- Make sure that the In-cell drop down option is checked.
- Click OK.
In this formula, Ihave replaced the argument 5 with COUNTIF($A$2:$A$100,”<>”).
The COUNTIF function counts the non-blank cells in the range A2:A100.Hence, the OFFSET functionadjusts itself to include all the non-blank cells.
Note:
- For this to work, there must NOT be any blank cells in between the cells that are filled.
- If you want to create a drop-down list in multiple cells at one go, select all the cells where you want to create it and then follow the above steps. Make sure that the cell references are absolute (such as $A$2) and not relative (such asA2, or A$2, or $A2).
Copy Pasting Drop-Down Lists in Excel
You can copy paste the cells with data validation to other cells, and it will copy the data validation as well.
For example, if you have a drop-down list in cell C2, and you want to apply it to C3:C6 as well, simply copy the cell C2 and paste it in C3:C6. This will copy the drop-down list and make it available in C3:C6 (along with the drop down, it will also copy the formatting).
If you only want to copy the drop down and not the formatting, here are the steps:
- Copy the cell that has the drop down.
- Select the cells where you want to copy the drop down.
- Go to Home –> Paste –> Paste Special.
- In the Paste Special dialogue box, select Validation in Paste options.
- Click OK.
This will only copy the drop down and not the formatting of the copied cell.
Caution while Working with ExcelDrop Down List
You need to to be careful when you are working with drop down lists in Excel.
When you copy a cell (that does not contain a drop down list) over a cell that contains a drop down list, the drop down list is lost.
The worst part of this is that Excel will not show any alert or prompt to let the user know that a drop down will be overwritten.
How to Select All Cells that have a Drop Down List in it
Sometimes, it ‘s hard to know which cells contain the drop down list.
Hence, it makes sense to mark these cells by either giving it a distinct border or a background color.
Instead of manually checking all the cells, there is a quick way to select all the cells that have drop-down lists (or any data validation rule) in it.
- Go to Home –> Find & Select –> Go To Special.
- In the Go To Special dialogue box, select Data Validation
- Data validation has two options: All and Same. All would select all the cells that have a data validation rule applied on it. Same would select only those cells that have the same data validation rule as that of the active cell.
- Data validation has two options: All and Same. All would select all the cells that have a data validation rule applied on it. Same would select only those cells that have the same data validation rule as that of the active cell.
- Click OK.
This would instantly select all the cells that have a data validation rule applied to it (this includes drop down lists as well).
Now you can simply format the cells (give a border or a background color) so that visually visible and you don’t accidentally copy another cell on it.
Here is another technique by Jon Acampora you can use to alwayskeep the drop down arrow icon visible. You can also see some ways to do this in this video by Mr. Excel.
Creating a Dependent / Conditional Excel Drop Down List
Here is a video on how to create a dependent drop-down list in Excel.
If you prefer reading over watching a video, keep reading.
Sometimes, you may have more than one drop-down list andyou want the items displayed in the second drop down to be dependent on what the user selected in the first drop-down.
These are called dependent or conditional drop down lists.
Below is an example of a conditional/dependent drop down list:
In the above example, when the items listed in ‘Drop Down 2’ are dependent on the selection made in ‘Drop Down 1’.
Now let’s see how to create this.
Here are the steps to create a dependent / conditional drop down list in Excel:
- Select the cell where you want the first (main) drop down list.
- Go to Data –> Data Validation. This will open the data validation dialog box.
- In the data validation dialog box, within the settings tab, select List.
- In Source field, specify the range that contains the items that are to be shown in the first drop down list.
- Click OK. This will create the Drop Down 1.
- Select the entire data set (A1:B6 in this example).
- Go to Formulas –> Defined Names –> Create from Selection (or you can use the keyboard shortcut Control + Shift + F3).
- In the ‘Create Named from Selection’ dialog box, check the Top row option and uncheckall the others. Doing this creates 2 names ranges (‘Fruits’ and ‘Vegetables’). Fruits named range refers to all the fruits in the list and Vegetables named range refers to all the vegetables in the list.
- Click OK.
- Select the cell where you want the Dependent/Conditional Drop Down list (E3 in this example).
- Go to Data –> Data Validation.
- In the Data Validation dialog box, within the setting tab, make sure List in selected.
- In the Source field, enter the formula =INDIRECT(D3). Here, D3 is the cell that contains the main drop down.
- Click OK.
Now, when you make the selection in Drop Down 1, the options listed in Drop Down List 2 would automatically update.
Download the Example File
How does this work? –The conditional drop down list (in cell E3) refers to =INDIRECT(D3). This means thatwhen you select ‘Fruits’ in cell D3, the drop down list in E3 refers to the named range ‘Fruits’ (through the INDIRECT function) and hence lists all the items in that category.
Important Note While Working with Conditional Drop Down Lists in Excel:
- When you have made the selection, and then you change the parent drop down, the dependent drop down would not change and would, therefore, be a wrong entry. For example, if you select the US as the country and then select Florida as the state, and then go back and change the country to India, the state would remain as Florida. Here is a great tutorial by Debra on clearing dependent (conditional) drop down lists in Excel when the selection is changed.
- If the main category is more than one word (for example, ‘Seasonal Fruits’ instead of ‘Fruits’), then you need to use the formula=INDIRECT(SUBSTITUTE(D3,” “,”_”)), instead of the simple INDIRECT function shown above. The reason for this is that Excel does not allow spaces in named ranges. So when you create a named range using more than one word, Excel automatically inserts an underscore in between words. So ‘Seasonal Fruits’ named range would be ‘Seasonal_Fruits’. Using the SUBSTITUTE function within the INDIRECT function makes sure that spacesare converted into underscores.
You May Also Like the Following Excel Tutorials:
- Extract Data from Drop Down List Selection in Excel.
- Select Multiple Items from a Drop Down List in Excel.
- Creating a Dynamic Excel Filter Search Box.
- Display Main and Subcategory in Drop Down List in Excel.
- How to Insert Checkbox in Excel.
- Using a Radio Button (Option Button) in Excel.
- How to Remove Drop-Down List in Excel?
FAQs
How to Create a Drop Down List in Excel (the Only Guide You Need)? ›
Select a cell where you want to create the drop down list. Go to Data –> Data Tools –> Data Validation. In the Data Validation dialogue box, within the Settings tab, select List as the Validation criteria. As soon as you select List, the source field appears.
How do I create a specific drop-down list in Excel? ›- Select the cells that you want to contain the lists.
- On the ribbon, click DATA > Data Validation.
- In the dialog, set Allow to List.
- Click in Source, type the text or numbers (separated by commas, for a comma-delimited list) that you want in your drop-down list, and click OK.
Select the cell in the worksheet where you want the drop-down list. Go to the Data tab on the Ribbon, then click Data Validation . On the Settings tab, in the Allow box, click List . If it's OK for people to leave the cell empty, check the Ignore blank box.
Can you create a drop-down list in Excel without Data Validation? ›As far as I am aware, it is not possible to generate a drop-down list using a formula rather than data validation, however, the following approach might be utilized to meet your needs.
What is a dynamic drop-down list? ›It's a list that we can select from in order to filter attendance data by department. The source of this dynamic data validation list has been created using the UNIQUE function. UNIQUE is a Dynamic Array Formula that returns all the unique values from a data range. In other words, it removes duplicates from a data set.
How to create a Data Validation list in Excel based on criteria? ›- Select one or more cells to validate.
- On the Data tab, in the Data Tools group, click Data Validation .
- On the Settings tab, in the Allow box, select List .
- In the Source box, type your list values, separated by commas. ...
- Make sure that the In-cell dropdown check box is selected.
- Select one or more cells for your dropdown (D3:D7 in our case).
- On the Data tab, in the Data Tools group, click Data Validation.
- In the Allow drop-down box, select List.
- In the Source box, enter the formula that indirectly refers to Table1's column named Items.
Copy drop down lists across multiple rows
To copy the dependent drop down list, let's do a regular copy/pasting: Select the cell with the secondary drop-down (C3) and press Ctrl + C to copy it. Select all other cells where you want the dependent list to appear (C4:C12) and press Ctrl + V to paste the copied contents.
- a combo box is a combination of an input text field and a list of options. You can type in stuff in the input field and the list should update to highlight a possible match.
- a dropdown is just a list of options that drops down when you click on the arrow button. You can only choose from a list of predefined options.
For all your empty cells, enter just a single empty character. Select a cell, hit the space bar, get out of the cell, and copy that value down. Now, your empty cells technically aren't empty because they contain a space. And by doing so, the drop down list now starts from the top again.
What is the difference between dropdown and dynamic dropdown? ›
The Static Dropdown is for cases when you, as a form author, want to provide, ahead of time, in Form Builder, the list of all the different choices users will be able to choose from. This is in contrast with the Dynamic Dropdown where the list of choices will be loaded at runtime from a service you provide.
What is the difference between listbox and drop-down list? ›Summary: Listboxes and dropdowns are compact UI controls that allow users to select options. Listboxes expose options right away and support multi-selection while dropdowns require a click to see options and support only single-selection.
What is the difference between drop-down list and drop-down menu? ›With a drop-down list or combo box, users make a choice among a list of mutually exclusive values. Users can choose one and only one option. With a standard drop-down list, users are limited to choices in the list, but with a combo box they can enter a choice that isn't in the list.
What is a dependent drop-down list in Excel? ›What Is a Dependent Drop-Down List? In a Microsoft Excel dependent drop down list, the list of items changes, depending on the value in another cell. For example: Fruit was selected as Produce Type in cell B3, and the drop down showed the Fruit list in cell D3. Next, in cell B4, Vegetable was selected as Produce Type.
How do you conditional format a Data Validation list? ›On the Home tab of the ribbon, select Conditional Formatting > New Rule... Select 'Use a formula to determine which cells to format'. Activate the Fill tab.
How many items can be in a drop down list in Excel? ›There are limits to the number of items that will show in a data validation drop down list: The list can show up to show 32,767 items from a list on the worksheet. If you type the items into the data validation dialog box (a delimited list), the limit is 256 characters, including the separators.
How do I create multiple selection listbox in Excel? ›- On the worksheet, click on a cell that has a drop down list.
- The VBA listbox pops up automatically, and shows all the choices from the cell's drop down list.
- Add a check mark to one or more of the items in the list box.
- When you're finished selecting items, click the OK button.
Instead of limiting the drop down list to a single selection, you can use a bit of programming, combined with the data validation list, and allow multiple selections. With a few adjustments to the VBA code, you can display all the selected items across a row, or down a column, or keep them in a single cell.
Can a drop-down list have multiple selections? ›Multi select dropdown list is used when a user wants to store multiple values for the same record, whereas dropdown list is used to store a single value for a record. You can create custom categories of either dropdown list or multi select dropdown list and define items in each category.
How do I select multiple options in a drop-down list? ›- For windows: Hold down the control (ctrl) button to select multiple options.
- For Mac: Hold down the command button to select multiple options.
How do I create multiple selections in a drop-down list in Word? ›
Under Insert controls, click Multiple-Selection List Box. If you cleared the Automatically create data source check box in step 3, select a repeating field in the Multiple-Selection List Box Binding dialog box to which you want to bind the multiple-selection list box.
What is the difference between a list box and a combo box? ›A List box allows the user to choose multiple selections from the list at one time, while a Combo box allows only a single selection, but a Combo box allows the user to edit the selected value while a List box only allows the user to choose from the given list.
What is the difference between Dropdownbutton and combobox? ›A Combo-box is combination of selectbox and text-field, In this case user can either select a city or search and select a city. A Dropdown button is a menu button, the list items in the menu button has a unique features, either the list items opens a dialog/tab or have some actions. Save this answer.
What is the difference between dropdown and multiple choice? ›Multiple Choice Fields: A question with a group of answers choices that lets the user select one choice only. Dropdown Menus: A question with an answer fields that expands into a list of options that lets the user select one choice.
How do you create drop-down list but show different values in Excel without VBA? ›- This will open the Data Validation menu. Go to the Settings tab and select List from the Allow dropdown.
- In the Source input box, enter your delimited list using commas as the delimiter between items.
- Click OK button to create your dropdown list.
Dropdown buttons can use a single button or a split button with a toggle for triggering the menu. There are two types of dropdowns – single button and split button.
What is the difference between Data Validation and combobox? ›Validation allows to add multiple options or listings as per requirements. But, whereas the combo box is just for one option. A data validation list doesn't have an auto-complete feature. If you want that feature you could use an ActiveX combo box from the Developer tab.
What is the design pattern of a drop-down menu? ›A dropdown menu is a design pattern letting you display a list of contents, navigation points, and functions without flooding the user with many options simultaneously.
What is the disadvantage of drop down menu? ›High interaction cost- scrolling through a drop down list can be awkward and time consuming for mobile users. For example, when searching through a selection of countries to choose from, the user needs to fist click the drop down tag, then scroll through while reading each option, before selecting the right choice.
How to handle dropdown without select class? ›- Method 1: By storing all the options in List and iterating through it.
- Method 2: By creating Custom Locator and without iterating the List.
- Method 3: By using JavaScriptExecutor class.
- Method 4: By using sendKeys method.
What is the difference between dropdown and lookup? ›
The SelectBox has only a list of items in a drop-down field whereas Lookup also has a search field and the Cancel button. The SelectBox looks the same on any platform, while Lookup changes its appearance. The Lookup's drop-down field is replaced with a popup window that occupies most of the screen.
What is the difference between a checkbox and a dropdown? ›A checkbox allows you to tick a box On or Off. A radio button is a list of choices that are displayed on the screen but only one item can be selected. A dropdown is a list of choices that can be selected by tapping on the down arrow. Only one item in the list can be selected.
What is the difference between a dropdown menu and a text box? ›A text box is a control that only shows the one value. A Combo Box, allows the user to select a value from a drop down list, which is only visible when the user clicks on the drop down list.
Are drop down menus outdated? ›Drop-downs are still very relevant in this day and age regardless of the platform. All operating systems are also using them so users are accustomed to using a drop down.
When not to use a dropdown menu? ›- Lack of Overview. Seeing more than 20 uncategorized options can be bewildering and intimidating, and make it difficult for users to find the input they're looking for. ...
- Scrolling Issues. ...
- Inconsistent UI.
- On the worksheet where you applied the drop-down list, select a cell that has the drop-down list.
- Go to Data > Data Validation.
- On the Settings tab, click in the Source box, and then change your list items as needed.
To add data validation, you must unlink the Excel table or convert the Excel table to a range. You might currently be entering data - The Data Validation command is not available while you are entering data in a cell. To finish entering data, press Enter or ESC to quit.
How do I bypass Data Validation in Excel? ›Method 1: Regular way to remove data validation
Normally, to remove data validation in Excel worksheets, you proceed with these steps: Select the cell(s) with data validation. On the Data tab, click the Data Validation button. On the Settings tab, click the Clear All button, and then click OK.
Drop Downs Without Data Validation
Further down the page there are written steps for creating the 3 types of drop down lists in Excel: Data Validation. Form Control Combo Box. ActiveX Combo Box.
Dropdown Option
On the Ribbon, click the Data tab. Click the top of the Data Validation button, to open the dialog box. In the Data Validation window, go to the Settings tab. Add a check mark to the In-cell dropdown check box.
Why dropdown is not working in Excel? ›
Drop down list in Excel fails to work if your worksheet is corrupted. Sometimes the files also get corrupted but they can be fixed by using the repair option. To repair you will need to locate your file.
How do I use custom Data Validation in Excel? ›For this, click the Data Validation button on the Data tab, in the Data Tools group or press the key sequence Alt > D > L (each key is to be pressed separately). On the Settings tab of the Data Validation dialog window, select Custom in the Allow box, and enter your data validation formula in the Formula box. Click OK.
What is the difference between a list box and a combo box in Excel? ›Generally, a combo box is appropriate when there is a list of suggested choices, and a list box is appropriate when you want to limit input to what is on the list. A combo box contains a text box field, so choices not on the list can be typed in. The exception is when the DropDownStyle property is set to DropDownList.