{"id":7088,"date":"2021-03-26T13:15:00","date_gmt":"2021-03-26T12:15:00","guid":{"rendered":"https:\/\/blog.sheetgo.com\/?p=7088"},"modified":"2021-03-26T13:15:00","modified_gmt":"2021-03-26T12:15:00","slug":"validate-input-values-in-google-sheets","status":"publish","type":"post","link":"https:\/\/www.sheetgo.com\/pt\/blog\/google-sheets-features\/validate-input-values-in-google-sheets\/","title":{"rendered":"Como fa\u00e7o para validar valores de entrada no Planilhas Google?"},"content":{"rendered":"<p>[et_pb_section fb_built=&#8221;1&#8243; admin_label=&#8221;section&#8221; module_class=&#8221;sheetgo-post&#8221; _builder_version=&#8221;4.16&#8243; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;][et_pb_row admin_label=&#8221;row&#8221; _builder_version=&#8221;4.16&#8243; background_size=&#8221;initial&#8221; background_position=&#8221;top_left&#8221; background_repeat=&#8221;repeat&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;][et_pb_column type=&#8221;4_4&#8243; _builder_version=&#8221;4.16&#8243; custom_padding=&#8221;|||&#8221; global_colors_info=&#8221;{}&#8221; custom_padding__hover=&#8221;|||&#8221; theme_builder_area=&#8221;post_content&#8221;][et_pb_text _builder_version=&#8221;4.27.2&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;]<\/p>\n<h3>What is data validation?<\/h3>\n<p><a href=\"https:\/\/www.sheetgo.com\/blog\/google-sheets-features\/data-validation-google-sheets\/ \">Data validation<\/a> is a system that makes sure values in your spreadsheet conform to expectations, and thus validate input values in Google Sheets. It works like a gate, only allowing cells to be filled with data that match a defined rule.<\/p>\n<p>Simply put, data validation works by giving a range of expected values to a cell. If the value entered is not in the correct format, or outside of the expected range, Sheets will show an error to the user that says their input is invalid. You can also reject invalid inputs all together.<\/p>\n<p>The other thing data validation in <a href=\"https:\/\/www.google.com\/sheets\/about\/\" target=\"_blank\" rel=\"noopener\">Google Sheets<\/a> can do is create drop-downs within a cell. A great time saver, because it means that you don\u2019t have to memorize long lists like SKU numbers or how to spell all the names in your spreadsheet.<\/p>\n<p>[\/et_pb_text][et_pb_text admin_label=&#8221;Connections T &#8211; Automate between spreadsheets &#8211; Horizontal&#8221; module_class=&#8221;sheetgo-post-no-shadow-img md2-contained-button-light vertical-banner-container&#8221; _builder_version=&#8221;4.27.2&#8243; _module_preset=&#8221;default&#8221; background_color=&#8221;#f2f7ff&#8221; max_width=&#8221;700px&#8221; module_alignment=&#8221;center&#8221; max_height=&#8221;300px&#8221; custom_margin=&#8221;20px|0px|20px|0px|true|true&#8221; custom_padding=&#8221;25px|25px|25px|25px|true|true&#8221; sticky_limit_bottom=&#8221;section&#8221; border_radii=&#8221;on|20px|20px|20px|20px&#8221; border_width_all=&#8221;1px&#8221; border_color_all=&#8221;#d9e7ff&#8221; global_module=&#8221;50460&#8243; saved_tabs=&#8221;all&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;]<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/static.sheetgo.com\/wp-content\/uploads\/2024\/09\/run-automatically-connect-sheet-icons.webp\" width=\"250\" height=\"168\" alt=\"\" \/><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/static.sheetgo.com\/wp-content\/uploads\/2024\/09\/Recommended-for-Google-Workspace-badge.webp\" width=\"150\" height=\"180\" alt=\"39\" \/><\/p>\n<p><span style=\"font-size: 22px; font-weight: 600;\">Automate data transfers between spreadsheets<br \/><\/span><\/p>\n<p><a href=\"https:\/\/www.sheetgo.com\/connections\/\" target=\"_blank\" rel=\"noopener\">Find out how<\/a><\/p>\n<p>[\/et_pb_text][et_pb_text _builder_version=&#8221;4.16&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;]<\/p>\n<h3>Why validate input values in Google Sheets?<\/h3>\n<p>Google Sheets is built for teams. Collaboration is one of G Suite&#8217;s strong suits and differentiators when compared to similar softwares. Because it was built for the web from conception, it easily handles multiple users in a single spreadsheet, whether or not you\u2019re working at the same time.<\/p>\n<p>However, many users working on the same spreadsheet can more easily cause errors. When you don\u2019t know who made an error or why they made it, your interpretation of the data is compromised. Errant data can also break complex formulas that take time and resources to fix. Moreover, if you enter wrong data that erases important information, you might not be able to recover it.<\/p>\n<p>On the other hand, when everything works correctly, spreadsheets are a wonderful tool. For example, I have this monthly sales data for a wholesale company. On the side, I made a little chart that tracks total sales for each sales agent. <a href=\"https:\/\/docs.google.com\/spreadsheets\/u\/0\/d\/1EkgBmp6A82mQ-92H1bdjU9lUIuJ1R_XVHrlZlX0n7vo\/copy\" target=\"_blank\" rel=\"noopener\">Make a copy of the data here <\/a> to follow along.<\/p>\n<p>[\/et_pb_text][et_pb_image src=&#8221;https:\/\/static.sheetgo.com\/wp-content\/uploads\/2021\/03\/1-Overview.png&#8221; alt=&#8221;validate input values in Google Sheets 1&#8243; title_text=&#8221;1 Overview&#8221; align=&#8221;center&#8221; _builder_version=&#8221;4.16&#8243; _module_preset=&#8221;default&#8221; width=&#8221;640px&#8221; max_width=&#8221;640px&#8221; height=&#8221;440px&#8221; max_height=&#8221;440px&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;][\/et_pb_image][et_pb_text _builder_version=&#8221;4.16&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;]<\/p>\n<p>The more you do with your spreadsheets, the more formulas you use, the more likely they are to break when you enter data incorrectly. Formulas are finicky. In large spreadsheets, one missing or mistyped cell can create a string of errors that take valuable time to trace back to the source.<\/p>\n<p>Take a look at the example below. I mistyped an SKU number for one of Cathy\u2019s sales. Not only does it generate errors for that sale, it breaks her total sales chart too.<\/p>\n<p>[\/et_pb_text][et_pb_image src=&#8221;https:\/\/static.sheetgo.com\/wp-content\/uploads\/2021\/03\/2-SKU-Error.png&#8221; alt=&#8221;validate input values in Google Sheets 2&#8243; title_text=&#8221;2 SKU Error&#8221; align=&#8221;center&#8221; _builder_version=&#8221;4.16&#8243; _module_preset=&#8221;default&#8221; width=&#8221;640px&#8221; max_width=&#8221;640px&#8221; height=&#8221;440px&#8221; max_height=&#8221;440px&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;][\/et_pb_image][et_pb_text _builder_version=&#8221;4.16&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;]<\/p>\n<p>Formatting isn\u2019t always clear, and it&#8217;s difficult to spot errors like a single mistyped digit. Instead of remembering and manually typing each time a sales team member makes a sale, let&#8217;s create a dropdown list with all SKU numbers for our products.<\/p>\n<p>That\u2019s where Data validation comes in. Keep reading to find out how we solve this problem<\/p>\n<p>[\/et_pb_text][et_pb_text _builder_version=&#8221;4.16&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;]<\/p>\n<h3>How to access the Data validation menu<\/h3>\n<p>Find the Data validation menu either in the <b>Data<\/b> tab in the menu bar, or right-click on the range you want to validate and select Data validation from there.<\/p>\n<p>[\/et_pb_text][et_pb_image src=&#8221;https:\/\/static.sheetgo.com\/wp-content\/uploads\/2021\/03\/3-Data-Validation-in-Menu.png&#8221; alt=&#8221;validate input values in Google Sheets 3&#8243; title_text=&#8221;3 Data Validation in Menu&#8221; align=&#8221;center&#8221; _builder_version=&#8221;4.16&#8243; _module_preset=&#8221;default&#8221; width=&#8221;640px&#8221; max_width=&#8221;640px&#8221; height=&#8221;440px&#8221; max_height=&#8221;440px&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;][\/et_pb_image][et_pb_text _builder_version=&#8221;4.16&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;]<\/p>\n<p>Once you\u2019ve opened the menu, you\u2019ll see the different values you need to supply in order to have a working data validation for your spreadsheet.<\/p>\n<p>[\/et_pb_text][et_pb_text _builder_version=&#8221;4.16&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;]<\/p>\n<h3>Data validation menu options<\/h3>\n<p>Take a look at the screenshot below. Here is how we filled in the various boxes for our sample data.<\/p>\n<p>Underneath the image, I explain each section and what it means for our set of data.<\/p>\n<p>[\/et_pb_text][et_pb_image src=&#8221;https:\/\/static.sheetgo.com\/wp-content\/uploads\/2021\/03\/4-Data-Validation-Menu.png&#8221; alt=&#8221;validate input values in Google Sheets 4&#8243; title_text=&#8221;4 Data Validation Menu&#8221; align=&#8221;center&#8221; _builder_version=&#8221;4.16&#8243; _module_preset=&#8221;default&#8221; width=&#8221;640px&#8221; max_width=&#8221;640px&#8221; height=&#8221;440px&#8221; max_height=&#8221;440px&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;][\/et_pb_image][et_pb_text _builder_version=&#8221;4.16&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;]<\/p>\n<h4>Cell range<\/h4>\n<p>This is the range to which you want the validation to apply. This automatically fills with the range you had selected when you opened the data validation menu.<\/p>\n<p>If you don&#8217;t have any range selected, type it here directly, or click the Select Data Range button on the right of the Cell Range dialogue box. Because we had our column with SKU data selected when we opened the menu, it auto-populated.<\/p>\n<p>[\/et_pb_text][et_pb_text _builder_version=&#8221;4.16&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;]<\/p>\n<h4>Criteria<\/h4>\n<p>The criteria value defines both the type of range and size of the range of valid data. We\u2019ll go over each option in detail below.<\/p>\n<p>For now, because we have our unique SKU numbers and their corresponding prices listed on our Prices tab, we\u2019ll go with the <b>List from a Range<\/b> option and use the select data range button to pick our SKU numbers from the Prices page. It should generate =Prices!$A$2:$A$11 when you click OK.<\/p>\n<p>[\/et_pb_text][et_pb_text _builder_version=&#8221;4.16&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;]<\/p>\n<h4>Show warning or reject input<\/h4>\n<p>This option is a switch that lets you either reject a value that falls outside of the valid range, or let the invalid data be kept and just show a warning that the data is invalid.<\/p>\n<p>Opting for rejecting invalid inputs shows the validation help text in a popup. Opting to show a warning will show the help text as a dialogue box when the cell is selected. We\u2019ll go with <b>Show Warning<\/b> for our example.<\/p>\n<p>[\/et_pb_text][et_pb_text _builder_version=&#8221;4.16&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;]<\/p>\n<h4>Show validation help text<\/h4>\n<p>This is the message displayed when a cell with a data validation parameter is selected. You can customize the message to say whatever you want. This is especially helpful when you\u2019re passing the spreadsheet off to someone who is less familiar with Google Sheets.<\/p>\n<p>This way, you remind them what value goes where without wasting time training and reminding others.<\/p>\n<p>In our example, we want to show validation help. And instead of it saying Click and enter a number from the range, we want it to say &#8220;Click and enter a valid SKU&#8221; so our users know which range we\u2019re talking about.\n<\/p>\n<p>[\/et_pb_text][et_pb_image src=&#8221;https:\/\/static.sheetgo.com\/wp-content\/uploads\/2021\/03\/5-Validation-Help-Text.png&#8221; alt=&#8221;validate input values in Google Sheets 5&#8243; title_text=&#8221;5 Validation Help Text&#8221; align=&#8221;center&#8221; _builder_version=&#8221;4.16&#8243; _module_preset=&#8221;default&#8221; width=&#8221;640px&#8221; max_width=&#8221;640px&#8221; height=&#8221;440px&#8221; max_height=&#8221;440px&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;][\/et_pb_image][et_pb_text _builder_version=&#8221;4.16&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;]<\/p>\n<h3>Data criteria types and functionality<\/h3>\n<p>Each of the options in the criteria menu has a unique use case. All of these options can be valuable depending on the situation.<\/p>\n<p>Here is how each functions and when you might want to use them.<\/p>\n<p>[\/et_pb_text][et_pb_text _builder_version=&#8221;4.16&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;]<\/p>\n<h4>1. List from a range<\/h4>\n<p>This is the criteria we chose in the previous example. It suits best for a set of values that you have elsewhere in your spreadsheet.<\/p>\n<p>You can also select a range that extends past your list of values. Whenever you then add a new item to your list, it automatically adds up to the dropdown of your data validated range.<\/p>\n<p>[\/et_pb_text][et_pb_text _builder_version=&#8221;4.16&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;]<\/p>\n<h4>2. List of items<\/h4>\n<p>Like a list from a range, a list of items creates a dropdown menu for your cells. Instead of having to have the list of items you want in your dropdown somewhere else on your spreadsheet, you can list them out right in the criteria option box from the data validation menu.<\/p>\n<p>[\/et_pb_text][et_pb_text _builder_version=&#8221;4.16&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;]<\/p>\n<h4>3. Number<\/h4>\n<p>A number range lets you set limits on the number values entered in the specified range.<\/p>\n<p>You can use all the traditional comparatives from mathematics (less than, less than or equal to, not equal to, etc.). You can also use between and not between to require or exclude values that fall in a range of numbers.<\/p>\n<p>[\/et_pb_text][et_pb_text _builder_version=&#8221;4.27.2&#8243; _module_preset=&#8221;default&#8221; hover_enabled=&#8221;0&#8243; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221; sticky_enabled=&#8221;0&#8243;]<\/p>\n<h4>4. Text<\/h4>\n<p>Text is a uniquely powerful option in the data validation criteria list. With it, you validate strings that contain or don\u2019t contain certain characters or strings of characters.<\/p>\n<p>It also includes rules that require inputs to be valid URLs or email, something that could be useful if you\u2019re using a <a href=\"https:\/\/www.sheetgo.com\/blog\/google-sheets-features\/top-10-google-sheets-add-ons-workflows\/ \" target=\"_blank\" rel=\"noopener\">Google Sheets add-on like YAMM.<\/a><\/p>\n<p>[\/et_pb_text][et_pb_text _builder_version=&#8221;4.16&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;]<\/p>\n<h4>5. Date<\/h4>\n<p>The date value criteria does more than you might expect.<\/p>\n<p>Not only can you require values to be entered as a date, but you can also require values to be: before, after, between or not between specified dates. <\/p>\n<p>[\/et_pb_text][et_pb_text _builder_version=&#8221;4.16&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;]<\/p>\n<h4>6. Checkbox<\/h4>\n<p>The checkbox criteria is essentially the regular checkbox cell format, found in the Insert menu dropdown.<\/p>\n<p>The only difference is that you can alter the checked and unchecked values for cells. By default, they\u2019re set to true and false however.<\/p>\n<p>[\/et_pb_text][et_pb_text _builder_version=&#8221;4.16&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;]<\/p>\n<h4>7. Custom formula is<\/h4>\n<p>Last but not least, we have the Custom formula is option. This is the most powerful of the options because it allows you to write a custom formula.<\/p>\n<p>For example, imagine our wholesale company has a minimum order number of 500 for their products which cost less than $10.00 per unit. We want to check that either the PPU was over $10.00 or the number of units ordered was over 500.<\/p>\n<p><p>The formula for that is =OR($G2>10,$F2>500). We want to only warn, not reject, invalid data because it is possible that a salesperson made the mistake of under selling on a low-cost product.<\/p>\n<p>We also include the help text of \u201cMinimum Order Size of 500 on products under $10.00 per unit,\u201d so that it\u2019s clear why the value was not validated.<\/p>\n<p>[\/et_pb_text][et_pb_image src=&#8221;https:\/\/static.sheetgo.com\/wp-content\/uploads\/2021\/03\/6-Custom-Formula.png&#8221; alt=&#8221;validate input values in Google Sheets 6&#8243; title_text=&#8221;6 Custom Formula&#8221; align=&#8221;center&#8221; _builder_version=&#8221;4.16&#8243; _module_preset=&#8221;default&#8221; width=&#8221;640px&#8221; max_width=&#8221;640px&#8221; height=&#8221;440px&#8221; max_height=&#8221;440px&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;][\/et_pb_image][et_pb_text _builder_version=&#8221;4.16&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;]<\/p>\n<p>When we apply that validation to the Order size column, we see that one sale wasn\u2019t validated.<\/p>\n<p>Next, we want to either double-check that the information entered was correct, or fix the mistake if we know the correct values.<\/p>\n<p>[\/et_pb_text][et_pb_image src=&#8221;https:\/\/static.sheetgo.com\/wp-content\/uploads\/2021\/03\/7-Invalid.png&#8221; alt=&#8221;validate input values in Google Sheets 7&#8243; title_text=&#8221;7 Invalid&#8221; align=&#8221;center&#8221; _builder_version=&#8221;4.16&#8243; _module_preset=&#8221;default&#8221; width=&#8221;640px&#8221; max_width=&#8221;640px&#8221; height=&#8221;440px&#8221; max_height=&#8221;440px&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;][\/et_pb_image][et_pb_text _builder_version=&#8221;4.16&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;]<\/p>\n<h3>Wrapping it up<\/h3>\n<p>Now we\u2019re able to collaborate with our sales team and they are able to manage their data without accidentally breaking the spreadsheet.<\/p>\n<p>You can also protect certain cells or entire pages in Google Sheets. This solution only works if you want to make sure that only certain people can alter certain cells. Read through <a href=\"https:\/\/www.sheetgo.com\/blog\/google-sheets-features\/protect-cells-or-pages-in-google-sheets\/\" target=\"_blank\" rel=\"noopener\">this blog post<\/a> to find out how.<\/p>\n<p>[\/et_pb_text][et_pb_text _builder_version=&#8221;4.22.2&#8243; background_color=&#8221;#f9f9ff&#8221; custom_margin=&#8221;40px||40px||false|false&#8221; custom_padding=&#8221;15px|25px|15px|25px|true|true&#8221; border_width_left=&#8221;3px&#8221; border_color_left=&#8221;#808e95&#8243; global_module=&#8221;26540&#8243; saved_tabs=&#8221;all&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;]<\/p>\n<p><em><strong>Editor\u2019s note<\/strong>: This is a revised version of a previous post that has been updated for accuracy and comprehensiveness.<\/em><\/p>\n<p>[\/et_pb_text][\/et_pb_column][\/et_pb_row][\/et_pb_section]<\/p>\n","protected":false},"excerpt":{"rendered":"<p>What is data validation? Data validation is a system that makes sure values in your spreadsheet conform to expectations, and thus validate input values in Google Sheets. It works like a gate, only allowing cells to be filled with data that match a defined rule. Simply put, data validation works by giving a range of [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":33334,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"_et_pb_use_builder":"on","_et_pb_old_content":"Google Sheets is built around the central fabric called collaboration. Therefore, it is a commonplace that multiple people work on a single Google Sheets file. And when doing so, we may have to restrict people from entering unwanted values in cells, accidentally or otherwise. In this article we explain how to validate input values in Google Sheets before they are entered into the cells.\n<h3>Why validate input values in Google Sheets?<\/h3>\nLet us consider an example to understand the usefulness of validating the input values. Below is a snapshot of a simple money returns calculator. The formula in cell B7 considers numeric inputs from cells B3 through B5 and accordingly produces output in the cell B7.\n\n<strong>Example<\/strong>&nbsp;<img class=\"aligncenter size-full wp-image-7109\" src=\"https:\/\/static.sheetgo.com\/wp-content\/uploads\/2017\/11\/validateinput1.png\" alt=\"Validate input values in Google Sheets - Illustration 1\" width=\"619\" height=\"367\">\n\nSo far so good. What if somebody inadvertently tries to input text values into any of these input cells? Let's find out.\n\n<strong>Example<\/strong>&nbsp;<img class=\"aligncenter size-full wp-image-7110\" src=\"https:\/\/static.sheetgo.com\/wp-content\/uploads\/2017\/11\/validateinput2.png\" alt=\"Validate input values in Google Sheets - Illustration 2\" width=\"619\" height=\"494\">\n\nThe formula just returned an error as it cannot process text values for calculations. This is where the data validation can help us restrict the type of input(s) that goes into any particular cell(s).&nbsp;Let us try and apply the validation to cells B3 through B5, so that we will only be able to enter numeric values. To do so, we select the corresponding cells and navigate to <strong>Data &gt; Data validation<\/strong>.\n\n<strong>Example<\/strong>&nbsp;<img class=\"aligncenter size-full wp-image-7111\" src=\"https:\/\/static.sheetgo.com\/wp-content\/uploads\/2017\/11\/validinput3.png\" alt=\"Validate input values in Google Sheets - Illustration 3\" width=\"720\" height=\"536\">\n\nWe configure the following criteria in the <strong>Data validation<\/strong> window pane that pops up, and click on the Save button.\n\n<strong>Example<\/strong> <img class=\"aligncenter size-full wp-image-7112\" src=\"https:\/\/static.sheetgo.com\/wp-content\/uploads\/2017\/11\/validateinput4.png\" alt=\"Validate input values in Google Sheets - Illustration 4\" width=\"787\" height=\"566\">\n\nNow, let us try inputting a non-numeric value in one of the cells we applied data validation for.\n\n<strong>Example<\/strong> <img class=\"aligncenter size-full wp-image-7113\" src=\"https:\/\/static.sheetgo.com\/wp-content\/uploads\/2017\/11\/validateinput5.png\" alt=\"Validate input values in Google Sheets - Illustration 5\" width=\"787\" height=\"566\">\n<h4>List of values<\/h4>\nThis Data validation functionality offers multiple ways to validate input values in Google Sheets. We could enforce only text or date values within cells. Or, we can even configure such that it allow only a list of values within the cells. We can accomplish the latter with the following configuration.\n\n<strong>Example<\/strong>&nbsp;<img class=\"aligncenter size-full wp-image-7114\" src=\"https:\/\/static.sheetgo.com\/wp-content\/uploads\/2017\/11\/validateinput6.png\" alt=\"Validate input values in Google Sheets - Illustration 6\" width=\"787\" height=\"611\">\n\nNow, the cell B1 will now have a drop down that lists the values we've entered as part of the criteria. If we try and enter any other value, it rejects the input with an error. Please note that if the list of values is huge, we can also fetch them from a range of cells with predefined values.\n\n<strong>Example<\/strong> <img class=\"aligncenter size-full wp-image-7116\" src=\"https:\/\/static.sheetgo.com\/wp-content\/uploads\/2017\/11\/validatedinput7.png\" alt=\"Validate input values in Google Sheets - Illustration 7\" width=\"681\" height=\"426\">\n<h4>Custom data validation<\/h4>\nHere's&nbsp;a demonstration that we could also customize data validation using a formula. Let us try and enforce a validation rule that an email should have both '@' and '.' (dot) within the value. Here's the formula that validates it.\n<pre><strong>=AND(NOT(ISERROR(FIND(\"@\",A7))),NOT(ISERROR(FIND(\".\",A7))))<\/strong><\/pre>\n<strong>Example<\/strong>&nbsp;<img class=\"aligncenter size-full wp-image-7117\" src=\"https:\/\/static.sheetgo.com\/wp-content\/uploads\/2017\/11\/validatedinput8.png\" alt=\"Validate input values in Google Sheets - Illustration 8\" width=\"782\" height=\"492\">\n\nHaving set the above configuration, we try to input some random value that isn't a valid email address. And this is what happens.\n\n<strong>Example<\/strong>&nbsp;<img class=\"aligncenter size-full wp-image-7118\" src=\"https:\/\/static.sheetgo.com\/wp-content\/uploads\/2017\/11\/validateinput9.png\" alt=\"Validate input values in Google Sheets - Illustration 9\" width=\"782\" height=\"432\">\n\nAlternatively, we suggest you could also go with Google Forms where you can structure and validate the inputs in a better way. Here's a <a href=\"https:\/\/www.sheetgo.com\/how-do-i-create-a-form-and-forward-submissions-to-google-sheets\/\">blog post<\/a> that can help you in this regard.","_et_gb_content_width":"","footnotes":""},"categories":[37],"tags":[39,28],"class_list":["post-7088","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-google-sheets-features","tag-connections-t","tag-spreadsheets"],"acf":[],"_links":{"self":[{"href":"https:\/\/www.sheetgo.com\/pt\/wp-json\/wp\/v2\/posts\/7088","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.sheetgo.com\/pt\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.sheetgo.com\/pt\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.sheetgo.com\/pt\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.sheetgo.com\/pt\/wp-json\/wp\/v2\/comments?post=7088"}],"version-history":[{"count":0,"href":"https:\/\/www.sheetgo.com\/pt\/wp-json\/wp\/v2\/posts\/7088\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.sheetgo.com\/pt\/wp-json\/wp\/v2\/media\/33334"}],"wp:attachment":[{"href":"https:\/\/www.sheetgo.com\/pt\/wp-json\/wp\/v2\/media?parent=7088"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.sheetgo.com\/pt\/wp-json\/wp\/v2\/categories?post=7088"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.sheetgo.com\/pt\/wp-json\/wp\/v2\/tags?post=7088"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}