How To Create Error Message Pop-Up Alert When User Input Wrong Data In Excel

Sometimes you may want to verify user input data type or value in excel cell. And excel just provide such a feature for you to customize the cell data validation process. You can define which data type and what data values are valid for one or multiple excel cells. If the data is not valid, you can define the error message which will pop up to the user. This article will show you how to implement it.

1. Create Custom Excel Cell Data Validation Alert Dialog Steps.

  1. Select the cells that you want to apply data validation to.
  2. Click Data —> Data Validation —> Data Validation menu item.
  3. Then it will popup the Data Validation dialog.
  4. In the Data Validation dialog, click the Settings tab. The Allow drop-down list lets you select the cell data type. The Data drop-down list lets you select the data relation. The Minimum and Maximum input box let you input the cell data minimum and maximum‘s value. You can check the Apply these changes to all other cells with the same settings checkbox if you want to apply the settings change to all the cells that have already configured with these validation settings.
  5. The Data Validation dialog Input Message tab lets you define tip notes when you input cell data. You should check the Show input message when cell is selected checkbox, and input the title text ( Cell Data Tips ) in the Title text box, and input the text Input a number which between 1 – 100 in the Input message text box.
  6. If you check the Show input message when cell is selected checkbox, then it will show a yellow tips note beside the cell when you select the cell to input data.
    excel-data-validation-input-message-tab-effect
  7. The Data Validation dialog Error Alert tab allows you to define the alert dialog type, title, and error message when the cell data is invalid. You should check the Show error alert after invalid data is entered checkbox, and select the style ( for example Stop ) from the Style dropdown list, and input the Title and Error message in the related text box.
  8. Below is the resulting picture when you input a number that is invalid, it will show a tip note when you focus on the excel cell, when the entered number is not valid, it will popup an error alert dialog.
    excel-data-validation-input-invalid-cell-data-error-alert

2. How To Find All Excel Cells That Cell Data Is Invalid.

If there is an excel worksheet, and you want to find all the cells that cell data is invalid by some rules, you can follow the below steps.

  1. Select all the cells that you want to validate values or you can press Ctrl + A to select the entire excel worksheet.
  2. Then you should define a cell data validation rule follow section 1.
  3. Click the Data —> Data Validation —> Circle Invalid Data menu item to circle all the invalid cell data in a red circle.
  4. You can click Data —> Data Validation —> Clear Validation Circles menu item to clear all the red validation circles.
0 0 votes
Article Rating
Subscribe
Notify of
guest

This site uses Akismet to reduce spam. Learn how your comment data is processed.

0 Comments
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x