Data validation gives the Excel developer a way of dictating the type of information that can be entered in a worksheet. It is a versatile tool that can be used in many situations.
With data validation you can:
- Provide users a list of options to choose from
- Dictate the type or size of input
- Create custom settings
I often use data validation when I create templates. You typically expect a user to enter a specific thing in a cell but sure enough, there will be the user that has different ideas. Those users different ideas are what can cause errors on your worksheet.
To use data validation, select the cell where information will be entered. Choose data from the menu and then validation (data validation in 2007). In the data validation window, you will see the drop-down “allow”. This “allow” drop-down is where you can select what type of data you would like to see in this cell, such as date. With the “data” drop-down you can choose to limit the data to between specific ranges or greater than a specific number.
Another option from the allow drop-down is list. List will create a drop-down of your choices in the cell. The options that will be placed in the drop-down come from cells on your worksheet. When you select list, a field will appear called “source”. In the source field, you will input where the items to be placed in the list are on your worksheet. If your list items are in cells a1,a2 and a3, you would put =$A$1:$A$3 in the source box. Those items will now be placed in the drop-down for the cell you are creating the validation.
To have your data validation list on a separate sheet, see this:
Data validation list on seperate sheets
- Data Validation List on Seperate Sheet How to create list for data validation on different sheets...
- How to Import XML Data into Excel This article is a quick primer on using XML data...
- Referencing Data in Another Excel Workbook Q: Joe, I have data in another workbook that I...
- Duplicates – Finding and Removing in Excel There are many occasions when you may need to remove...
- #VALUE! Error in Microsoft Excel The #VALUE error is an error that is seen almost...