Maintenance Notification: We are upgrading our servers today so you may experience intermediate outages. Thank you for your patience.
Format and validate data
MO-211

Configure data validation

  1. 1Select the cells to limit: A2:A6.
  2. 2Data › Data Validation.
  3. 3Settings: choose what to Allow (List, Whole number, Date, Custom…) and its limits.
  4. 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.

Bookings (A5:D6 are empty, for new entries)
ABCD
1RoomGuestsArrivesCode
2Rose46-Mar-2026K-101
3Tulip129-Mar-2026K-102
4Fern312-Mar-2026K-101
5
6
A drop-down list
Do this
  1. 1Select A2:A6. Data › Data Validation.
  2. 2Allow: List. Source: Rose,Tulip,Fern. OK.
Excel showsA2:A6 offer Rose, Tulip and Fern; Lily is not a valid entry

The list's items are separated by commas. A Source of =$H$2:$H$4 reads the items from cells instead.

Whole numbers in a range
Do this
  1. 1Select B2:B6. Allow: Whole number, between, Minimum 1, Maximum 8. OK.
Excel shows4 is valid; 2.5 and 12 are not

Whole number refuses decimals. Decimal, with the same limits, would accept 2.5.

Dates in one year
Do this
  1. 1Select C2:C6. Allow: Date, between, Start date 1-Jan-2026, End date 31-Dec-2026. OK.
Excel shows6-Mar-2026 is valid; a date in December 2025 is not

Written with the month's name, the dates mean the same on any PC; Excel stores them as dates.

A custom formula: no repeats
Do this
  1. 1Select D2:D6. Allow: Custom. Formula: =COUNTIF($D$2:$D$6,D2)=1. OK.
Excel showsK-102 is valid; K-101, which appears twice, is not

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.

Data already in the cells
Do this
  1. 1After the Guests rule, select Data › Data Validation › Circle Invalid Data.
Excel showsB3 (12) is circled

A new rule does not check what is already there; Circle Invalid Data shows what breaks it.

In the video
Do this
  1. 1Select A2:A6. Data Validation: Allow List, Source Rose,Tulip,Fern. OK.
  2. 2Open A5's drop-down.
Excel showsA5 offers Rose, Tulip and Fern

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

Expecting the rule to fix old data

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 over a validated cell

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 for a decimal task, or the other way

Whole number refuses 2.5; Decimal accepts it. Read the task for which one it means.

Leaving out the alert text

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.com

Try 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.