Locked lesson.
About this lesson
Data Validation helps us control what information is going into the spreadsheet.
Exercise files
Download this lesson’s related exercise files.
Exercise - Methods to Minimize Spreadsheet Errors - Part 2.xlsx11.5 KB Exercise Solution - Methods to Minimize Spreadsheet Errors - Part 2.xlsx
12.7 KB 2.06 methods-to-minimize-spreadsheet-errors-part2 - Exercise.docx
43.4 KB 2.06 methods-to-minimize-spreadsheet-errors-part2 - Exercise solution.docx
143.9 KB 02-06-Methods to Minimize Spreadsheet Errors-Part2-Start.xlsx
2.9 MB 02-06-Methods to Minimize Spreadsheet Errors-Part2-Complete.xlsx
2.9 MB
Quick reference
Methods to Minimize Spreadsheet Errors: Part 2 - Data Validation
Control cell inputs using Data Validation.
When to use
We use Data Validation whenever we want to control what users are entering into cells by limiting input to a list of values we've specified.
Instructions
Data Validation helps us control what information is going into the spreadsheet. We can add a drop-down list to each cell and provide others with a limited list of options to select from. This ensures that the correct information is input into the cell each time.
For example, if we have a spreadsheet that logs pizza orders, we need to ensure that every time an order is added to the spreadsheet, the pizza name is entered correctly. We can set up a data validation drop-down list to ensure the information is entered correctly each time.
Create a unique list of values
We need to start by creating a unique list of values to use in our data validation list. If we do not do this, we will have duplicate pizza names in the list.
Use UNIQUE (Microsoft 365, 2019 and 2021)
- Click in a cell outside of the dataset or on another worksheet.
- Type =UNIQUE
- Select the cell range that contains the pizza names.
- Press Enter.
Use the Duplicate Remover Tool
If we are using an older version of Excel and do not have access to the UNIQUE function, we can use the duplicate remover tool instead.
- Select the column that contains the pizza names.
- Press CTRL+C to Copy.
- On another worksheet, press CTRL+V to Paste.
- Select the new column.
- From the Data tab, in the Data Tools group, click Remove Duplicates.
Create a Data Validation Drop-down List
Now we have a unique list of values, we can use these in our data validation list.
- Click in the cell where you want the data validation list to go.
- From the Data tab, in the Data Tools group, click Data Validation.
- From the Settings tab, in the Allows area, choose List.
- In the Source field, select the column or cell range that contains the list of unique pizza names.
- Click OK.
Hints & tips
- To apply a data validation list to all cells in the column, highlight the column prior to setting up the data validation list.
- To hide the list of unique values, select the column, right-click, and choose Hide.
Lesson notes are only available for subscribers.