{"id":2762,"date":"2023-08-17T18:05:28","date_gmt":"2023-08-17T16:05:28","guid":{"rendered":"https:\/\/importsheet.com\/?p=2762"},"modified":"2025-12-17T22:07:58","modified_gmt":"2025-12-17T21:07:58","slug":"formule-de-requete-google-sheets","status":"publish","type":"post","link":"https:\/\/www.sheetgo.com\/fr\/blog\/google-sheets-formulas\/query-formula-google-sheets\/","title":{"rendered":"Comment utiliser la fonction QUERY de 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.16&#8243; 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; da_disable_devices=&#8221;off|off|off&#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.16&#8243; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;]<\/p>\n<p>The Google Sheets\u00a0<a href=\"https:\/\/support.google.com\/docs\/answer\/3093343?hl=en\" target=\"_blank\" rel=\"noopener\">QUERY<\/a> function is a very powerful and versatile tool. So much so that you can call it a one-stop-shop for all your logical, lookup, summation, counting, averaging, filtering and sorting requirements. The function fetches specific information from a data set through a query statement, much like fetching result sets from a database using queries. The syntax of the <a href=\"https:\/\/developers.google.com\/chart\/interactive\/docs\/querylanguage\" target=\"_blank\" rel=\"noopener\">query language<\/a><span>\u00a0<\/span>used in this function is similar to SQL.<\/p>\n<p>[\/et_pb_text][et_pb_text module_id=&#8221;syntax&#8221; _builder_version=&#8221;4.20.2&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;]<\/p>\n<h2>Syntax<\/h2>\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;]=QUERY(data, query, [headers])[\/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<ul>\n<li><strong>data<\/strong> \u2013 is the reference to the range of cells on which we want to query upon.<\/li>\n<li><strong>query<\/strong> \u2013 is the text using which the QUERY function churns out the information we are looking for from the data set. Since it is expected to be a string, it has to be enclosed within a set of quotes. Or, it can also be a reference to a cell, where the query text is stored.<\/li>\n<li><strong>headers<\/strong> \u2013 is an optional parameter that indicates the number of header rows at the top of the data. If left out, Google Sheets guesses the value based on the content within the <strong>data<\/strong>.<\/li>\n<\/ul>\n<p>[\/et_pb_text][et_pb_text module_id=&#8221;clauses&#8221; _builder_version=&#8221;4.20.2&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;]<\/p>\n<h2>Clauses and operators<\/h2>\n<p>The Query language used in Google Sheets QUERY function is a text-based language similar to SQL. The query uses clauses to perform actions. Below is a list of the possible clauses that you can use to perform a wide variety of actions on your data.<\/p>\n<p>[\/et_pb_text][et_pb_image src=&#8221;https:\/\/static.sheetgo.com\/wp-content\/uploads\/2021\/10\/google-sheets-query-1.png&#8221; alt=&#8221;google sheets query 1&#8243; title_text=&#8221;google sheets query 1&#8243; _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.16&#8243; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;]<\/p>\n<p>If you use the QUERY function a lot, you\u2019ll also find that you make use of a number of logical operators to set conditions within the function. Below is a list of logical operators that you can use.<\/p>\n<p>[\/et_pb_text][et_pb_image src=&#8221;https:\/\/static.sheetgo.com\/wp-content\/uploads\/2021\/10\/google-sheets-query-2.png&#8221; alt=&#8221;google sheets query 2&#8243; title_text=&#8221;google sheets query 2&#8243; _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;basic&#8221; _builder_version=&#8221;4.20.2&#8243; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;]<\/p>\n<h3>Basic QUERY functions<\/h3>\n<p>First of all, to understand how the function is put to use, consider the following sample data. It consists of information corresponding to a list of students who have enrolled in various courses at a university. In all the upcoming examples, I\u2019ll enter the function in the cell H1. It will also be displayed in the function bar in the snapshots.<\/p>\n<p>[\/et_pb_text][et_pb_image src=&#8221;https:\/\/static.sheetgo.com\/wp-content\/uploads\/2021\/10\/google-sheets-query-3.png&#8221; alt=&#8221;google sheets query 3&#8243; title_text=&#8221;google sheets query 3&#8243; _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.16&#8243; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;]<\/p>\n<h4>Example #1: Select columns based on a condition<\/h4>\n<p>I will start off with a very basic demonstration, and add more complexity throughout the article in order to help you understand the function step-by-step. To start with, I\u2019ll use the QUERY function to fetch the names of the students who are residing on campus.<\/p>\n<p>[\/et_pb_text][et_pb_text module_class=&#8221;spreadsheet-function&#8221; _builder_version=&#8221;4.20.2&#8243; border_width_left=&#8221;4px&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;]<\/p>\n<p><span style=\"font-weight: 400;\">=QUERY(A1:F15,&#8221;Select A where F = &#8216;Yes'&#8221;,1)<\/span><\/p>\n<p>[\/et_pb_text][et_pb_image src=&#8221;https:\/\/static.sheetgo.com\/wp-content\/uploads\/2021\/10\/google-sheets-query-4.png&#8221; alt=&#8221;google sheets query 4&#8243; title_text=&#8221;google sheets query 4&#8243; _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.16&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;]<\/p>\n<p>Before moving on, I\u2019ll go over some of the basics of QUERY in this first example. To start with, notice that the data selected includes the headers \u2013 these will be used as part of the output from the function. You can see that the function returned not only the names of the students who are residing on campus, but also the Name header, which is very helpful for keeping track of what the results mean!<\/p>\n<p>After selecting the data, the main part of the query is in quotation marks as a text string command. I\u2019ve used two of the clauses listed in the chart above: Select and Where. The \u2018select\u2019 command is used to return columns \u2013 telling the function to \u201cSelect A\u201d leads to an output of the entire column A.<\/p>\n<p>The \u2018where\u2019 clause allows you to add a condition. Here, I\u2019ve added the condition that the F column should equal \u201cYes\u201d. For the rows that the F column is \u201cNo\u201d, the function ignores that data and does not include it in the output.<\/p>\n<p>Combining the two clauses into one query, I\u2019ve typed \u201cSelect A where F = \u2018Yes\u2019\u201d. The is essentially telling the function to return all the names (from column A) of students who live on campus (data in column F is \u2018Yes\u2019).<\/p>\n<p>Tip: If you\u2019re selecting all the columns in the data set, you can type Select * to quickly achieve this instead of listing out each column!<\/p>\n<p>[\/et_pb_text][et_pb_text _builder_version=&#8221;4.16&#8243; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;]<\/p>\n<h4>Example #2: Select columns based on a condition<\/h4>\n<p>Now I\u2019ll show the same example, but finding the students who are NOT on campus.<\/p>\n<p>[\/et_pb_text][et_pb_text module_class=&#8221;spreadsheet-function&#8221; _builder_version=&#8221;4.20.2&#8243; border_width_left=&#8221;4px&#8221; locked=&#8221;off&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;]<\/p>\n<p><span style=\"font-weight: 400;\">=QUERY(A1:F15,&#8221;Select A where F &lt;&gt; &#8216;Yes'&#8221;,1)<\/span><\/p>\n<p>[\/et_pb_text][et_pb_image src=&#8221;https:\/\/static.sheetgo.com\/wp-content\/uploads\/2021\/10\/google-sheets-query-5.png&#8221; alt=&#8221;google sheets query 5&#8243; title_text=&#8221;google sheets query 5&#8243; _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.16&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;]<\/p>\n<p>The only difference here is that I\u2019ve changed the logical operator in the \u2018where\u2019 clause to <>, which means \u201cnot equal\u201d. So I am asking the function to give me the list of names of students that do NOT have a \u2018Yes\u2019 in the F column.<\/p>\n<p>[\/et_pb_text][et_pb_text _builder_version=&#8221;4.16&#8243; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;]<\/p>\n<h4>Example #3: Select multiple columns<\/h4>\n<p>Now I\u2019ll fetch the names, ages, departments of the students whose have taken more than 7 courses.<\/p>\n<p>[\/et_pb_text][et_pb_text module_class=&#8221;spreadsheet-function&#8221; _builder_version=&#8221;4.20.2&#8243; border_width_left=&#8221;4px&#8221; locked=&#8221;off&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;]<\/p>\n<p><span style=\"font-weight: 400;\">=QUERY(A1:F15,&#8221;Select A, B, C where D &gt; 7&#8243;,1)<\/span><\/p>\n<p>[\/et_pb_text][et_pb_image src=&#8221;https:\/\/static.sheetgo.com\/wp-content\/uploads\/2021\/10\/google-sheets-query-6.png&#8221; alt=&#8221;google sheets query 6&#8243; title_text=&#8221;google sheets query 6&#8243; _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.16&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;]<\/p>\n<p>Again, I start with the Select clause, but this time I select multiple columns by listing them separated by commas. I\u2019ve chosen columns A, B, and C to be selected. I\u2019ve also changed the Where clause to filter out the data of students who have less than 7 courses.<\/p>\n<p>[\/et_pb_text][et_pb_text _builder_version=&#8221;4.16&#8243; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;]<\/p>\n<h4>Example #4: Multiple WHERE conditions<\/h4>\n<p>I will now take this a step further. I\u2019ll bring up the names, departments, and join dates of the students aged 25 or below who have joined the university between 25-Dec-2016 and 20-Jan-2017. Please note, in the query text, the dates always have to go with yyyy-mm-dd format, enclosed within single quotes.<\/p>\n<p>[\/et_pb_text][et_pb_text module_class=&#8221;spreadsheet-function&#8221; _builder_version=&#8221;4.20.2&#8243; border_width_left=&#8221;4px&#8221; locked=&#8221;off&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;]<\/p>\n<p><span style=\"font-weight: 400;\">=QUERY(A1:F15,&#8221;Select A, C, E where B &lt;= 25 and E &gt;= data &#8216;2016-12-25&#8217; and E &lt;= date\u00a0 = &#8216;2017-01-20&#8242;&#8221; ,1)<\/span><\/p>\n<p>[\/et_pb_text][et_pb_image src=&#8221;https:\/\/static.sheetgo.com\/wp-content\/uploads\/2021\/10\/google-sheets-query-7.png&#8221; alt=&#8221;google sheets query 7&#8243; title_text=&#8221;google sheets query 7&#8243; _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.16&#8243; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;]<\/p>\n<p>As you can see, you can add multiple Where conditions simply by separating them with \u201cand\u201d. This allows you to filter data in any way you can imagine!<\/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>Example #5: Referencing cells<\/h4>\n<p>What if you need to reference the date from a cell? No problem there! You can do so with the help of concatenating operators and a text function. By doing this in the example below, you will get the names and join dates of the students who joined after 1-Jan-2017.<\/p>\n<p>[\/et_pb_text][et_pb_text module_class=&#8221;spreadsheet-function&#8221; _builder_version=&#8221;4.20.2&#8243; border_width_left=&#8221;4px&#8221; locked=&#8221;off&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;]<\/p>\n<p><span style=\"font-weight: 400;\">=QUERY(A1:F15,&#8221;Select A, E where E &gt; date &#8216;&#8221; &amp; TEXT(I1,&#8221;yyyy-mm-dd&#8221;)&amp;&#8221;&#8216;&#8221;,1)<\/span><\/p>\n<p>[\/et_pb_text][et_pb_image src=&#8221;https:\/\/static.sheetgo.com\/wp-content\/uploads\/2021\/10\/google-sheets-query-8.png&#8221; alt=&#8221;google sheets query 8&#8243; title_text=&#8221;google sheets query 8&#8243; _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.16&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;]<\/p>\n<p>An important thing to note when using dates in your query is that dates can only be in the yyyy-mm-dd format, and must be enclosed in single quotation marks and preceded by the string \u201cdate\u201d. So to denote January 1 2020 in your query, you\u2019d need to type: date \u20182020-01-01\u2019.<\/p>\n<p>[\/et_pb_text][et_pb_text module_id=&#8221;arithmetic&#8221; _builder_version=&#8221;4.20.2&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;]<\/p>\n<h3>Arithmetic and Aggregation Functions<\/h3>\n<p>In addition to the various clauses listed above, you can use regular arithmetic functions within your queries. Operations like addition, subtraction, multiplication, and division, as well as aggregation function sum, average, count, max, and min are all fair game.<\/p>\n<p>[\/et_pb_text][et_pb_text _builder_version=&#8221;4.16&#8243; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;]<\/p>\n<h4>Example #6: Multiplicaction and addition<\/h4>\n<p>I\u2019ll start off by demonstrating a few simple arithmetic functions \u2013 multiplication and addition. In this example, I want the age to be in months instead of years (so I\u2019ll multiply by 12) and I want to add one credit for each student.<\/p>\n<p>[\/et_pb_text][et_pb_text module_class=&#8221;spreadsheet-function&#8221; _builder_version=&#8221;4.20.2&#8243; border_width_left=&#8221;4px&#8221; locked=&#8221;off&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;]<\/p>\n<p><span style=\"font-weight: 400;\">=QUERY(A1:F15,&#8221;Select C, (B*12), (D+1)&#8221;,1)<\/span><\/p>\n<p>[\/et_pb_text][et_pb_image src=&#8221;https:\/\/static.sheetgo.com\/wp-content\/uploads\/2021\/10\/google-sheets-query-9.png&#8221; alt=&#8221;google sheets query 9&#8243; title_text=&#8221;google sheets query 9&#8243; _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.16&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;]<\/p>\n<p>As you can see, all you have to do is perform the operation on the column of your choosing. The output isn\u2019t very pretty, but we\u2019ll discuss how to change the headers and formatting later on in this guide.<\/p>\n<p>[\/et_pb_text][et_pb_text _builder_version=&#8221;4.16&#8243; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;]<\/p>\n<h4>Example #7: Average<\/h4>\n<p>Now I\u2019ll show an aggregation operation \u2013 the average function. The average of a column is accessed with the abbreviation \u2018avg\u2019. You also need to tell the function which items to average together \u2013 i.e. how you want the data grouped. That\u2019s why I\u2019ve also told the function to group the data by column C (dept), using the Group by clause.<\/p>\n<p>[\/et_pb_text][et_pb_text module_class=&#8221;spreadsheet-function&#8221; _builder_version=&#8221;4.20.2&#8243; border_width_left=&#8221;4px&#8221; locked=&#8221;off&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;]<\/p>\n<p><span style=\"font-weight: 400;\">=QUERY(A1:F15,&#8221;Select C, avg(B) group by C&#8221;, 1)<\/span><\/p>\n<p>[\/et_pb_text][et_pb_image src=&#8221;https:\/\/static.sheetgo.com\/wp-content\/uploads\/2021\/10\/google-sheets-query-10.png&#8221; alt=&#8221;google sheets query 10&#8243; title_text=&#8221;google sheets query 10&#8243; _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.16&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;]<\/p>\n<p>You\u2019ve now seen the QUERY function use basic arithmetic functions like multiplication and addition, as well as aggregation operations such as average.<\/p>\n<p>[\/et_pb_text][et_pb_text module_id=&#8221;complex&#8221; _builder_version=&#8221;4.20.2&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;]<\/p>\n<h3>Complex QUERY functions<\/h3>\n<p>Now that you\u2019ve seen some basic examples using the Select and Where clauses to filter a data set, as well as some arithmetic functions, I\u2019ll show some more complex examples using a variety of clauses and operations.<\/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>Example #8: Select, Sum, and Group by <\/h4>\n<p>You can use a combination of Select, Sum, and Group By to list out all the departments and the display the number of courses taken from each department. The Group By clause is used alongside aggregation functions (such as Sum) to tell the function how the data should be grouped and summed \u2013 otherwise the aggregation function doesn\u2019t work.<\/p>\n<p>[\/et_pb_text][et_pb_text module_class=&#8221;spreadsheet-function&#8221; _builder_version=&#8221;4.20.2&#8243; border_width_left=&#8221;4px&#8221; locked=&#8221;off&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;]<\/p>\n<p><span style=\"font-weight: 400;\">=QUERY(A1:F15,&#8221;Select C, sum(D) group by C&#8221;, 1)<\/span><\/p>\n<p>[\/et_pb_text][et_pb_image src=&#8221;https:\/\/static.sheetgo.com\/wp-content\/uploads\/2021\/10\/google-sheets-query-11.png&#8221; alt=&#8221;google sheets query 11&#8243; title_text=&#8221;google sheets query 11&#8243; _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.16&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;]<\/p>\n<h4>Example #9: Label and Sort<\/h4>\n<p>In the previous example, you\u2019ll notice that the QUERY function returned the second column with the header \u201csum Courses\u201d. Honestly, this is a bit awkward \u2013 luckily, you can fix that by renaming it. In addition to that, I will also use the second column (now renamed to \u2018Courses Taken\u2019) to sort in ascending order. Here\u2019s how to do it.<\/p>\n<p>[\/et_pb_text][et_pb_text module_class=&#8221;spreadsheet-function&#8221; _builder_version=&#8221;4.20.2&#8243; border_width_left=&#8221;4px&#8221; locked=&#8221;off&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;]<\/p>\n<p><span style=\"font-weight: 400;\">=QUERY(A1:F15,&#8221;Select C, sum(D) group by C order by sum(D) label sum(D) &#8216;Courses Taken'&#8221;, 1)<\/span><\/p>\n<p>[\/et_pb_text][et_pb_image src=&#8221;https:\/\/static.sheetgo.com\/wp-content\/uploads\/2021\/10\/google-sheets-query-12.png&#8221; alt=&#8221;google sheets query 12&#8243; title_text=&#8221;google sheets query 12&#8243; _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.16&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;]<\/p>\n<h4>Example #10: Count<\/h4>\n<p>Can you display the number of instances in which student is taking courses from each department? Of course! The QUERY function has you covered here as well \u2013 you can use the count operator to achieve this.<\/p>\n<p>[\/et_pb_text][et_pb_text module_class=&#8221;spreadsheet-function&#8221; _builder_version=&#8221;4.20.2&#8243; border_width_left=&#8221;4px&#8221; locked=&#8221;off&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;]<\/p>\n<p><span style=\"font-weight: 400;\">=QUERY(A1:F15,&#8221;Select C, count(D) group by C label count(D) &#8216;# Instances'&#8221;, 1)<\/span><\/p>\n<p>[\/et_pb_text][et_pb_image src=&#8221;https:\/\/static.sheetgo.com\/wp-content\/uploads\/2021\/10\/google-sheets-query-13.png&#8221; alt=&#8221;google sheets query 13&#8243; title_text=&#8221;google sheets query 13&#8243; _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.16&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;]<\/p>\n<p>Instead of using the Sum operator to add up all the courses taken, I\u2019m using the Count operator to count the number of occurrences of a student taking any number of credits within each department. I\u2019m also again using the Select, Group by, and Label clauses to get the output I want.<\/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>Example #11: Limit and Order by<\/h4>\n<p>The Limit clause limits the results to a specified number. For example, in the screenshot below I limit the output to 10 rows. This clause is often used in conjunction with the Order by clause, which puts the data into ascending or descending order.<\/p>\n<p>[\/et_pb_text][et_pb_text module_class=&#8221;spreadsheet-function&#8221; _builder_version=&#8221;4.20.2&#8243; border_width_left=&#8221;4px&#8221; locked=&#8221;off&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;]<\/p>\n<p><span style=\"font-weight: 400;\">=QUERY(A1:F15,&#8221;Select A, B order by B asc limit 10&#8243;, 1)<\/span><\/p>\n<p>[\/et_pb_text][et_pb_image src=&#8221;https:\/\/static.sheetgo.com\/wp-content\/uploads\/2021\/10\/google-sheets-query-14.png&#8221; alt=&#8221;google sheets query 14&#8243; title_text=&#8221;google sheets query 14&#8243; _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.16&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;]<\/p>\n<p>Here, I\u2019ve used the Order by clause to sort the data from lowest age to highest age, then used the Limit clause to limit the output to 10 \u2013 giving me the 10 youngest students.<\/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>Example #12: Pivot<\/h4>\n<p>The Pivot clause essentially allows you to create your own pivot tables using the QUERY function. In the example below, I\u2019ve taken a previous example and pivoted it by column A. The result is that the names of the students are now the headers, with the data I\u2019ve selected in the rows below each name.<\/p>\n<p>[\/et_pb_text][et_pb_text module_class=&#8221;spreadsheet-function&#8221; _builder_version=&#8221;4.20.2&#8243; border_width_left=&#8221;4px&#8221; locked=&#8221;off&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;]<\/p>\n<p><span style=\"font-weight: 400;\">=QUERY(A1:F15,&#8221;Select C, sum(D) group by C pivot A&#8221;, 1)<\/span><\/p>\n<p>[\/et_pb_text][et_pb_image src=&#8221;https:\/\/static.sheetgo.com\/wp-content\/uploads\/2021\/10\/google-sheets-query-15.png&#8221; alt=&#8221;google sheets query 15&#8243; title_text=&#8221;google sheets query 15&#8243; _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.16&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;]<\/p>\n<p>Using the Pivot clause is a somewhat more advanced use of queries, but if you play around with it yourself, you\u2019ll discover the many uses of it!<\/p>\n<p>[\/et_pb_text][et_pb_text module_id=&#8221;using&#8221; _builder_version=&#8221;4.20.2&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;]<\/p>\n<h3>Using &#8216;OR&#8217; in queries<\/h3>\n<p>So far, you\u2019ve seen a lot queries that use \u2018and\u2019 to add additional criteria to the query. But you can also use \u2018or\u2019, just like in other functions in Google Sheets such as IF statements.<\/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>Example #13: Using OR in a query<\/h4>\n<p>This example is a replica of an earlier example, but instead of specifying that the age needs to be 25 or younger AND the join date must be between the dates specified, I am specifying that any data point that meets EITHER of these criteria, will pass the filter and appear in the output.<\/p>\n<p>[\/et_pb_text][et_pb_text module_class=&#8221;spreadsheet-function&#8221; _builder_version=&#8221;4.20.2&#8243; border_width_left=&#8221;4px&#8221; locked=&#8221;off&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;]<\/p>\n<p><span>=QUERY(A1:F15,\u201dSelect A, C, E where B &lt;= 25 or E &gt;= data \u20182016-12-25\u2019 and E &lt;= date\u00a0 = \u20182017-01-20\u2019 ,1)<\/span><\/p>\n<p>[\/et_pb_text][et_pb_image src=&#8221;https:\/\/static.sheetgo.com\/wp-content\/uploads\/2021\/10\/google-sheets-query-16.png&#8221; alt=&#8221;google sheets query 16&#8243; title_text=&#8221;google sheets query 16&#8243; _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;headers&#8221; _builder_version=&#8221;4.20.2&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;]<\/p>\n<h3>Headers<\/h3>\n<p>So far, all the examples have been with a single row of headers in the data, and a \u20181\u2019 in the header parameter within the QUERY function. Now, I\u2019ll show you what to do if you have headers spanning multiple rows.<\/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>Example #14: Multiple rows of headers<\/h4>\n<p>The <strong>header<\/strong> parameter is an optional input that comes in handy when your headers span across multiple rows. In such cases, this parameter helps you easily combine the headers in one single row, as shown below.<\/p>\n<p>[\/et_pb_text][et_pb_text module_class=&#8221;spreadsheet-function&#8221; _builder_version=&#8221;4.20.2&#8243; border_width_left=&#8221;4px&#8221; locked=&#8221;off&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;]<\/p>\n<p><span style=\"font-weight: 400;\">=QUERY(A1:F16,&#8221;Select A, B, C, D where F &lt;&gt; &#8220;No&#8221;&#8221;, 2)<\/span><\/p>\n<p>[\/et_pb_text][et_pb_image src=&#8221;https:\/\/static.sheetgo.com\/wp-content\/uploads\/2021\/10\/google-sheets-query-17.png&#8221; alt=&#8221;google sheets query 17&#8243; title_text=&#8221;google sheets query 17&#8243; _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.16&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;]<\/p>\n<p>All you have to do is put a \u20182\u2019 as the <strong>header<\/strong> parameter after the query! However many rows your headers span across, just put that number in the <strong>header<\/strong> parameter \u2013 it\u2019s as simple as that!<\/p>\n<p>[\/et_pb_text][et_pb_text module_id=&#8221;query&#8221; _builder_version=&#8221;4.20.2&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;]<\/p>\n<h3>Query multiple tabs or sheets<\/h3>\n<p>What happens when your data is spread across multiple tabs on your spreadsheet, or even on a different sheet? You can still use the QUERY function across these multiple tabs and sheets!<\/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>Example #15: Query across tabs or sheets<\/h4>\n<p>In this example, you can see how to use the QUERY function across multiple tabs. The key is to have the data in the same format in all sheets \u2013 so in this example, the ages need to in the second column in both sheets. Then, the format changes a bit \u2013 instead of referring to columns by their letter (column A, B, etc.) you\u2019ll need to refer to them by number (Col1, Col2, etc.).<\/p>\n<p>Lastly, you\u2019ll also need to enclose the data ranges in curly braces {} and separate them with a semicolon. Different tabs or sheets are identified with the sheet name followed by an exclamation mark, then the range of cells within the sheet. All this makes more sense when you look at the example below!\n<\/p>\n<p>[\/et_pb_text][et_pb_text module_class=&#8221;spreadsheet-function&#8221; _builder_version=&#8221;4.20.2&#8243; border_width_left=&#8221;4px&#8221; locked=&#8221;off&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;]<\/p>\n<p><span style=\"font-weight: 400;\">=QUERY({Sheet4!A1:F7;Sheet3!A1:F9}, &#8220;Select Col1&#8221;)<\/span><\/p>\n<p>[\/et_pb_text][et_pb_image src=&#8221;https:\/\/static.sheetgo.com\/wp-content\/uploads\/2021\/10\/google-sheets-query-18.png&#8221; alt=&#8221;google sheets query 18&#8243; title_text=&#8221;google sheets query 18&#8243; _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.16&#8243; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;]<\/p>\n<p>Without a doubt, this is one of the complex functions to master in Google Sheets. It could be well worth your time to get a good handle on this one, since it is without a doubt one of the most potent tools in Google Sheets. We encourage you to further explore the <a href=\"https:\/\/support.google.com\/docs\/answer\/3093343?hl=en\" target=\"_blank\" rel=\"noopener\">QUERY<\/a> function <a href=\"https:\/\/developers.google.com\/chart\/interactive\/docs\/querylanguage\" target=\"_blank\" rel=\"noopener\">here<\/a>.<\/p>\n<p>Make sure to check out this relevant blog post about <a href=\"https:\/\/www.sheetgo.com\/blog\/google-sheets-features\/how-to-create-a-pivot-table-in-google-sheets\/\" target=\"_blank\" rel=\"noopener noreferrer\">How to create pivot tables in Google Sheets<\/a>.<\/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; 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>The Google Sheets\u00a0QUERY function is a very powerful and versatile tool. So much so that you can call it a one-stop-shop for all your logical, lookup, summation, counting, averaging, filtering and sorting requirements. The function fetches specific information from a data set through a query statement, much like fetching result sets from a database using [&hellip;]<\/p>\n","protected":false},"author":40,"featured_media":43311,"comment_status":"closed","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\/3093343?hl=en\">QUERY<\/a> formula in Google Sheets is quite a powerful and versatile function. So much so that, we can call it a one-stop-shop for all the logical, lookup, summation, counting, averaging, filtering and sorting requirements. It helps us fetch specific information from a data set, through a query statement. Much like fetching result sets from a database using queries. The syntax of the <a href=\"https:\/\/developers.google.com\/chart\/interactive\/docs\/querylanguage\">query language<\/a> used in this formula is similar to SQL.\n<h3>Syntax<\/h3>\n<strong><span style=\"font-family: courier new,courier,monospace; font-size: 14pt;\">QUERY(data, query, [headers])<\/span><\/strong>\n<ul>\n \t<li><span style=\"font-family: courier new,courier,monospace; font-size: 12pt;\"><strong>data<\/strong><\/span> - is the reference to the range of cells on which we want to query upon.<\/li>\n \t<li><span style=\"font-family: courier new,courier,monospace; font-size: 12pt;\"><strong>query<\/strong><\/span> - is the text using which the QUERY formula churns out the information we are looking for from the data set. Since it is expected to be a string, it has to be enclosed within a set of quotes. Or, it can also be a reference to a cell, where the query text is stored.<\/li>\n \t<li><span style=\"font-family: courier new,courier,monospace; font-size: 12pt;\"><strong>headers<\/strong><\/span> - is an optional parameter that indicates the number of header rows at the top of the data. If left out, Google Sheets guesses the value based on the content within the <span style=\"font-size: 12pt; font-family: courier new,courier,monospace;\"><strong>data<\/strong><\/span>.<\/li>\n<\/ul>\n<h3>Usage: Query Formula<\/h3>\nFirst of all, to understand how the formula is put to use, let us consider the following sample data. It consists of information corresponding to a list of students who have enrolled into various courses at a university. For all the demonstration purposes, we'll enter the formula in the cell G1. And, it will be displayed in the formula bar in the snapshots.\n\n<img class=\"aligncenter size-full wp-image-2764\" src=\"https:\/\/static.sheetgo.com\/wp-content\/uploads\/2017\/11\/query1.png\" alt=\"QUERY Formula - Illustration 1\" width=\"617\" height=\"388\" \/>\n<h5>Example # 1:<\/h5>\nWe will start off with a very fundamental demonstration. So, we use the QUERY formula to fetch the names of the students who are residing on campus.\n\n<img class=\"aligncenter size-full wp-image-2765\" src=\"https:\/\/static.sheetgo.com\/wp-content\/uploads\/2017\/11\/query2.png\" alt=\"QUERY Formula - Illustration 2\" width=\"718\" height=\"412\" \/>\n<h5>Example # 2:<\/h5>\nHaving dealt with the basic example, let us now try fetching the names of the students who are NOT residing on campus.\n\n<img class=\"aligncenter size-full wp-image-2766\" src=\"https:\/\/static.sheetgo.com\/wp-content\/uploads\/2017\/11\/query3.png\" alt=\"QUERY Formula - Illustration 3\" width=\"718\" height=\"414\" \/>\n<h5>Example # 3:<\/h5>\nNow, we will fetch the names, ages, departments of the students whose have taken more than 7 courses.\n\n<img class=\"aligncenter size-full wp-image-2767\" src=\"https:\/\/static.sheetgo.com\/wp-content\/uploads\/2017\/11\/query4.png\" alt=\"QUERY Formula - Illustration 4\" width=\"919\" height=\"413\" \/>\n<h5>Example # 4:<\/h5>\nWe will now attempt taking this a step further. We bring up the names, departments, join dates of the students aged 25 or below, and have joined the university between 25-Dec-2016 and 20-Jan-2017. Please note, in the query text, the dates always have to go with yyyy-mm-dd format, enclosed within single quotes.\n\n<img class=\"aligncenter size-full wp-image-2768\" src=\"https:\/\/static.sheetgo.com\/wp-content\/uploads\/2017\/11\/query5.png\" alt=\"QUERY Formula - Illustration 5\" width=\"919\" height=\"414\" \/>\n<h5>Example # 5:<\/h5>\nWhat if we need to reference the date from a cell? No problem there! We will get around with the help of\u00a0 concatenating operators and a text function. Therefore, in the example below, we will get the names and join dates of the students whose joined after 1-Jan-2017.\n\n<img class=\"aligncenter size-full wp-image-2769\" src=\"https:\/\/static.sheetgo.com\/wp-content\/uploads\/2017\/11\/query6.png\" alt=\"QUERY Formula - Illustration 6\" width=\"919\" height=\"413\" \/>\n<h5>Example # 6:<\/h5>\nIs there a way to list out all the departments and the display number of courses taken from the respective department? Yes, there is! And, we might as well understand the power and versatility that the QUERY formula offers.\n\n<img class=\"aligncenter size-full wp-image-2770\" src=\"https:\/\/static.sheetgo.com\/wp-content\/uploads\/2017\/11\/query7.png\" alt=\"QUERY Formula - Illustration 7\" width=\"818\" height=\"412\" \/>\n\nYou will notice that the QUERY formula returned the second column with the header \"sum Courses\". Honestly, it is a bit awkward to have that for a header. But, we can fix that and rename it. Not only that, we will also use the second column (now renamed to 'Courses Taken') to sort in ascending order. Here is how we do it.\n\n<img class=\"aligncenter size-full wp-image-2771\" src=\"https:\/\/static.sheetgo.com\/wp-content\/uploads\/2017\/11\/query8.png\" alt=\"QUERY Formula - Illustration 8\" width=\"819\" height=\"412\" \/>\n<h5>Example # 7:<\/h5>\nCan we display the number of instances of each of the departments? Of course, we can! The QUERY formula got us covered here as well.\n\n<img class=\"aligncenter size-full wp-image-2774\" src=\"https:\/\/static.sheetgo.com\/wp-content\/uploads\/2017\/11\/query9.png\" alt=\"QUERY Formula - Illustration 9\" width=\"817\" height=\"413\" \/>\n<h5>Example # 8:<\/h5>\nConsequently, we will now experiment with the third parameter. While this is an optional input, it might come handy when we come across headers that span across multiple rows. In such cases, this parameter helps us combine the headers in one single row, as shown below.\n\n<img class=\"aligncenter size-full wp-image-2775\" src=\"https:\/\/static.sheetgo.com\/wp-content\/uploads\/2017\/11\/query10.png\" alt=\"QUERY Formula - Illustration 10\" width=\"1026\" height=\"436\" \/>\n\nWithout a doubt, this is one of the complex formulas to master in Google Sheets. Get a good hang on this one and it could serve you as one of the most potent tools. We encourage you to further explore the <a href=\"https:\/\/support.google.com\/docs\/answer\/3093343?hl=en\">QUERY<\/a> formula <a href=\"https:\/\/developers.google.com\/chart\/interactive\/docs\/querylanguage\">here<\/a>.\n\nCheck out a relevant blog post about \"<strong><a href=\"https:\/\/www.sheetgo.com\/blog\/spreadsheets-tips\/why-you-need-to-structure-your-spreadsheets-like-a-database\/\">Why You Need To Structure Your Spreadsheets Like A Database<\/a><\/strong>\".","_et_gb_content_width":"","footnotes":""},"categories":[54],"tags":[39,28],"class_list":["post-2762","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\/2762","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=2762"}],"version-history":[{"count":0,"href":"https:\/\/www.sheetgo.com\/fr\/wp-json\/wp\/v2\/posts\/2762\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.sheetgo.com\/fr\/wp-json\/wp\/v2\/media\/43311"}],"wp:attachment":[{"href":"https:\/\/www.sheetgo.com\/fr\/wp-json\/wp\/v2\/media?parent=2762"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.sheetgo.com\/fr\/wp-json\/wp\/v2\/categories?post=2762"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.sheetgo.com\/fr\/wp-json\/wp\/v2\/tags?post=2762"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}