Configure data validation
- 1Select the cells to limit: A2:A6.
- 2Data › Data Validation.
- 3Settings: choose what to Allow (List, Whole number, Date, Custom…) and its limits.
- 4Add an Input Message and an Error Alert if the task asks. OK.
Data validation decides what can be typed into a cell: a list to pick from, a number or date range, a text length, or your own TRUE/FALSE formula.
What the MO-211 task asks
Every one of our ten MO-211 practice exams has a validation task, and they vary: “Limit the Route column B4:B27 to the list Valley, Summit, Loop,” or “Validate C4:C19 as whole numbers between 1 and 4, with a Stop error alert whose title is Screen and whose message is Screens are 1-4.”
Our grader reads the rule from the saved workbook: the type, the list or the limits, and the alert's style, title and message when the task gives them. Type them exactly as written.
Some tasks want a Custom formula of your own, a Text Length rule, or a Warning-style alert instead of the default Stop. The alert style is on the Error Alert tab.
Worked examples
Set up the grid below to follow along. Each example starts from it as shown; every result is what Excel showed.
| A | B | C | D | |
|---|---|---|---|---|
| 1 | Room | Guests | Arrives | Code |
| 2 | Rose | 4 | 6-Mar-2026 | K-101 |
| 3 | Tulip | 12 | 9-Mar-2026 | K-102 |
| 4 | Fern | 3 | 12-Mar-2026 | K-101 |
| 5 | ||||
| 6 |
- 1Select A2:A6. Data › Data Validation.
- 2Allow: List. Source: Rose,Tulip,Fern. OK.
The list's items are separated by commas. A Source of =$H$2:$H$4 reads the items from cells instead.
- 1Select B2:B6. Allow: Whole number, between, Minimum 1, Maximum 8. OK.
Whole number refuses decimals. Decimal, with the same limits, would accept 2.5.
- 1Select C2:C6. Allow: Date, between, Start date 1-Jan-2026, End date 31-Dec-2026. OK.
Written with the month's name, the dates mean the same on any PC; Excel stores them as dates.
- 1Select D2:D6. Allow: Custom. Formula: =COUNTIF($D$2:$D$6,D2)=1. OK.
The formula is written for the first cell, D2, and must return TRUE for a valid entry. The $ signs keep the range fixed as it is checked against each cell.
- 1After the Guests rule, select Data › Data Validation › Circle Invalid Data.
A new rule does not check what is already there; Circle Invalid Data shows what breaks it.
- 1Select A2:A6. Data Validation: Allow List, Source Rose,Tulip,Fern. OK.
- 2Open A5's drop-down.
The first example, done in Excel on the same sheet.
Watch it done in Excel
The last example above, recorded in real Excel on the same grid.
Exam traps
Validation only checks what is typed after the rule exists. B3 kept its 12 under a 1-to-8 rule until Circle Invalid Data marked it.
Pasting a cell over a validated one replaces its rule with the pasted cell's: after pasting 20 onto B4, B4 had no rule at all. Paste Values keeps the rule, though not the check.
Whole number refuses 2.5; Decimal accepts it. Read the task for which one it means.
When a task gives an error alert's title and message, or an input message, our grader checks them. They are on the Error Alert and Input Message tabs, not on Settings.
FAQ
Can the list come from cells?
Yes. A Source of =$H$2:$H$4 offers whatever H2:H4 hold. Change H3 from Tulip to Iris, and Tulip stops being valid.
What does Stop do that Warning does not?
The error alert's style decides what happens to an invalid entry. Stop is the default; Warning and Information are the other two. Pick the one the task names.
Does a copied cell take its validation with it?
Yes. Copying a validated cell and pasting it elsewhere copies its rule too.
New to this?
This page covers what the exam asks. For the full how-to, read our guide on dfwexcel.com.
Create a drop-down list — dfwexcel.comTry it under exam conditions
Take a full, timed MO-211 practice exam, upload the workbook you built, and get a score out of 1000 with a per-task breakdown of where the points went. Your first one is free.
No credit card needed.
