{"id":4267,"date":"2017-05-06T23:08:07","date_gmt":"2017-05-06T21:08:07","guid":{"rendered":"https:\/\/www.sheetgo.com\/?p=4267"},"modified":"2017-05-06T23:08:07","modified_gmt":"2017-05-06T21:08:07","slug":"column-formula-google-sheets","status":"publish","type":"post","link":"https:\/\/www.sheetgo.com\/pt\/blog\/google-sheets-formulas\/column-formula-google-sheets\/","title":{"rendered":"Como usar a f\u00f3rmula COLUMN 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.16&#8243; 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\/3093373?hl=en\" target=\"_blank\" rel=\"noopener noreferrer\">COLUMN<\/a><span>\u00a0<\/span>formula is one of the lookup functions available within Google Sheets. It gives us the column number where the specified cell or a range of cells are located.<\/p>\n<h3>Syntax<\/h3>\n<p><span><strong>COLUMN([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 column number we need. This is an optional parameter. So, if not specified, the COLUMN 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 column number of the first column within the<span>\u00a0<\/span><span><strong>cell_reference<\/strong><\/span>.<\/p>\n<p>&nbsp;<\/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<h3>Usage: COLUMN 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\/10\/COLUMN-formula-1.png&#8221; alt=&#8221;COLUMN formula 1&#8243; title_text=&#8221;COLUMN formula 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>The first example took B1 for<span>\u00a0<\/span><span><strong>cell_reference<\/strong><\/span><span>\u00a0<\/span>and accordingly returned 2 as output. Similarly, for F1, 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 column number of the cell in which we keyed in the formula.<\/p>\n<p>In the fourth example, we provided an address to a range of cells as opposed to a single cell. And, it returned the number of the first column within the range B1:F1, 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 \u201cCOLUMN1!Ages\u201d range spans from A2 to F2. Therefore, the result is the first column number of range A1:F2.<\/p>\n<h5>Use case: Auto-filling numbers<\/h5>\n<p>One of the useful ways we can use the COLUMN 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\/10\/COLUMN-formula-2.png&#8221; alt=&#8221;COLUMN formula 2&#8243; title_text=&#8221;COLUMN formula 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 _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 above formula is very handy indeed. Even if we try and insert a column anywhere between the existing columns, the numbering is taken care of automatically. To illustrate this, we will insert a column between columns F and G 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\/2021\/10\/COLUMN-formula-3.png&#8221; alt=&#8221;COLUMN formula 3&#8243; title_text=&#8221;COLUMN formula 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<p><span>But then, there is a small problem. What if we try inserting a column above the before cell A1? Doing so would shift the cell right 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\/2021\/10\/COLUMN-formula-4.png&#8221; alt=&#8221;COLUMN formula 4&#8243; title_text=&#8221;COLUMN formula 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; 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 column before, it doesn\u2019t affect the numbering. However, the address reference A:L has now become static. So, inserting columns between A through L will not adjust the reference to A:M 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\/2021\/10\/COLUMN-formula-5.png&#8221; alt=&#8221;COLUMN formula 5&#8243; title_text=&#8221;COLUMN formula 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_column][\/et_pb_row][\/et_pb_section]<\/p>\n","protected":false},"excerpt":{"rendered":"<p>The\u00a0COLUMN\u00a0formula is one of the lookup functions available within Google Sheets. It gives us the column number where the specified cell or a range of cells are located. Syntax COLUMN([cell_reference]) cell_reference\u00a0\u2013 is the address reference to the cell whose column number we need. This is an optional parameter. So, if not specified, the COLUMN formula [&hellip;]<\/p>\n","protected":false},"author":40,"featured_media":4382,"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\/3093373?hl=en\" target=\"_blank\" rel=\"noopener\">COLUMN<\/a> formula is one of the lookup functions available within Google Sheets. It gives us the column 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>COLUMN([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 column number we need. This is an optional parameter. So, if not specified, the COLUMN 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 column number of the first column within the <span style=\"font-family: courier new,courier,monospace; font-size: 12pt;\"><strong>cell_reference<\/strong><\/span>.\n<h3>Usage: COLUMN 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-4270\" src=\"https:\/\/static.sheetgo.com\/wp-content\/uploads\/2017\/10\/frame-generic-9.png\" alt=\"COLUMN Formula - Illustration 1\" width=\"1091\" height=\"181\" \/>\n\nThe first example took B1 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 F1, 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 column number of the cell in which we keyed in the formula.\n\nIn the fourth example, we provided an address to a range of cells as opposed to a single cell. And, it returned the number of the first column within the range B1:F1, 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 \"COLUMN1!Ages\" range spans from A2 to F2. Therefore, the result is the first column number of range A1:F2.\n<h5>Use case: Auto-filling numbers<\/h5>\nOne of the useful ways we can use the COLUMN 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-4272\" src=\"https:\/\/static.sheetgo.com\/wp-content\/uploads\/2017\/10\/frame-generic-10.png\" alt=\"COLUMN Formula - Illustration 2\" width=\"671\" height=\"95\" \/>\n\nThis utility of the above formula is very handy indeed. Even if we try and insert a column anywhere between the existing columns, the numbering is taken care of automatically. To illustrate this, we will insert a column between columns F and G 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-4274\" src=\"https:\/\/static.sheetgo.com\/wp-content\/uploads\/2017\/10\/frame-generic-11.png\" alt=\"COLUMN Formula - Illustration 3\" width=\"719\" height=\"95\" \/>\n\nBut then, there is a small problem. What if we try inserting a column above the before cell A1? Doing so would shift the cell right and accordingly adjusts the formula as shown below, which is probably undesirable.\n\n<img class=\"aligncenter size-full wp-image-4275\" src=\"https:\/\/static.sheetgo.com\/wp-content\/uploads\/2017\/10\/frame-generic-12.png\" alt=\"COLUMN Formula - Illustration 4\" width=\"719\" height=\"95\" \/>\n\nWe can fix this issue using the <a href=\"https:\/\/www.sheetgo.com\/indirect-formula-google-sheets\/\">INDIRECT<\/a> formula as shown below. Even if we insert a column before, it doesn't affect the numbering. However, the address reference A:L has now become static. So, inserting columns between A through L will not adjust the reference to A:M anymore (like it did in the third snapshot).\n\n<img class=\"aligncenter size-full wp-image-4276\" src=\"https:\/\/static.sheetgo.com\/wp-content\/uploads\/2017\/10\/frame-generic-13.png\" alt=\"COLUMN Formula - Illustration 5\" width=\"719\" height=\"95\" \/>\n\n&nbsp;","_et_gb_content_width":"","footnotes":""},"categories":[54],"tags":[39,28],"class_list":["post-4267","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\/pt\/wp-json\/wp\/v2\/posts\/4267","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\/40"}],"replies":[{"embeddable":true,"href":"https:\/\/www.sheetgo.com\/pt\/wp-json\/wp\/v2\/comments?post=4267"}],"version-history":[{"count":0,"href":"https:\/\/www.sheetgo.com\/pt\/wp-json\/wp\/v2\/posts\/4267\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.sheetgo.com\/pt\/wp-json\/wp\/v2\/media\/4382"}],"wp:attachment":[{"href":"https:\/\/www.sheetgo.com\/pt\/wp-json\/wp\/v2\/media?parent=4267"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.sheetgo.com\/pt\/wp-json\/wp\/v2\/categories?post=4267"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.sheetgo.com\/pt\/wp-json\/wp\/v2\/tags?post=4267"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}