{"id":3869,"date":"2020-12-17T16:42:27","date_gmt":"2020-12-17T15:42:27","guid":{"rendered":"https:\/\/www.sheetgo.com\/?p=3869"},"modified":"2025-12-17T19:26:11","modified_gmt":"2025-12-17T18:26:11","slug":"formule-de-filtre-google-sheets","status":"publish","type":"post","link":"https:\/\/www.sheetgo.com\/fr\/blog\/google-sheets-formulas\/filter-formula-google-sheets\/","title":{"rendered":"Comment utiliser la fonction FILTRE dans Google Sheets ?"},"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.24.1&#8243; da_disable_devices=&#8221;off|off|off&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221; da_is_popup=&#8221;off&#8221; da_exit_intent=&#8221;off&#8221; da_has_close=&#8221;on&#8221; da_alt_close=&#8221;off&#8221; da_dark_close=&#8221;off&#8221; da_not_modal=&#8221;on&#8221; da_is_singular=&#8221;off&#8221; da_with_loader=&#8221;off&#8221; da_has_shadow=&#8221;on&#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.24.1&#8243; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;]<\/p>\n<p><span style=\"font-weight: 400;\">The <\/span><a href=\"https:\/\/support.google.com\/docs\/answer\/3093197?hl=en\" target=\"_blank\" rel=\"noopener\"><span style=\"font-weight: 400;\">FILTER<\/span><\/a><span style=\"font-weight: 400;\"> function in Google Sheets helps you filter and return rows in a range that meet specified criteria. You can also add multiple criteria across columns.The FILTER function generates a new set of data while keeping the original data intact.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">If you do not find the information you are looking for in this post, you can check out <\/span><a href=\"https:\/\/www.sheetgo.com\/blog\/excel-features\/100-functions-formulas-for-google-sheets-excel-basics\/\"><span style=\"font-weight: 400;\">100+ Functions &amp; Formulas for Google Sheets &amp; Excel Basics<\/span><\/a><span style=\"font-weight: 400;\">.<\/span><\/p>\n<p>[\/et_pb_text][et_pb_text _builder_version=&#8221;4.24.1&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;]<\/p>\n<h2><strong>What is the syntax of the filter function?<\/strong><\/h2>\n<p><strong><span style=\"font-weight: 400;\">This is the basic structure of the filter function:<\/span><\/strong><\/p>\n<p>[\/et_pb_text][et_pb_text module_class=&#8221;spreadsheet-function&#8221; _builder_version=&#8221;4.16&#8243; border_width_left=&#8221;4px&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;]=FILTER(range, condition1, [condition2, \u2026])[\/et_pb_text][et_pb_text _builder_version=&#8221;4.24.1&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;]<\/p>\n<ul>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><b>range<\/b><span style=\"font-weight: 400;\"> \u2013 a reference to the range of cells that the function filters.<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><b>condition1<\/b><span style=\"font-weight: 400;\"> \u2013 an array, row or column equal in length or width as that of the corresponding first row or column of <\/span><b>range<\/b><span style=\"font-weight: 400;\"> respectively. It contains evaluated TRUE or FALSE values.<\/span><\/li>\n<li><b>condition2 \u2026<\/b><span style=\"font-weight: 400;\"> \u2013 optional and additional arrays, rows or columns containing evaluated TRUE or FALSE values to specify if the corresponding row or column within the <\/span><b>range<\/b><span style=\"font-weight: 400;\"> needs consideration for the filtering process.<\/span><\/li>\n<\/ul>\n<p><span style=\"font-weight: 400;\">Please note that you can\u2019t use both row and column conditions in the same function. All conditions should be either columns or rows, and the FILTER function doesn\u2019t let you mix them.<\/span><\/p>\n<p>[\/et_pb_text][et_pb_text module_id=&#8221;how-to-use-the-FILTER-function&#8221; _builder_version=&#8221;4.24.1&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;]<\/p>\n<h3>How to use the FILTER function<\/h3>\n<p>Below is the sample data on which I will try various combinations of the FILTER function to demonstrate its behaviour.<\/p>\n<p>[\/et_pb_text][et_pb_image src=&#8221;https:\/\/static.sheetgo.com\/wp-content\/uploads\/2020\/12\/Filter-image-1-1.png&#8221; alt=&#8221;filter-function-google-sheets-1&#8243; title_text=&#8221;filter-function-google-sheets-1&#8243; align=&#8221;center&#8221; _builder_version=&#8221;4.16&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;][\/et_pb_image][et_pb_text module_id=&#8221;case-1&#8243; _builder_version=&#8221;4.24.1&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;]<\/p>\n<h3><span style=\"font-weight: 400;\">Case 1: FILTER with one condition<\/span><\/h3>\n<p><span style=\"font-weight: 400;\">In this first Google Sheets FILTER<\/span><span style=\"font-weight: 400;\"> example, I will use just one condition and see how it works. This is the formula I will use:<\/span><\/p>\n<p>[\/et_pb_text][et_pb_text module_class=&#8221;spreadsheet-function&#8221; _builder_version=&#8221;4.24.1&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;]<\/p>\n<p><b>=FILTER(A2:D10,A2:A10=\u201dVegetables\u201d)<\/b><\/p>\n<p>[\/et_pb_text][et_pb_text _builder_version=&#8221;4.24.1&#8243; _module_preset=&#8221;default&#8221; custom_padding=&#8221;||0px|||&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;]<\/p>\n<p><span style=\"font-weight: 400;\">The condition to filter on the first column is \u201cVegetables\u201d. So the FILTER function fetches all those rows where the first column has the value \u201cVegetables\u201d.<\/span><\/p>\n<p>[\/et_pb_text][et_pb_text module_id=&#8221;case-1&#8243; _builder_version=&#8221;4.20.2&#8243; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;][\/et_pb_text][et_pb_image src=&#8221;https:\/\/static.sheetgo.com\/wp-content\/uploads\/2020\/12\/Filter-image-2-1.png&#8221; alt=&#8221;filter-function-google-sheets-2&#8243; title_text=&#8221;filter-function-google-sheets-2&#8243; align=&#8221;center&#8221; _builder_version=&#8221;4.16&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;][\/et_pb_image][et_pb_text _builder_version=&#8221;4.24.1&#8243; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;]<\/p>\n<p><span style=\"font-weight: 400;\">I placed the function in cell F1, and accordingly the returned data flows from F1 towards the right and further down. The number of columns the function matches that of the input range. However, the number of rows might vary based on the filter conditions.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">So, it is very important to keep cells free of data where you expect the data to flow. Otherwise, the function returns a #REF! Error as demonstrated in the screenshot below.<\/span><\/p>\n<p>[\/et_pb_text][et_pb_image src=&#8221;https:\/\/static.sheetgo.com\/wp-content\/uploads\/2020\/12\/Filter-image-3-1.png&#8221; alt=&#8221;filter-function-google-sheets-3&#8243; title_text=&#8221;filter-function-google-sheets-3&#8243; align=&#8221;center&#8221; _builder_version=&#8221;4.16&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;][\/et_pb_image][\/et_pb_column][\/et_pb_row][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 module_id=&#8221;case-2&#8243; _builder_version=&#8221;4.24.1&#8243; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;]<\/p>\n<h3><span style=\"font-weight: 400;\">Case 2: Filter with two conditions<\/span><\/h3>\n<p>Let\u2019s add one more filter condition and see what happens.<\/p>\n<p>[\/et_pb_text][et_pb_text module_class=&#8221;spreadsheet-function&#8221; _builder_version=&#8221;4.24.1&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;]<\/p>\n<p><span style=\"font-weight: 400;\">\u00a0<\/span><b>=FILTER(A2:D10,A2:A10=\u201dVegetables\u201d,C2:C10&gt;20)<\/b><\/p>\n<p>[\/et_pb_text][et_pb_text _builder_version=&#8221;4.24.1&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;]<\/p>\n<p><span style=\"font-weight: 400;\">I essentially asked Google Sheets to show those rows that belong to the \u201cVegetables\u201d category and whose energy is greater than 20 Kcal, and the FILTER function obliged!<\/span><\/p>\n<p>[\/et_pb_text][et_pb_image src=&#8221;https:\/\/static.sheetgo.com\/wp-content\/uploads\/2020\/12\/Filter-image-4-1.png&#8221; alt=&#8221;filter-function-google-sheets-4&#8243; title_text=&#8221;filter-function-google-sheets-4&#8243; align=&#8221;center&#8221; _builder_version=&#8221;4.16&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;][\/et_pb_image][et_pb_text module_id=&#8221;case-3&#8243; _builder_version=&#8221;4.24.1&#8243; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;]<\/p>\n<h3><span style=\"font-weight: 400;\">Case 3: Google Sheets FILTER, multiple conditions<\/span><\/h3>\n<p>I will add one more condition and see the outcome.<\/p>\n<p>[\/et_pb_text][et_pb_text module_class=&#8221;spreadsheet-function&#8221; _builder_version=&#8221;4.24.1&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;]<\/p>\n<p><b>=FILTER(A2:D10,A2:A10=\u201dVegetables\u201d,C2:C10&gt;20,D2:D10&lt;0.3<\/b><span style=\"font-weight: 400;\">)<\/span><\/p>\n<p>[\/et_pb_text][et_pb_text _builder_version=&#8221;4.24.1&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;]<\/p>\n<p>And it works like a charm!<\/p>\n<p>[\/et_pb_text][et_pb_image src=&#8221;https:\/\/static.sheetgo.com\/wp-content\/uploads\/2020\/12\/Filter-image-5-1.png&#8221; alt=&#8221;filter-function-google-sheets-5&#8243; title_text=&#8221;filter-function-google-sheets-5&#8243; align=&#8221;center&#8221; _builder_version=&#8221;4.16&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;][\/et_pb_image][et_pb_text module_id=&#8221;case-4&#8243; _builder_version=&#8221;4.24.1&#8243; custom_padding=&#8221;11px|||||&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;]<\/p>\n<h3><span style=\"font-weight: 400;\">Case 4: Filter with &#8220;or&#8221; condition<\/span><\/h3>\n<p><span style=\"font-weight: 400;\">So far all the examples have been using \u201cand\u201d conditions \u2013 that is, the data has to meet all the conditions specified in order for it to pass the filter.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">However, there is another option \u2013 you can use \u201cor\u201d conditions that will work for data that meets any one of multiple conditions. The example below demonstrates this.<\/span><\/p>\n<p>[\/et_pb_text][et_pb_text module_class=&#8221;spreadsheet-function&#8221; _builder_version=&#8221;4.24.1&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;]<\/p>\n<p><b>=FILTER(A2:D10,(A2:A10=\u201dVegetables\u201d)+(D2:D10&lt;0.3))<\/b><\/p>\n<p>[\/et_pb_text][et_pb_text _builder_version=&#8221;4.24.1&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;]<\/p>\n<p><span style=\"font-weight: 400;\">As you can see, the filter here is finding any item that is a vegetable OR has less than 0.3g of fat. Because only one condition needs to be met, Apple and Broccoli are both included even though an apple is not a vegetable, and broccoli has more than 0.3g of fat.\u00a0<\/span><\/p>\n<p><span style=\"font-weight: 400;\">In order to use an OR condition, all you need to do is put the conditions in brackets and add them together with a plus sign, instead of separating them by a comma.<\/span><\/p>\n<p>[\/et_pb_text][et_pb_image src=&#8221;https:\/\/static.sheetgo.com\/wp-content\/uploads\/2020\/12\/Filter-image-6-1.png&#8221; alt=&#8221;filter-function-google-sheets-6&#8243; title_text=&#8221;filter-function-google-sheets-6&#8243; align=&#8221;center&#8221; _builder_version=&#8221;4.16&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;][\/et_pb_image][et_pb_text module_id=&#8221;case-5&#8243; _builder_version=&#8221;4.24.1&#8243; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;]<\/p>\n<h3>Case 5: Largest values<\/h3>\n<p>Another helpful way of using the FILTER function is to find the top few items in any category.<\/p>\n<p>In the example below, I\u2019ve filtered the data to find the three foods with the largest amount of calories.<\/p>\n<p>[\/et_pb_text][et_pb_text module_class=&#8221;spreadsheet-function&#8221; _builder_version=&#8221;4.24.1&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;]<\/p>\n<p><b>=FILTER(A2:D10,(C2:C10&gt;=LARGE(C2:C10,3)))<\/b><\/p>\n<p>[\/et_pb_text][et_pb_text _builder_version=&#8221;4.24.1&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;]<\/p>\n<p><span style=\"font-weight: 400;\">This is achieved by using the FILTER function in combination with the LARGE function, which identifies the largest numbers in a dataset.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">I\u2019ve used the LARGE function to identify the three largest calorie numbers, and then filtered the data according to these. You can use this method to filter for any number of the largest or smallest values.<\/span><\/p>\n<p>[\/et_pb_text][et_pb_image src=&#8221;https:\/\/static.sheetgo.com\/wp-content\/uploads\/2020\/12\/Filter-image-7-1.png&#8221; alt=&#8221;filter-function-google-sheets-7&#8243; title_text=&#8221;filter-function-google-sheets-7&#8243; align=&#8221;center&#8221; _builder_version=&#8221;4.16&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;][\/et_pb_image][et_pb_text module_id=&#8221;case-6&#8243; _builder_version=&#8221;4.24.1&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;]<\/p>\n<h3>Case 6: Sorting filtered results<\/h3>\n<p><span style=\"font-weight: 400;\">In the previous example, I found the top 3 foods with the most calories. But as you could see, the results weren\u2019t shown in order from most calorie-dense to least.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">To sort the results of the FILTER function, you can combine it with the SORT function.<\/span><\/p>\n<p>[\/et_pb_text][et_pb_text module_class=&#8221;spreadsheet-function&#8221; _builder_version=&#8221;4.24.1&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;]<\/p>\n<p><b>=SORT(FILTER(A2:D10,(C2:C10&gt;=LARGE(C2:C10,3))),3,FALSE)<\/b><\/p>\n<p>[\/et_pb_text][et_pb_text _builder_version=&#8221;4.24.1&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;]<\/p>\n<p><span style=\"font-weight: 400;\">All I\u2019ve done here is added the SORT function in front of the FILTER function, then told the SORT function to sort based on column 3 in descending order (by indicating False).<\/span><\/p>\n<p>[\/et_pb_text][et_pb_image src=&#8221;https:\/\/static.sheetgo.com\/wp-content\/uploads\/2020\/12\/Filter-image-8-1.png&#8221; alt=&#8221;filter-function-google-sheets-8&#8243; title_text=&#8221;filter-function-google-sheets-8&#8243; align=&#8221;center&#8221; _builder_version=&#8221;4.16&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;][\/et_pb_image][et_pb_text module_id=&#8221;case-7&#8243; _builder_version=&#8221;4.24.1&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;]<\/p>\n<h3>Case 7: What if there is no match?<\/h3>\n<p><span style=\"font-weight: 400;\">Of course, not getting any matches generates an error. This is what it looks like.<\/span><\/p>\n<p>[\/et_pb_text][et_pb_image src=&#8221;https:\/\/static.sheetgo.com\/wp-content\/uploads\/2020\/12\/Filter-image-9-1.png&#8221; alt=&#8221;filter-function-google-sheets-9&#8243; title_text=&#8221;filter-function-google-sheets-9&#8243; align=&#8221;center&#8221; _builder_version=&#8221;4.16&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;][\/et_pb_image][et_pb_text module_id=&#8221;case-8&#8243; _builder_version=&#8221;4.24.1&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;]<\/p>\n<h3>Case 8: Breaking the rules<\/h3>\n<p><span style=\"font-weight: 400;\">You already know you can\u2019t input row and column type conditions within a single FILTER function. I\u2019ll try that anyway and see what Google Sheets has to say.<\/span><\/p>\n<p>[\/et_pb_text][et_pb_image src=&#8221;https:\/\/static.sheetgo.com\/wp-content\/uploads\/2020\/12\/Filter-image-10-1.png&#8221; alt=&#8221;filter-function-google-sheets-10&#8243; title_text=&#8221;filter-function-google-sheets-10&#8243; align=&#8221;center&#8221; _builder_version=&#8221;4.16&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;][\/et_pb_image][et_pb_text _builder_version=&#8221;4.24.1&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;]<\/p>\n<h2><span style=\"font-weight: 400;\">Google Sheets FILTER not working?<\/span><\/h2>\n<p><span style=\"font-weight: 400;\">Let\u2019s go over a short checklist to help you troubleshoot common issues with the filter function:<\/span><\/p>\n<ol>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><b>Check the syntax<\/b><span style=\"font-weight: 400;\"> of your filter function. Ensure that you&#8217;ve correctly specified the range of data you want to filter and that the conditions or criteria are accurately defined.<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><b>Verify that your data range is correct <\/b><span style=\"font-weight: 400;\">and points to the intended rows and columns.<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><b>Ensure there are no hidden rows or columns<\/b><span style=\"font-weight: 400;\"> within your data range, this can affect the outcome of the filter function.<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><b>Examine the filtering criteria<\/b><span style=\"font-weight: 400;\"> you&#8217;ve set for filtering your data.<\/span><\/li>\n<\/ol>\n<p><span style=\"font-weight: 400;\">If this doesn\u2019t work, AI might be the answer. For a great prompt to troubleshoot spreadsheet functions check out <\/span><a href=\"https:\/\/www.sheetgo.com\/blog\/spreadsheets-tips\/awesome-chatgpt-prompts-for-spreadsheet-users\/\"><span style=\"font-weight: 400;\">15 awesome Chat GPT prompts for spreadsheet users<\/span><\/a><span style=\"font-weight: 400;\">.<\/span><\/p>\n<p>[\/et_pb_text][et_pb_text _builder_version=&#8221;4.24.1&#8243; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;]<\/p>\n<h2><span style=\"font-weight: 400;\">You are officially a FILTER builder!<\/span><\/h2>\n<p>That\u2019s how to get started with the Google Sheets FILTER function. Looking for more spreadsheet tutorials and tips? Check out our other posts below!<\/p>\n<p>The UNIQUE\u00a0function in Google Sheets can be of great help to you as well. Check it out in our blog post: <a href=\"https:\/\/www.sheetgo.com\/blog\/google-sheets-formulas\/unique-formula-google-sheets\/\" target=\"_blank\" rel=\"noopener noreferrer\">How to use the UNIQUE function in Google Sheets.<\/a><\/p>\n<p>[\/et_pb_text][\/et_pb_column][\/et_pb_row][\/et_pb_section]<\/p>\n","protected":false},"excerpt":{"rendered":"<p>The FILTER function in Google Sheets helps you filter and return rows in a range that meet specified criteria. You can also add multiple criteria across columns.The FILTER function generates a new set of data while keeping the original data intact. If you do not find the information you are looking for in this post, [&hellip;]<\/p>\n","protected":false},"author":40,"featured_media":42182,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"_et_pb_use_builder":"on","_et_pb_old_content":"The <a href=\"https:\/\/support.google.com\/docs\/answer\/3093197?hl=en\" target=\"_blank\" rel=\"noopener\">FILTER<\/a> formula in Google Sheets helps us filter and return the rows in a range that meet specified criteria. And, we can add multiple criteria across columns. Accordingly, we will be able to generate a new set of data while the original data remains intact.\n<h3>Syntax<\/h3>\n<span style=\"font-family: courier new,courier,monospace; font-size: 14pt;\"><strong>FILTER(range, condition1, [condition2, ...])<\/strong><\/span>\n<ul>\n \t<li><span style=\"font-family: courier new,courier,monospace; font-size: 12pt;\"><strong>range<\/strong><\/span> - is the address reference to the range of cells that the formula filters.<\/li>\n \t<li><span style=\"font-family: courier new,courier,monospace; font-size: 12pt;\"><strong>condition1<\/strong><\/span> - is an array, row or column equal in length or width as that of the corresponding first row or column of <span style=\"font-family: courier new,courier,monospace; font-size: 12pt;\"><strong>range<\/strong><\/span> respectively. It contains evaluated TRUE or FALSE values.<\/li>\n \t<li><span style=\"font-family: courier new,courier,monospace; font-size: 12pt;\"><strong>condition2<\/strong><strong> ...<\/strong><\/span> - these are optional and additional arrays, rows or columns containing evaluated TRUE or FALSE values to specify if the corresponding row or column within the <span style=\"font-family: courier new,courier,monospace; font-size: 12pt;\"><strong>range<\/strong><\/span> needs consideration for the filtering process.<\/li>\n<\/ul>\nPlease note that we cannot use both row and column conditions in the same formula. Either all the conditions should be of column type or row type, and the FILTER formula doesn't allow mixing them.\n<h3>Usage: FILTER Formula<\/h3>\nHere is the sample data on which we will try various combinations of the FILTER formula, and understand its behavior.\n<h5><img class=\"aligncenter size-full wp-image-3878\" src=\"https:\/\/static.sheetgo.com\/wp-content\/uploads\/2017\/10\/frame-generic-42.png\" alt=\"FILTER Formula - Illustration 1\" width=\"451\" height=\"266\" \/><\/h5>\n<h5>Case 1: FILTER(range, condition1)<\/h5>\nIn this example, we will use just one condition and see how it works.\n\n<img class=\"aligncenter size-full wp-image-3879\" src=\"https:\/\/static.sheetgo.com\/wp-content\/uploads\/2017\/10\/frame-generic-43.png\" alt=\"FILTER Formula - Illustration 2\" width=\"855\" height=\"290\" \/>\n\nIn the above example, our condition to filter on the first column is \"Vegetables\". So the FILTER formula fetches all those rows where the first column has the value \"Vegetables\".\n\nPlease note that we have keyed in the formula in the cell E1, and accordingly the returned data flows from E1 towards the right and further down. The number of columns the formula returned is same as that of the input range. However, the number of rows might vary based on the filter conditions. So, it is very important that we keep the cells, where we expect the data to flow, clear of any values. Otherwise, the formula returns #REF! error. This is demonstrated in the screenshot below.\n\n<img class=\"aligncenter size-full wp-image-3880\" src=\"https:\/\/static.sheetgo.com\/wp-content\/uploads\/2017\/10\/frame-generic-44.png\" alt=\"FILTER Formula - Illustration 3\" width=\"856\" height=\"291\" \/>\n<h5>Case 2: FILTER(range, condition1, condition2)<\/h5>\nLet us add one more filter condition and see what happens.\n\n<img class=\"aligncenter size-full wp-image-3881\" src=\"https:\/\/static.sheetgo.com\/wp-content\/uploads\/2017\/10\/frame-generic-45.png\" alt=\"FILTER Formula - Illustration 4\" width=\"856\" height=\"291\" \/>\n\nWe essentially asked Google Sheets to show those rows that belong to Vegetables food category and whose energy is greater than 20 Kcal, and the FILTER formula obliged!\n<h5>Case 3: FILTER(range, condition1, condition2, condition3)<\/h5>\nWe will add one more condition and see the outcome.\n\n<img class=\"aligncenter size-full wp-image-3882\" src=\"https:\/\/static.sheetgo.com\/wp-content\/uploads\/2017\/10\/frame-generic-46.png\" alt=\"FILTER Formula - Illustration 5\" width=\"856\" height=\"290\" \/>\n\nAnd it works like a charm!\n<h5>Case 4: When there is no match!<\/h5>\nWhat would happen if it doesn't find any rows that match the filter conditions? Of course, it throws up an error!\n\n<img class=\"aligncenter size-full wp-image-3883\" src=\"https:\/\/static.sheetgo.com\/wp-content\/uploads\/2017\/10\/frame-generic-47.png\" alt=\"FILTER Formula - Illustration 6\" width=\"855\" height=\"290\" \/>\n<h5>Case 5: When we mix things up!<\/h5>\nWe already know we can't input row and column type conditions within a single FILTER formula. Let us try that anyway and see what Google Sheets has to say.\n\n<img class=\"aligncenter size-full wp-image-3884\" src=\"https:\/\/static.sheetgo.com\/wp-content\/uploads\/2017\/10\/frame-generic-48.png\" alt=\"FILTER Formula - Illustration 7\" width=\"855\" height=\"290\" \/>\n\n&nbsp;","_et_gb_content_width":"","footnotes":""},"categories":[54],"tags":[39,28],"class_list":["post-3869","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-google-sheets-formulas","tag-connections-t","tag-spreadsheets"],"acf":[],"_links":{"self":[{"href":"https:\/\/www.sheetgo.com\/fr\/wp-json\/wp\/v2\/posts\/3869","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.sheetgo.com\/fr\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.sheetgo.com\/fr\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.sheetgo.com\/fr\/wp-json\/wp\/v2\/users\/40"}],"replies":[{"embeddable":true,"href":"https:\/\/www.sheetgo.com\/fr\/wp-json\/wp\/v2\/comments?post=3869"}],"version-history":[{"count":0,"href":"https:\/\/www.sheetgo.com\/fr\/wp-json\/wp\/v2\/posts\/3869\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.sheetgo.com\/fr\/wp-json\/wp\/v2\/media\/42182"}],"wp:attachment":[{"href":"https:\/\/www.sheetgo.com\/fr\/wp-json\/wp\/v2\/media?parent=3869"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.sheetgo.com\/fr\/wp-json\/wp\/v2\/categories?post=3869"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.sheetgo.com\/fr\/wp-json\/wp\/v2\/tags?post=3869"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}