Create an Input Message (Data Validation) in Excel & Google Sheets

Written by

Editorial Team

Reviewed by

Laura Tsitlidze

Last updated on April 30, 2022

In this tutorial, you will learn how to create an input message using data validation settings in Excel and Google Sheets.

 

input message data validation 4a

 

Create an Input Message

In Excel, you can create an input message using Data Validation to validate users’ input in a cell. This can be useful for restricting the user’s entry to only numbers, characters, or some other criteria. Let’s use the following data table to demonstrate how to create data validation rules and input messages.

 

input message initial data 2

 

In the table, all data is entered except Sales amount, which needs to be entered by a user. When Sales amount is entered, Total Sales is calculated as the product of Sales amount and Price. Therefore, only numeric values should be allowed in Sales amount (Column E). Here are the steps to follow:

  1. First, select the cell where you want to create an input message (e.g., E3). Then, in the Ribbon, go to Data > Data Validation and click on Data Validation…

 

create data validation excel 2

 

  1. In the Data Validation screen, go to the Input Message tab. Here, enter the Title of the input message, and the Input Message text.

 

input message data validation 1a

 

  1. Next, go to the Settings tab. In the Allow drop-down list, choose Whole number to allow only whole numbers to be entered. (Other options include Decimal, Text length, List, Date, and Time.)
  1. Set Minimum and Maximum limits. In this case, use 1–1,000,000. (All Sales values must be whole numbers no greater than 1 million.) Click OK.

 

input message data validation 2a

 

  1. Finally, go to the Error Alert tab and set the Style. In this case, choose Stop, which means that Excel won’t allow anything other than whole numbers to be entered.

Other options are…

  • Warning. If invalid data is entered, Excel will raise a warning message and ask if you want to enter that data.
  • Information. If invalid data is entered, only the information message is displayed, and entry is allowed.
  1. Now, on the right side, enter the Title of the message and the Error message text.

 

input message data validation 3a

 

Now, clicking on cell E3 gives you an input message (Enter Sales Amount), which you defined in Data Validation. If you enter the number 5 here, the data validation rule is met and the corresponding Total Sales value is calculated in cell G3.

 

input message data validation 4a

 

Let’s try to enter some text in cell E3 instead of a number. In this case, an error message appears, and Data Validation will reject the input unless you enter a whole number.

 

data validation input message error 2

 

Copy the Input Message to the Entire Column

Now, copy this data validation to all cells in the Sales amount column (E3:E16).

  1. First, position the cursor in the bottom right corner of cell E3 until the fill handle appears.

 

expand data validation 1a

 

  1. Now click and hold the fill handle, and drag it down to cell E16.

 

expand data validation 2a

 

The data validation settings are copied from cell E3 to the range E3:E16; if you select any cell in this range, we’ll get an input message like the one in cell E3.

Create an Input Message in Google Sheets

We’ll use the same example to explain how to create an input message using data validation in Google Sheets.

  1. First, select the cell where you want to create an input message (E3). Then in the Menu, select the Data tab and choose Data Validation.

 

input message google sheets 1

 

  1. In the Data validation screen, first choose Number as the Criteria and set limits (between 1 and 1 million).
  2. Choose if you want to Show a warning or Reject the input.
  3. Finally, you have an option to Show validation help text and enter your input message text. Then press Save.

 

input message google sheets 2a

 

As a result, an input message is created in cell E3 and works the same as in Excel. You can copy this data validation down the column following the instructions for Excel.

AI Formula Generator

Try for Free

See all How-To Articles