Day 12: Data Validation
5 questions · Excel Interview Preparation
What is data validation in Excel and why is it important?
Data validation restricts what a user can enter into a cell — only specific values, numbers in a range, dates, text length, or items from a list. It prevents bad data from entering your workbook at the source. Important because: downstream formulas, Pivot Tables, and VLOOKUP all break or give wrong results when data is inconsistent (e.g. "North ", "north", and "NORTH" in a region column are three different values to Excel).
How do you create a dropdown list using data validation?
Select the cell(s) → Data → Data Validation → Allow: List → Source: either type values separated by commas ("North,South,East,West") or reference a range on another sheet. For maintainable dropdowns, always reference a range — then adding a new item to the list automatically adds it to all dropdowns. Name the range for even easier referencing.
How do you create a dependent (cascading) dropdown — where the options in one dropdown depend on a selection in another?
This requires INDIRECT function and named ranges. Step 1: create named ranges for each category's options — name the North options range "North", South options range "South", etc. Step 2: in the first dropdown (Region), select the region. Step 3: in the second dropdown (City), set the Source to =INDIRECT(A2) where A2 contains the region selection. INDIRECT converts the text value in A2 to a range reference matching the named range.
What happens if someone pastes data into a cell with data validation?
Pasting data bypasses data validation — the restriction is not enforced on pasted values. This is a known limitation of Excel data validation. To detect invalid data that has been pasted in: Data → Data Validation → Circle Invalid Data — Excel draws a red circle around any cell that does not meet its validation rule. Users then have to manually correct circled cells.
How do you use data validation to restrict numeric input to a specific range?
Data → Data Validation → Allow: Whole Number or Decimal → set the condition (between, greater than, less than, etc.) and the Min/Max values. You can also reference cells for Min/Max to make the limits dynamic. Add an Input Message (shown as a tooltip when the cell is selected) explaining what is expected, and an Error Alert that appears when an invalid entry is attempted — choose Stop to prevent the entry, Warning to allow it with a warning, or Information to just show a message.
Want 1:1 Excel coaching?
Join EVIKA Academy for live Excel training, real projects, and placement support in Delhi NCR.
Book Free Demo →