Excel - Data Validation
Excel - Data Validation
This command is used to ensure that new entries to a list or database meet certain criteria.
You can specify the type of data you will allow (e.g. whole numbers, dates, times, text,
number range). You can also have a list of acceptable values and create a drop down list).
1. Select the range of cells where you want the criteria to apply
2. Select the Data ribbon and choose the Data Validation icon. The following dialog
box will appear:
3. In the Settings tab indicate what type of data and what range of values you wish to
allow i.e. if you wish to specify a date range choose Date
4. The Input Message tab allows you to create a prompt that tells the user what kind of
data is allowed (i.e. help)
5. The Error Alert tab allows you to specify the message that appears if an entry is
invalid
Any value, whole number, decimal, list, date, time, text length, custom
Once you have chosen a data type Excel modifies the dialog box so that you can enter
additional information about the chosen type. If for example you choose Whole Number
you will be asked to specify and minimum and maximum value.
In the following example we are going to set up data validation to ensure that a date typed
into column B can only be today’s date or later – e.g. not a past date.
5. In this dialog box we are going to enter a message which will displayed as a
comment each time a cell in column B is selected. This works like a prompt.
6. Click in the title box and type the message that you wish to appear when the cell is
selected. In this example we have used Date Value
7. Click in the Input Message box and type an appropriate message for the user as
above
Next we are going to use the Error Alert box to set up an error message in case the data
does not meet the preset criteria.
8. Click on the Error Alert tab – the following dialog box will appear:
b) To display a warning message that does not prevent entry of invalid data,
select Warning
9. In the Title box type an appropriate title for the Error Message box e.g. Wrong Date
Entered
10. In the Error Message box type a meaningful error message as per the example
above
This function is very using for reducing the margin of error. The operator is
presented with a reason why their data is incorrect. Other examples it can be used
for are as follows:-