The Cambridge International Curriculum places a large emphasis on ensuring the quality, and checking the accuracy & validity, of data and information, both theoretically and practically in spreadsheets and databases. In Excel, validation is applied to cells to limit the input of data.
In this tutorial:
Required knowledge:
Options
Several validation options are available:
- Any value
- Whole number
- Decimal
- List
- Date
- Time
- Text length
- Custom
List-style example
The List-style validation compares the input values against a list in the form of a range of cells in Excel. The list can be on a different sheet or even a different workbook. The dropdown has the added advantage of making data entry extremely easy and accurate.
Download and import both CSV files into one Excel workbook.
- Activate the Data menu and select E2:E1043 (select E2 and use the Ctrl + Shift + ↓ keyboard shortcut) on the album-data sheet
- Click Data Validation to open the Data Validation options dialog and select the List option from the Allow dropdown on the Settings tab
- Click in the Source field and select the range B1: B69 on the music-genres sheet
- Leave the Ignore blank & In-cell dropdown options (both of these options are self-explanatory – play with them)
- Select the Input Message tab
- Leave the Show input message when cell is selected option checked
- Enter an appropriate message Title
- Enter an appropriate Input message
- Select the Error Alert tab
- Leave the Show error alert after invalid data is entered option checked
- Enter an appropriate error Title
- Enter an appropriate Error message
- Click the OK button
- Try out your new validation: click in cell E2 and observe the input message you created in Step 8 above
- Type a valid entry into E2 and watch the “type-ahead” value appear from the list
- Click on the dropdown control
- Select an option from the dropdown list
- Enter a value not in the list to test your Error Alert.
- Click the Cancel button
In the example above the validation list is on a second sheet in the same workbook. You could “protect” your validation list by entering it on a separate worksheet and protecting and hiding that sheet.
More examples coming soon!