{"id":4242,"date":"2017-05-06T23:10:48","date_gmt":"2017-05-06T21:10:48","guid":{"rendered":"https:\/\/www.sheetgo.com\/?p=4242"},"modified":"2017-05-06T23:10:48","modified_gmt":"2017-05-06T21:10:48","slug":"formule-row-google-sheets","status":"publish","type":"post","link":"https:\/\/www.sheetgo.com\/fr\/blog\/google-sheets-formulas\/row-formula-google-sheets\/","title":{"rendered":"Comment utiliser la formule ROW 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.16&#8243; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;][et_pb_row _builder_version=&#8221;4.27.2&#8243; _module_preset=&#8221;default&#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.27.2&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;][et_pb_text _builder_version=&#8221;4.27.2&#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>The<span>\u00a0<\/span><a href=\"https:\/\/support.google.com\/docs\/answer\/3093316?hl=en\" target=\"_blank\" rel=\"noopener noreferrer\">ROW<\/a><span>\u00a0<\/span>formula is one of the lookup functions available within Google Sheets. It gives us the row number where the specified cell or a range of cells are located.<\/p>\n<p>[\/et_pb_text][\/et_pb_column][\/et_pb_row][et_pb_row _builder_version=&#8221;4.27.2&#8243; _module_preset=&#8221;default&#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.27.2&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;][et_pb_text admin_label=&#8221;Connections T &#8211; Automate beyond importrange &#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; saved_tabs=&#8221;all&#8221; global_colors_info=&#8221;{}&#8221; global_module=&#8221;50462&#8243; theme_builder_area=&#8221;post_content&#8221;]<img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/static.sheetgo.com\/wp-content\/uploads\/2024\/09\/Add-on-sm_sheets-connected-new-connection.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 beyond Importrange<\/span><\/p>\n<p><a href=\"https:\/\/www.sheetgo.com\/connections\/\" target=\"_blank\" rel=\"noopener\">Find out how<\/a>[\/et_pb_text][\/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 _builder_version=&#8221;4.27.2&#8243; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;]<\/p>\n<h2>Syntax<\/h2>\n<p><span><strong>ROW([cell_reference])<\/strong><\/span><\/p>\n<p><span><strong>cell_reference<\/strong><\/span><span>\u00a0<\/span>\u2013 is the address reference to the cell whose row number we need. This is an optional parameter. So, if not specified, the ROW formula considers the address of the cell where we keyed in the formula.<\/p>\n<p>Please note that if the<span>\u00a0<\/span><span><strong>cell_reference<\/strong><\/span><span>\u00a0<\/span>parameter is not a single cell, but is a range of multiple cells, the formula returns only the row number of the first row within the<span>\u00a0<\/span><span><strong>cell_reference<\/strong><\/span>.<\/p>\n<h3>Usage: ROW Formula<\/h3>\n<p>Let us get our understanding of the formula more concrete by means of a few examples. Please see the snapshot below.<\/p>\n<p>[\/et_pb_text][et_pb_image src=&#8221;https:\/\/static.sheetgo.com\/wp-content\/uploads\/2021\/06\/ROW-FORMULA-GOOGLE-SHEETS-1.png&#8221; alt=&#8221;ROW FORMULA GOOGLE SHEETS 1&#8243; title_text=&#8221;ROW FORMULA GOOGLE SHEETS 1&#8243; align=&#8221;center&#8221; module_class=&#8221;sheetgo-post-no-shadow-img&#8221; _builder_version=&#8221;4.21.2&#8243; width=&#8221;90%&#8221; max_width=&#8221;640px&#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>The first example took A2 for<span>\u00a0<\/span><span><strong>cell_reference<\/strong><\/span><span>\u00a0<\/span>and accordingly returned 2 as output. Similarly, for A6, it returned 6 as output for the second example. The third case doesn\u2019t have any input for the<span>\u00a0<\/span><span><strong>cell_reference<\/strong><\/span>, hence it returned the row number of the cell in which we keyed in the formula.<\/p>\n<p>In the fifth example, we provided an address to a range of cells as opposed to a single cell. And, it returned the number of the first row within the range A2:A6, which is 2.<\/p>\n<p>It is interesting to note that we provided a named range reference as input for the<span>\u00a0<\/span><span><strong>cell_reference<\/strong><\/span><span>\u00a0<\/span>parameter in the last example case. As shown on the extreme right of the above image, the \u201cAges\u201d range spans from B1 to B6. Therefore, the result is the first row number of range B1:B6.<\/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<h5>Use case: Auto-filling numbers<\/h5>\n<p>One of the useful ways we can use the ROW formula is when we use it in conjunction with the<span>\u00a0<\/span><a href=\"https:\/\/www.sheetgo.com\/blog\/google-sheets-formulas\/arrayformula-google-sheets\/\" target=\"_blank\" rel=\"noopener noreferrer\">ARRAYFORMULA<\/a>. We use the following method to have Google Sheets fill up series of numbers for us without having to enter them ourselves.<\/p>\n<p>[\/et_pb_text][et_pb_image src=&#8221;https:\/\/static.sheetgo.com\/wp-content\/uploads\/2021\/06\/ROW-FORMULA-GOOGLE-SHEETS-2.png&#8221; alt=&#8221;ROW FORMULA GOOGLE SHEETS 2&#8243; title_text=&#8221;ROW FORMULA GOOGLE SHEETS 2&#8243; align=&#8221;center&#8221; module_class=&#8221;sheetgo-post-no-shadow-img&#8221; _builder_version=&#8221;4.21.2&#8243; width=&#8221;90%&#8221; max_width=&#8221;640px&#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><span>This utility of the formula is very handy indeed. Even if we try and insert a row anywhere between the existing rows, the numbering automatically is taken care of. We will insert a row between rows 6 and 7 as shown below. And we will notice we don\u2019t have to do anything to adjust the numbering \u2013 Google Sheets does that for us automatically.<\/span><\/p>\n<p>[\/et_pb_text][et_pb_image src=&#8221;https:\/\/static.sheetgo.com\/wp-content\/uploads\/2017\/10\/frame-generic-6.png&#8221; alt=&#8221;ROW Formula: Inserting a Number &#8221; title_text=&#8221;insert-a-number&#8221; align=&#8221;center&#8221; module_class=&#8221;sheetgo-post-no-shadow-img&#8221; _builder_version=&#8221;4.21.2&#8243; width=&#8221;60%&#8221; max_width=&#8221;640px&#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><span>But then, there is a small problem. What if we try inserting a row above the cell A1? Doing so would shift the cell down and accordingly adjusts the formula as shown below, which is probably undesirable.<\/span><\/p>\n<p>[\/et_pb_text][et_pb_image src=&#8221;https:\/\/static.sheetgo.com\/wp-content\/uploads\/2017\/10\/frame-generic-7.png&#8221; alt=&#8221;ROW Formula: Inserting a Row&#8221; title_text=&#8221;insert-a-row&#8221; align=&#8221;center&#8221; module_class=&#8221;sheetgo-post-no-shadow-img&#8221; _builder_version=&#8221;4.16&#8243; width=&#8221;60%&#8221; max_width=&#8221;640px&#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><span>We can fix this issue using the\u00a0<\/span><a href=\"https:\/\/www.sheetgo.com\/blog\/google-sheets-formulas\/indirect-formula-google-sheets\/\" target=\"_blank\" rel=\"noopener noreferrer\">INDIRECT<\/a><span>\u00a0formula as shown below. Even if we insert a row above, it doesn\u2019t affect the numbering. However, the address reference 1:12 has now become static. So, inserting rows between 1 through 12 will not adjust the reference to 1:13 anymore (like it did in the third snapshot).<\/span><\/p>\n<p>[\/et_pb_text][et_pb_image src=&#8221;https:\/\/static.sheetgo.com\/wp-content\/uploads\/2017\/10\/frame-generic-8.png&#8221; alt=&#8221;ROW Formula: Using Indirect Formula&#8221; title_text=&#8221;indirect-formula&#8221; align=&#8221;center&#8221; module_class=&#8221;sheetgo-post-no-shadow-img&#8221; _builder_version=&#8221;4.16&#8243; width=&#8221;60%&#8221; max_width=&#8221;640px&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;][\/et_pb_image][\/et_pb_column][\/et_pb_row][\/et_pb_section]<\/p>\n","protected":false},"excerpt":{"rendered":"<p>The\u00a0ROW\u00a0formula is one of the lookup functions available within Google Sheets. It gives us the row number where the specified cell or a range of cells are located. Automate data transfers beyond Importrange Find out howSyntax ROW([cell_reference]) cell_reference\u00a0\u2013 is the address reference to the cell whose row number we need. This is an optional parameter. [&hellip;]<\/p>\n","protected":false},"author":40,"featured_media":4379,"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\/3093316?hl=en\" target=\"_blank\" rel=\"noopener\">ROW<\/a> formula is one of the lookup functions available within Google Sheets. It gives us the row number where the specified cell or a range of cells are located.\n<h3>Syntax<\/h3>\n<span style=\"font-family: courier new,courier,monospace; font-size: 14pt;\"><strong>ROW([cell_reference])<\/strong><\/span>\n\n<span style=\"font-family: courier new,courier,monospace; font-size: 12pt;\"><strong>cell_reference<\/strong><\/span> - is the address reference to the cell whose row number we need. This is an optional parameter. So, if not specified, the ROW formula considers the address of the cell where we keyed in the formula.\n\nPlease note that if the <span style=\"font-family: courier new,courier,monospace; font-size: 12pt;\"><strong>cell_reference<\/strong><\/span> parameter is not a single cell, but is a range of multiple cells, the formula returns only the row number of the first row within the <span style=\"font-family: courier new,courier,monospace; font-size: 12pt;\"><strong>cell_reference<\/strong><\/span>.\n<h3>Usage: ROW Formula<\/h3>\nLet us get our understanding of the formula more concrete by means of a few examples. Please see the snapshot below.\n\n<img class=\"aligncenter size-full wp-image-4259\" src=\"https:\/\/static.sheetgo.com\/wp-content\/uploads\/2017\/10\/frame-generic-4.png\" alt=\"ROW Formula - Illustration 1\" width=\"688\" height=\"233\">\n\nThe first example took A2 for <span style=\"font-family: courier new,courier,monospace; font-size: 12pt;\"><strong>cell_reference<\/strong><\/span> and accordingly returned 2 as output. Similarly, for A6, it returned 6 as output for the second example. The third case doesn't have any input for the <span style=\"font-family: courier new,courier,monospace; font-size: 12pt;\"><strong>cell_reference<\/strong><\/span>, hence it returned the row number of the cell in which we keyed in the formula.\n\nIn the fifth example, we provided an address to a range of cells as opposed to a single cell. And, it returned the number of the first row within the range A2:A6, which is 2.\n\nIt is interesting to note that we provided a named range reference as input for the <span style=\"font-family: courier new,courier,monospace; font-size: 12pt;\"><strong>cell_reference<\/strong><\/span> parameter in the last example case. As shown on the extreme right of the above image, the \"Ages\" range spans from B1 to B6. Therefore, the result is the first row number of range B1:B6.\n<h5>Use case: Auto-filling numbers<\/h5>\nOne of the useful ways we can use the ROW formula is when we use it in conjunction with the <a href=\"https:\/\/www.sheetgo.com\/arrayformula-google-sheets\/\" target=\"_blank\" rel=\"noopener\">ARRAYFORMULA<\/a>. We use the following method to have Google Sheets fill up series of numbers for us without having to enter them ourselves.\n\n<img class=\"aligncenter size-full wp-image-4260\" src=\"https:\/\/static.sheetgo.com\/wp-content\/uploads\/2017\/10\/frame-generic-5.png\" alt=\"ROW Formula - Illustration 2\" width=\"327\" height=\"338\">\n\nThis utility of the formula is very handy indeed. Even if we try and insert a row anywhere between the existing rows, the numbering automatically is taken care of. We will insert a row between rows 6 and 7 as shown below. And we will notice we don't have to do anything to adjust the numbering - Google Sheets does that for us automatically.\n\n<img class=\"aligncenter size-full wp-image-4261\" src=\"https:\/\/static.sheetgo.com\/wp-content\/uploads\/2017\/10\/frame-generic-6.png\" alt=\"ROW Formula - Illustration 3\" width=\"327\" height=\"338\">\n\nBut then, there is a small problem. What if we try inserting a row above the cell A1? Doing so would shift the cell down and accordingly adjusts the formula as shown below, which is probably undesirable.\n\n<img class=\"aligncenter size-full wp-image-4262\" src=\"https:\/\/static.sheetgo.com\/wp-content\/uploads\/2017\/10\/frame-generic-7.png\" alt=\"ROW Formula - Illustration 4\" width=\"328\" height=\"360\">\n\nWe can fix this issue using the <a href=\"https:\/\/www.sheetgo.com\/indirect-formula-google-sheets\/\" target=\"_blank\" rel=\"noopener\">INDIRECT<\/a> formula as shown below. Even if we insert a row above, it doesn't affect the numbering. However, the address reference 1:12 has now become static. So, inserting rows between 1 through 12 will not adjust the reference to 1:13 anymore (like it did in the third snapshot).\n\n<img class=\"aligncenter size-full wp-image-4264\" src=\"https:\/\/static.sheetgo.com\/wp-content\/uploads\/2017\/10\/frame-generic-8.png\" alt=\"ROW Formula - Illustration 5\" width=\"327\" height=\"360\">\n\n&nbsp;","_et_gb_content_width":"","footnotes":""},"categories":[54],"tags":[39,28],"class_list":["post-4242","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\/4242","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=4242"}],"version-history":[{"count":0,"href":"https:\/\/www.sheetgo.com\/fr\/wp-json\/wp\/v2\/posts\/4242\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.sheetgo.com\/fr\/wp-json\/wp\/v2\/media\/4379"}],"wp:attachment":[{"href":"https:\/\/www.sheetgo.com\/fr\/wp-json\/wp\/v2\/media?parent=4242"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.sheetgo.com\/fr\/wp-json\/wp\/v2\/categories?post=4242"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.sheetgo.com\/fr\/wp-json\/wp\/v2\/tags?post=4242"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}