When you are entering data in Excel you may want to ensure your data is entered in a consistent way. Maybe you have multiple people working on the same file and you are constantly having to correct entries due to spelling errors or colleagues using abbreviations. If you want some consistency, you can add a drop down list to any cell, column or row within your Excel spreadsheet. This then allows users to choose an option from the Excel drop down list rather than typing their own entries.
This is also a great feature for use within a classroom setting. Teachers can create interactive quizzes allowing students to choose an answer from a drop down list. This can be extended to include a self-marking function to let students know if the answer is correct or incorrect.
In the example below there is no consistency in the way data is entered into the Source column or the Course Name column which will make sorting and filtering difficult.
Let’s look now at how we can create a drop-down list to allow users to select from a pre-defined list of options. In my example, I want to have a column in my worksheet where users must select from a list of predefined locations.
Create the drop-down list
To create the drop-down list we are going to use the Data Validation tools. This allows you to specify what type of information you wish to allow to be entered into a cell, entire row or column.
Create the list
- Open Microsoft Excel
- If you wish to work on an existing file then press Ctrl + F12 to display the Open dialog. Locate the file and open it.
- If you want to start from scratch you can work directly from the new blank workbook displayed
- We will use the first blank worksheet (Sheet1) as our main data entry sheet. We will need a second worksheet to store the options we want to be displayed in the drop down list.
- Click the New sheet button at the bottom of the window
- A new blank worksheet will be added
- Click on the new worksheet to open it, this will hold the options to be used in our drop down list
- In cell A1 type the heading Location
- In cell A2 type the first location e.g. Sydney
- Press Enter and continue to add approx 6-8 different locations into the list
- You can format the heading as needed and resize the column if you prefer. You can even use the Sort function to put the list into alphabetical order.
Display the drop down list
- Return back to Sheet1
- Type the heading Location into an appropriate location
- Highlight all of column A by clicking once on the column heading
- Select the Data tab from the Ribbon
- Click the Data Validation button and choose Data Validation from the drop-down menu
- The Data Validation dialog box will appear:
- From the Allow drop-down, select that you want to allow a List
- You now need to select the location which holds the list within the workbook
- Click the Collapse button on the right side of the Source field
- you now need to highlight the cells which hold the entries you want displayed in your drop down list
- Select Sheet2 and highlight the cells containing each location, do not include the heading (I’ve highlighted A2:A9)
- Click the Expand button to bring the Data Validation dialog box back
- Click OK
- Place your cursor in column A and you will see a drop-down arrow appear on the right side of the cell
- Click the drop-down list and select a location
- Your list will now be available for the entire column
- Repeat this process to create drop-down lists in any other columns within the workbook
Edit a drop down list in Excel
If you need to add additional options to a drop down list, or you’ve made a spelling error, you can easily edit the list within the worksheet.
If you need to edit an option within the list:
- Open the second worksheet which contains all the list items you have created
- Edit the entries as normal
- The edited entries will now be available via the drop down lists on your data entry worksheet
To add more options to a drop down list:
- Open the second worksheet which contains all the list items you have created
- Add in any additional options you wish to include
- Go back to your data entry worksheet
- Highlight the column containing the corresponding drop down list
- Select the Data tab from the Ribbon
- Click the Data Validation button and choose Data Validation from the options
- Edit the Source field by clicking the Collapse button
- Highlight the new range of cells containing your list options
- Expand the dialog box again and click OK
- Your new list items should be available through the drop-down list in your data entry worksheet
To remove a drop down list
If you no longer wish to use a drop down list within your worksheet you can easily remove it.
- Highlight the column containing the drop down list
- Select the Data tab from the Ribbon
- Click the Data Validation button and choose Data Validation from the options
- Change the Allow field to Any value
- Click OK
- The column will now allow any type of value to be entered.
Reference: https://www.thetraininglady.com/drop-down-list-excel/