How to Create Custom Input and Error Messages in Excel?
Last Updated :
22 Mar, 2022
In Excel, you must have seen an error message before filling up any application form, admission form, and many other forms. It asks us specific things to enter like only 7 digit roll numbers or pops-up messages like no duplicate value allowed. All of these restrictions while entering data are known as error messages or custom input because it specifies the type of data to be entered. And it is used to eliminate unwanted values from the data and makes the record easy to use. In this article, we will see how to create input and error messages.
Creating an Error Message
Suppose we have usernames and we want to enter their contact numbers of 10 digits only. Now we create an error message which will show an error message if a user tries to enter more than 10 digits in the PhoneNumber column.
Step 1: Click on the cell where you want to show the error input message. Then go to Data Tab>Data Tools Group>Data Validation i.e click on the Data tab and go to Data Tools and click Data Validation. Data Validation is a feature in Excel that is used by users to control the input cell values be it text, date, or numbers. You have control over the entered data.

Step 2: After clicking on Data Validation a drop-down(as shown below) will appear. Click on Data Validation from the drop-down.
Step 3: A window will open(as shown below). In the Allow column, select Text length. In Data, select equal to and in Length, select 10(because you want only 10 digit contact numbers). If you want to enter a smaller or larger number than 10, then write the required number in the last column. This step is necessary to perform to make sure the text entered in the required cell is equal to 10-digits.
Step 4: Click on Error Alert, check the box that says Show error alert after invalid data is entered (This check box will ensure that the error message will pop-up only when the user entered an invalid value i.e value greater or smaller than a 10-digit), select Stop in Style option(this is used to restrict the user from entering any value other than 10-digit number) then enter the Title and Error message of your own choice and press OK. The title and the error message will be visible to the user only when he/she enters a larger or smaller digit other than 10-digit.
The error message is applied to the cell. To apply the same to all the required cells, simply hold the ‘+’ sign and drag it to the bottom of the required cells.
Note: The Invalid Entry dialogue box is the error message popped up when numbers greater than 10-digits are entered in the Phone Number column. You can use both Input Message and Error Alert at the same time. The screenshot above shows both an Error Message and an Input Message.
Creating a Custom Input Message
Step 1: Click on the cell where you want to show the error input message. Then go to Data Tab>Data Tools Group>Data Validation i.e click on the Data tab and go to Data Tools and click Data Validation. Data Validation is a feature in Excel that is used by users to control the input cell values be it text, date, or numbers. You have control over the entered data.
Step 2: After clicking on Data Validation a drop-down(as shown below) will appear. Click on Data Validation from the drop-down.
Step 3: A window will open(as shown below). In the Allow column, select Text length. In Data, select equal to and in Length, select 10(because you want only 10 digit contact numbers). If you want to enter a smaller or larger number than 10, then write the required number in the last column. This step is necessary to perform to make sure the text entered in the required cell is equal to 10-digits.
Step 4: After settings click on Input Message, check on the first option, and then write the message that you want to show the user. Then click OK. The title and the input message will be visible to the user when the user selects the required cell.
You Input Message will be seen as you hover over the cell.
The output here shows the input message that we have written. The input message will be seen as soon as the user selects the required cell.
Similar Reads
How to Create Custom Charts in Excel?
The instructional exercise makes sense of the Excel outlines fundamentals and gives the point-by-point direction on the most proficient method to make a chart in Excel. Diagrams assist you with imagining your information in a manner that makes a most extreme effect on your crowd. Figure out how to m
2 min read
How to Create a Custom Date Format in Excel?
Date formatting is very important when you prepare any set of data, then there are different types of formatting used for different categories, which are different from our normal formatting which is dd/mm/yyyy. When you enter any date in MS-Excel then excel considers it as the default format of dat
3 min read
How to Create a Drop-Down List in Excel: 2 Easy Methods
How to Build Drop Down Menu in Excel: Quick StepsOpen MS Excel Spreadsheet >> Enter List Items Select Cell >> Go to Data Validation Choose List Option Set the Source >>Click OKHave you ever typed the same data repeatedly in Excel, only to make typos or inconsistencies? A drop-down
9 min read
How to Calculate Mean Absolute Error in Excel?
Mean absolute error is the measure of error between the observed and the expected values in a given data set. Where, O stands for Observed values,E stands for Expected values,n stands for total no. of observations. Now let us understand it with the help of an example. Example: Follow the below steps
1 min read
How to Calculate Mean Squared Error in Excel?
Mean Squared Error is defined as the mean of the square of the difference between the actual values and the expected values. Where, O = Observed value,E = Expected Value,n = No. of observationsExample: Follow the below steps to evaluate the MSE in Excel: Step 1: Suppose we are given the data in form
1 min read
How to Automatically Insert Date and Timestamp in Excel?
The Date and Timestamp is a type of data type that determines the date and time of a particular region. It contains some characters along with some encoded data. This format may vary from language to language. Keeping track of date and time helps in managing records of our work as well as segregate
4 min read
How To Create Interactive Charts in Excel?
In MS Excel, we can draw various charts, but among them today, we will see the interactive chart. By name, we can analyze that the chart, which is made up of interactive features, is known as an interactive chart. In general, this chart makes the representation in a better and more user-friendly way
9 min read
How to Make a Column Chart in Excel
Column Charts provide advanced options that are not available with some other chart types such as trendlines and adding a secondary axis. This tutorial will walk you through the step-by-step process of creating a column chart in Microsoft Excel. Column charts are used for making comparisons over tim
7 min read
How to Add Error Bars in Excel
Mastering the art of adding error bars in Excel is essential for presenting data accurately and comprehensively in your spreadsheets. Excel Error bars visually represent potential error or uncertainty in data points, providing valuable insights into the variability of your results. If you're analyzi
7 min read
How to Create a Dependent Drop Down List in Excel
Dependent Down Lists allow you to validate the data and make the data entry and data filtering very smooth and time-saving. Dependent Down Lists increase the chances of fewer errors in one's worksheet. The prerequisites for learning Dependent Drop Down List are Create from Selection and Drop Down Li
9 min read