📊 Excel Basics #32 – Data Validation
When multiple people enter data into an Excel sheet, incorrect or inconsistent entries can easily create data-quality problems.
For example:
❌ Someone enters "Pending"
❌ Someone enters "pending"
❌ Someone enters "Pendng"
Data Validation helps control what users can enter into a cell.
📌 What is Data Validation?
Data Validation allows you to set rules that restrict or control the type of data entered into a cell.
Go to:
Data → Data Validation
📌 1. Create a Drop-Down List
One of the most common uses of Data Validation is creating a dropdown.
Example:
You want users to select only:
• Pending
• In Progress
• Completed
Steps:
1️⃣ Select the cells.
2️⃣ Go to Data → Data Validation.
3️⃣ Under Allow, select List.
4️⃣ Enter:
Pending,In Progress,Completed
5️⃣ Click OK.
Now users can select a status from a dropdown instead of typing it manually.
📌 2. Restrict Numbers
You can restrict users to entering numbers within a specific range.
Example:
Allow marks only between 0 and 100.
Go to:
Data Validation → Allow → Whole Number
Then set:
between → 0 → 100
If someone enters "150", Excel can reject the entry.
📌 3. Restrict Dates
You can also control which dates users can enter.
Example:
Allow dates only between:
01-Jan-2026 and 31-Dec-2026
This is useful for project trackers, financial reports, and attendance sheets.
📌 4. Restrict Text Length
You can limit the number of characters entered.
Example:
Employee ID must contain a maximum of 10 characters.
Go to:
Data Validation → Allow → Text Length
Then specify the required limit.
📌 5. Create an Input Message
Data Validation can display instructions when a user selects the cell.
Example:
Input Message:
"Select a valid project status from the dropdown."
This helps users understand what they are expected to enter.
📌 6. Create an Error Alert
You can decide what happens when someone enters invalid data.
Excel provides options such as:
Stop → Prevent invalid entry.
Warning → Warn the user but allow them to continue.
Information → Display an informational message.
For important business data, Stop is usually the safest option.
📌 Real-World Example
Imagine a project tracker:
Employee | Status | Priority
Rahul | Completed | High
Priya | In Progress | Medium
Amit | Pending | Low
Instead of allowing users to type anything, create dropdowns for:
Status:
• Pending
• In Progress
• Completed
Priority:
• High
• Medium
• Low
This keeps the dataset consistent and easier to analyze.
📌 Common Mistakes
❌ Allowing users to type values manually when a dropdown would be better.
❌ Not setting an error alert.
❌ Applying validation to only part of the required data range.
❌ Using inconsistent values in the source list.
✅ Best Practices
• Use dropdowns for fixed categories.
• Restrict numbers and dates where appropriate.
• Add helpful input messages.
• Use meaningful error messages.
• Apply validation before distributing the workbook.
• Keep the allowed values standardized.
💡 Remember:
Data Validation doesn't just make Excel look professional.
It helps improve data quality by controlling what users can enter.
For data analysts, this is especially important because clean and consistent input data leads to more reliable analysis.
Double Tap ❤️ For More
When multiple people enter data into an Excel sheet, incorrect or inconsistent entries can easily create data-quality problems.
For example:
❌ Someone enters "Pending"
❌ Someone enters "pending"
❌ Someone enters "Pendng"
Data Validation helps control what users can enter into a cell.
📌 What is Data Validation?
Data Validation allows you to set rules that restrict or control the type of data entered into a cell.
Go to:
Data → Data Validation
📌 1. Create a Drop-Down List
One of the most common uses of Data Validation is creating a dropdown.
Example:
You want users to select only:
• Pending
• In Progress
• Completed
Steps:
1️⃣ Select the cells.
2️⃣ Go to Data → Data Validation.
3️⃣ Under Allow, select List.
4️⃣ Enter:
Pending,In Progress,Completed
5️⃣ Click OK.
Now users can select a status from a dropdown instead of typing it manually.
📌 2. Restrict Numbers
You can restrict users to entering numbers within a specific range.
Example:
Allow marks only between 0 and 100.
Go to:
Data Validation → Allow → Whole Number
Then set:
between → 0 → 100
If someone enters "150", Excel can reject the entry.
📌 3. Restrict Dates
You can also control which dates users can enter.
Example:
Allow dates only between:
01-Jan-2026 and 31-Dec-2026
This is useful for project trackers, financial reports, and attendance sheets.
📌 4. Restrict Text Length
You can limit the number of characters entered.
Example:
Employee ID must contain a maximum of 10 characters.
Go to:
Data Validation → Allow → Text Length
Then specify the required limit.
📌 5. Create an Input Message
Data Validation can display instructions when a user selects the cell.
Example:
Input Message:
"Select a valid project status from the dropdown."
This helps users understand what they are expected to enter.
📌 6. Create an Error Alert
You can decide what happens when someone enters invalid data.
Excel provides options such as:
Stop → Prevent invalid entry.
Warning → Warn the user but allow them to continue.
Information → Display an informational message.
For important business data, Stop is usually the safest option.
📌 Real-World Example
Imagine a project tracker:
Employee | Status | Priority
Rahul | Completed | High
Priya | In Progress | Medium
Amit | Pending | Low
Instead of allowing users to type anything, create dropdowns for:
Status:
• Pending
• In Progress
• Completed
Priority:
• High
• Medium
• Low
This keeps the dataset consistent and easier to analyze.
📌 Common Mistakes
❌ Allowing users to type values manually when a dropdown would be better.
❌ Not setting an error alert.
❌ Applying validation to only part of the required data range.
❌ Using inconsistent values in the source list.
✅ Best Practices
• Use dropdowns for fixed categories.
• Restrict numbers and dates where appropriate.
• Add helpful input messages.
• Use meaningful error messages.
• Apply validation before distributing the workbook.
• Keep the allowed values standardized.
💡 Remember:
Data Validation doesn't just make Excel look professional.
It helps improve data quality by controlling what users can enter.
For data analysts, this is especially important because clean and consistent input data leads to more reliable analysis.
Double Tap ❤️ For More