Skip to content
Free Excel Tutorials
  • Home
  • Excel For Beginners
  • Excel Intermediate
  • Advanced Excel For Experts

Data Analysis

  • How to Use Solver Tool in Excel
  • Everything about Charts in Excel
  • How to calculate average last N values in a table in Excel
  • How to combine 2 or more chart types in a single chart in Excel
  • Data Series in Excel

References

  • How to use Excel INDIRECT Function
  • Find Closest Match in Excel Using INDEX, MATCH, ABS and MIN functions
  • How to calculate two-way lookup VLOOKUP in Excel Table
  • Count rows with at least n matching values
  • How to use Excel TRANSPOSE Function

Data Validations

  • Excel Data validation date in next 30 days
  • Excel Data validation whole percentage only
  • Excel Data validation only dates between
  • Excel Data validation date in specific year
  • Excel Data validation no punctuation

Prevent invalid data entering in specific cells

by

— Set criteria in your worksheet to accept specific data.

Use data validation in Excel to make sure that users enter only values that meet a set criteria into a cell.

Steps to navigate to Data Validation icon in Excel

Data Tab → Data Tools group → Data Validation

  • Data Validation Example
  • Create Data Validation Rule
  • Input Message
  • Error Alert
  • Data Validation Result

Data Validation Example

In this example, we restrict users to enter a whole number between 0 and 10.

Create Data Validation Rule

To create the data validation rule, execute the following steps.

1. Select cell C2.

2. On the Data tab, in the Data Tools group, click Data Validation.

click-data-validation

On the Settings tab:

3. In the Allow list, click Whole number.

4. In the Data list, click between.

5. Enter the Minimum and Maximum values.

validation-criteria

Input Message

Input messages appear when the user selects the cell and tell the user what to enter.

On the Input Message tab:

1. Check ‘Show input message when cell is selected’.

2. Enter a title.

3. Enter an input message.

enter-input-message

Error Alert

If users ignore the input message and enter a number that is not valid, you can show them an error alert.

On the Error Alert tab:

1. Check ‘Show error alert after invalid data is entered’.

2. Enter a title.

3. Enter an error message.

enter-error-message

4. Click OK.

Data Validation Result

1. Select cell C2.

input-message

2. Try to enter a number higher than 10.

Result:

error-alert

Note: to remove data validation from a cell, select the cell, on the Data tab, in the Data Tools group, click Data Validation, and then click Clear All. You can use Excel’s Go To Special feature to quickly select all cells with data validation.

Post navigation

Previous Post:

TRUE function: Description, Usage, Syntax, Examples and Explanation

Next Post:

Excel Pie Chart

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Learn Basic Excel

Ribbon
Workbook
Worksheets
Format Cells
Find & Select
Sort & Filter
Templates
Print
Share
Protect
Keyboard Shortcuts

Categories

  • Charts
  • Data Analysis
  • Data Validation
  • Excel Functions
    • Cube Functions
    • Database Functions
    • Date and Time Functions
    • Engineering Functions
    • Financial Functions
    • Information Functions
    • Logical Functions
    • Lookup and Reference Functions
    • Math and Trig Functions
    • Statistical Functions
    • Text Functions
    • Web Functions
  • Excel VBA
  • Excel Video Tutorials
  • Formatting
  • Grouping
  • Others

Logical Functions

  • IF with boolean logic in Excel
  • Not Equal To ‘<>‘ operator in Excel
  • AND function: Description, Usage, Syntax, Examples and Explanation
  • Excel If, Nested If, And/Or Criteria Examples
  • IF with wildcards in Excel

Date Time

  • Get days, hours, and minutes between dates in Excel
  • WORKDAY.INTL function: Description, Usage, Syntax, Examples and Explanation
  • Roll back weekday to Friday base on a particular date in Excel
  • Calculate retirement date in Excel
  • WORKDAY function: Description, Usage, Syntax, Examples and Explanation

Grouping

  • Group numbers at uneven intervals in Excel
  • How to randomly assign data to groups in Excel
  • Group times into unequal buckets in Excel
  • Categorize text with keywords in Excel
  • Group times into 3 hour buckets in Excel

General

  • Currency vs Accounting Format in Excel
  • How to calculate decrease by percentage in Excel
  • How to test a range for numbers in Excel
  • Count cells less than in Excel
  • Basic error trapping example in Excel
© 2026 xlsoffice . All Right Reserved. | Teal Smiles | Abbreviations And Their Meaning