{"id":4119,"date":"2017-04-27T19:41:56","date_gmt":"2017-04-27T17:41:56","guid":{"rendered":"https:\/\/www.sheetgo.com\/?p=4119"},"modified":"2017-04-27T19:41:56","modified_gmt":"2017-04-27T17:41:56","slug":"edate-formula-google-sheets","status":"publish","type":"post","link":"https:\/\/www.sheetgo.com\/es\/blog\/google-sheets-formulas\/edate-formula-google-sheets\/","title":{"rendered":"C\u00f3mo utilizar la f\u00f3rmula EDATE en 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 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>In Google Sheets application, if we need to know the date a specified number of months before or after a given date, the<span>\u00a0<\/span><a href=\"https:\/\/support.google.com\/docs\/answer\/3092974\" target=\"_blank\" rel=\"noopener noreferrer\">EDATE<\/a><span>\u00a0<\/span>formula can help us do so.<\/p>\n<h3>Syntax<\/h3>\n<p><span><strong>EDATE(start_date, months)<\/strong><\/span><\/p>\n<ul>\n<li><span><strong>start_date<\/strong><\/span><span>\u00a0<\/span>\u2013 is the date that the EDATE formula calculates the prior or later date separated by the specified number of<span>\u00a0<\/span><span><strong>months<\/strong><\/span>.<\/li>\n<li><span><strong>months<\/strong><\/span><span>\u00a0<\/span>\u2013 is the number of months that the formula should move either in forward or backward in time, corresponding to a positive value or a negative value respectively.<\/li>\n<\/ul>\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: EDATE Formula<\/h3>\n<p>Let us understand it\u2019s working by making use of a few examples. Please consider the snapshot below. Please note that we have preset the Result column format to \u201cdd-mmm-yyyy\u201d, for the purposes of avoiding ambiguity (given that the date notations varies across countries).<\/p>\n<p>[\/et_pb_text][et_pb_image src=&#8221;https:\/\/static.sheetgo.com\/wp-content\/uploads\/2021\/10\/EDATE-formula-1.png&#8221; alt=&#8221;EDATE formula 1&#8243; title_text=&#8221;EDATE 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>In the first example case, the<span>\u00a0<\/span><span><strong>start_date<\/strong><\/span><span>\u00a0<\/span>parameter takes in the output that the<span>\u00a0<\/span><a href=\"https:\/\/www.sheetgo.com\/blog\/google-sheets-formulas\/date-formula-google-sheets\/\" target=\"_blank\" rel=\"noopener noreferrer\">DATE() function<\/a><span>\u00a0<\/span>returned. And we have set the<span>\u00a0<\/span><span><strong>months<\/strong><\/span><span>\u00a0<\/span>parameter to \u20184\u2019. Therefore, the formula calculates the result date that is 4 months ahead of 15-Mar-2017.<\/p>\n<p>The second example is pretty similar, except for the<span>\u00a0<\/span><span><strong>start_date<\/strong><\/span><span>\u00a0<\/span>parameter, we provided a reference to the cell that has a date.<\/p>\n<p>Unlike the previous two cases, the<span>\u00a0<\/span><span><strong>start_date<\/strong><\/span><span>\u00a0<\/span>for the third case is an absolute number. And also, we have keyed in a negative value for the<span>\u00a0<\/span><span><strong>month\u2019s<\/strong><\/span><span>\u00a0<\/span>parameter. The EDATE formula calculates the resulting date by shifting the time from the date value 42846 (equivalent to 21-Apr-2017) back by nine months.<\/p>\n<p>Let us take a look at the fourth case. At the time of writing this post, the date was 21-Apr-2017 (which, the TODAY() function evaluated to in the second example). Factoring a shift of 45 days we added to the TODAY() function, along with a value of -38 for<span>\u00a0<\/span><span><strong>months<\/strong><\/span><span>\u00a0<\/span>parameter, we get the last date of the month as 05-Apr-2014.<\/p>\n<h5>Cases of interest<\/h5>\n<p>Let us experiment a little further and input text based date values for the<span>\u00a0<\/span><span><strong>start_date<\/strong><\/span>parameter.<\/p>\n<p>[\/et_pb_text][et_pb_image src=&#8221;https:\/\/static.sheetgo.com\/wp-content\/uploads\/2021\/10\/EDATE-formula-2.png&#8221; alt=&#8221;EDATE formula 2&#8243; title_text=&#8221;EDATE 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>In the first example, the formula truncates the decimal values and uses only the integer values and accordingly evaluates the resulting date. Of course, it cannot accept negative numbers, as there is no date interpretation for such values.<\/p>\n<p>From the next three examples, we will that the EDATE formula accepts input date strings in the \u201cdd-mmm-yyyy\u201d and \u201cmm-dd-yyyy\u201d formats. But it will throw up an error with \u201cdd-mm-yyyy\u201d date format strings.<\/p>\n<p>[\/et_pb_text][\/et_pb_column][\/et_pb_row][\/et_pb_section]<\/p>\n","protected":false},"excerpt":{"rendered":"<p>In Google Sheets application, if we need to know the date a specified number of months before or after a given date, the\u00a0EDATE\u00a0formula can help us do so. Syntax EDATE(start_date, months) start_date\u00a0\u2013 is the date that the EDATE formula calculates the prior or later date separated by the specified number of\u00a0months. months\u00a0\u2013 is the number [&hellip;]<\/p>\n","protected":false},"author":40,"featured_media":4198,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"_et_pb_use_builder":"on","_et_pb_old_content":"In Google Sheets application, if we need to know the date a specified number of months before or after a given date, the <a href=\"https:\/\/support.google.com\/docs\/answer\/3092974\" target=\"_blank\" rel=\"noopener noreferrer\">EDATE<\/a> formula can help us do so.\n<h3>Syntax<\/h3>\n<span style=\"font-family: courier new,courier,monospace; font-size: 14pt;\"><strong>EDATE(start_date, months)<\/strong><\/span>\n<ul>\n \t<li><span style=\"font-family: courier new,courier,monospace; font-size: 12pt;\"><strong>start_date<\/strong><\/span> - is the date that the EDATE formula calculates the prior or later date separated by the specified number of <span style=\"font-family: courier new,courier,monospace; font-size: 12pt;\"><strong>months<\/strong><\/span>.<\/li>\n \t<li><span style=\"font-family: courier new,courier,monospace; font-size: 12pt;\"><strong>months<\/strong><\/span> - is the number of months that the formula should move either in forward or backward in time, corresponding to a positive value or a negative value respectively.<\/li>\n<\/ul>\n<h3>Usage: EDATE Formula<\/h3>\nLet us understand it's working by making use of a few examples. Please consider the snapshot below. Please note that we have preset the Result column format to \"dd-mmm-yyyy\", for the purposes of avoiding ambiguity (given that the date notations varies across countries).\n\n<img class=\"aligncenter size-full wp-image-4132\" src=\"https:\/\/static.sheetgo.com\/wp-content\/uploads\/2017\/10\/frame-generic-16.png\" alt=\"EDATE Formula - Illustration 1\" width=\"474\" height=\"172\" \/>\n\nIn the first example case, the <span style=\"font-family: courier new,courier,monospace; font-size: 12pt;\"><strong>start_date<\/strong><\/span> parameter takes in the output that the DATE() function returned. And we have set the <span style=\"font-family: courier new,courier,monospace; font-size: 12pt;\"><strong>months<\/strong><\/span> parameter to '4'. Therefore, the formula calculates the result date that is 4 months ahead of 15-Mar-2017.\n\nThe second example is pretty similar, except for the <span style=\"font-family: courier new,courier,monospace; font-size: 12pt;\"><strong>start_date<\/strong><\/span> parameter, we provided a reference to the cell that has a date.\n\nUnlike the previous two cases, the <span style=\"font-family: courier new,courier,monospace; font-size: 12pt;\"><strong>start_date<\/strong><\/span> for the third case is an absolute number. And also, we have keyed in a negative value for the <span style=\"font-family: courier new,courier,monospace; font-size: 12pt;\"><strong>month's<\/strong><\/span> parameter. The EDATE formula calculates the resulting date by shifting the time from the date value 42846 (equivalent to 21-Apr-2017) back by nine months.\n\nLet us take a look at the fourth case. At the time of writing this post, the date was 21-Apr-2017 (which, the TODAY() function evaluated to in the second example). Factoring a shift of 45 days we added to the TODAY() function, along with a value of -38 for <span style=\"font-family: courier new,courier,monospace; font-size: 12pt;\"><strong>months<\/strong><\/span> parameter, we get the last date of the month as 05-Apr-2014.\n<h5>Cases of interest<\/h5>\nLet us experiment a little further and input text based date values for the <span style=\"font-family: courier new,courier,monospace; font-size: 12pt;\"><strong>start_date<\/strong><\/span> parameter.\n\n<img class=\"aligncenter size-full wp-image-4133\" src=\"https:\/\/static.sheetgo.com\/wp-content\/uploads\/2017\/10\/frame-generic-17.png\" alt=\"EDATE Formula - Illustration 2\" width=\"564\" height=\"296\" \/>\n\nIn the first example, the formula truncates the decimal values and uses only the integer values and accordingly evaluates the resulting date. Of course, it cannot accept negative numbers, as there is no date interpretation for such values.\n\nFrom the next three examples, we will that the EDATE formula accepts input date strings in the \"dd-mmm-yyyy\" and \"mm-dd-yyyy\" formats. But it will throw up an error with \"dd-mm-yyyy\" date format strings.","_et_gb_content_width":"","footnotes":""},"categories":[54],"tags":[39,28],"class_list":["post-4119","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\/es\/wp-json\/wp\/v2\/posts\/4119","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.sheetgo.com\/es\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.sheetgo.com\/es\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.sheetgo.com\/es\/wp-json\/wp\/v2\/users\/40"}],"replies":[{"embeddable":true,"href":"https:\/\/www.sheetgo.com\/es\/wp-json\/wp\/v2\/comments?post=4119"}],"version-history":[{"count":0,"href":"https:\/\/www.sheetgo.com\/es\/wp-json\/wp\/v2\/posts\/4119\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.sheetgo.com\/es\/wp-json\/wp\/v2\/media\/4198"}],"wp:attachment":[{"href":"https:\/\/www.sheetgo.com\/es\/wp-json\/wp\/v2\/media?parent=4119"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.sheetgo.com\/es\/wp-json\/wp\/v2\/categories?post=4119"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.sheetgo.com\/es\/wp-json\/wp\/v2\/tags?post=4119"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}