Data validation is a powerful feature in Google Sheets that helps maintain data integrity by ensuring that users input only valid data. One common use of data validation is to restrict input to whole numbers within a specified range. In this article, we’ll walk you through how to set up data validation in Google Sheets to allow only whole numbers between 1 and 100.

Why Use Data Validation?

Using data validation helps to:

  • Prevent errors by restricting invalid data entry.
  • Ensure consistency across your data set.
  • Make data entry easier and more user-friendly.

Step-by-Step Instructions

Let’s get started with setting up data validation to allow only whole numbers between 1 and 100.

Step 1: Open Your Google Sheet
  1. Open Google Sheets and either create a new sheet or open an existing one where you want to apply data validation.
Step 2: Select the Range of Cells
  1. Click and drag to select the range of cells where you want to restrict input. For example, select cells A1 to A10.
Step 3: Open the Data Validation Menu
  1. With your range selected, go to the top menu and click on Data.
  2. From the drop-down menu, select Data validation.
Step 4: Set Up the Data Validation Criteria
  1. In the Data Validation dialog box, under the Criteria section, select Number.
  2. From the second drop-down menu, select between.
  3. Enter 1 in the first box and 100 in the second box. This sets the allowable range from 1 to 100.
Step 5: Customize the Validation Settings
  1. Optionally, you can check the box for Show validation help text and enter a message such as "Please enter a whole number between 1 and 100". This message will guide users on the acceptable input.
  2. Ensure that Show warning is selected if you want to warn users when they enter invalid data, but still allow it. Select Reject input if you want to prevent users from entering invalid data entirely.
Step 6: Save the Data Validation Rules
  1. Click Save to apply the data validation rules to the selected range.

Data Entry and Examples

Now, when you or anyone else tries to enter data in the selected range, Google Sheets will enforce the rule that only whole numbers between 1 and 100 are allowed.

For instance:

  • Valid Input: Entering 25 in any of the selected cells will be accepted.
  • Invalid Input: Entering 150 or 10.5 will prompt a warning or be rejected, depending on your validation settings.
Example Data

Here’s how your data might look:

A
15
42
78
99
5
-
-

In this example, the cells with dashes are ready for valid whole number entries. If a user tries to enter 200 or 3.14, Google Sheets will prevent it or show a warning.

Conclusion

Data validation is an essential tool for managing and ensuring the accuracy of data in Google Sheets. By restricting input to whole numbers between 1 and 100, you can significantly reduce errors and maintain the integrity of your data. Following these simple steps, you can easily implement data validation in your spreadsheets and improve the overall quality of your data management processes.

By mastering these basic data validation techniques, you are well on your way to creating more reliable and user-friendly Google Sheets documents.

Text and images Copyright © Spreadsheet Templates

Use of this website is under the conditions of our Terms of Service.

Privacy is important and our policy is detailed in our Privacy Policy.

See the Spreadsheet Templates Cookie Policy for our use of cookies and the user options available.