{"id":8568,"date":"2018-06-11T12:00:04","date_gmt":"2018-06-11T10:00:04","guid":{"rendered":"https:\/\/blog.sheetgo.com\/?p=8568"},"modified":"2018-06-11T12:00:04","modified_gmt":"2018-06-11T10:00:04","slug":"formule-days360-dans-google-sheets","status":"publish","type":"post","link":"https:\/\/www.sheetgo.com\/fr\/blog\/google-sheets-formulas\/days360-formula-in-google-sheets\/","title":{"rendered":"Comment utiliser la formule DAYS360 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;][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>Let\u2019s say we need to know how far two different dates are separated from each other, based on the 360 day year. Probably for the purposes of some financial interest calculations. We can make use of the<span>\u00a0<\/span><a href=\"https:\/\/support.google.com\/docs\/answer\/3093042\" target=\"_blank\" rel=\"noopener noreferrer\">DAYS360<\/a><span>\u00a0<\/span>formula in Google Sheets for this purpose. Please note that formula is supposedly built for use in a financial setting. Using this in any other context may result\u00a0in incorrect output values.<\/p>\n<h3>Syntax<\/h3>\n<p><strong>DAYS360(start_date, end_date, [method])<\/strong><\/p>\n<ul>\n<li><strong>start_date<\/strong><span>\u00a0<\/span>\u2013 the date\u00a0using which the formula calculates the \u2018date difference\u2019 from. This input has to be date type data, which we can\u00a0ensure either by using\u00a0<a href=\"https:\/\/www.sheetgo.com\/blog\/google-sheets-formulas\/date-formula-google-sheets\/\" target=\"_blank\" rel=\"noopener noreferrer\">DATE<\/a>\u00a0type returning functions or by using references to the cells that have dates.<\/li>\n<li><strong>end_date<\/strong><span>\u00a0<\/span>\u2013 the date until\u00a0which the formula calculates the \u2018date difference\u2019 to. Just like the\u00a0<strong>start_date<\/strong>, this too has to be date type data.<\/li>\n<li><strong>method<\/strong><span>\u00a0<\/span>\u2013 [ OPTIONAL \u2013 0 by default ] \u2013 a 0 indicates that the DAYS360 formula should use US method of day count. Any other value indicates that the formula should use European method.<\/li>\n<\/ul>\n<p>The US method, there are a couple scenarios to consider. If the\u00a0<strong>start_date<\/strong><span>\u00a0<\/span>is the last day of a month, the formula changes it to 30 for the purposes of the calculation. If the\u00a0<strong>end_date<\/strong><span>\u00a0<\/span>is the last day of a month and<span>\u00a0<\/span><strong>start_date<\/strong><span>\u00a0<\/span>is earlier than the 30th of that month, then the formula changes the<span>\u00a0<\/span><strong>end_date<\/strong><span>\u00a0<\/span>to the first day of the following month. Otherwise, the formula considers the<span>\u00a0<\/span><strong>end_date<\/strong><span>\u00a0<\/span>as 30th of that month.<\/p>\n<p>With the European method, it is relatively simple. If any<span>\u00a0<\/span><strong>start_date<\/strong><span>\u00a0<\/span>or<span>\u00a0<\/span><strong>end_date<\/strong>\u00a0falls on the 31st of a month, then the formula changes it to\u00a030th of that month.<\/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: DAYS360 formula in Google Sheets<\/h3>\n<p>We just learned the way the syntax of the DAYS360 formula works. It is time to dive head-first into applying this practically on the Google Sheets application. Please have a look at the snapshot below.<\/p>\n<p>[\/et_pb_text][et_pb_image src=&#8221;https:\/\/static.sheetgo.com\/wp-content\/uploads\/2018\/06\/DAYS360-formula-Illustration-Frame-1.png&#8221; alt=&#8221;DAYS360 Google Sheets&#8221; title_text=&#8221;day360-formula-usage&#8221; _builder_version=&#8221;4.16&#8243; width=&#8221;640px&#8221; max_width=&#8221;640px&#8221; height=&#8221;440px&#8221; max_height=&#8221;440px&#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, we notice the output is 90. But if we calculated the actual difference using the<span>\u00a0<\/span><a href=\"https:\/\/www.sheetgo.com\/blog\/google-sheets-formulas\/datedif-formula-google-sheets\/\" target=\"_blank\" rel=\"noopener noreferrer\">DATEDIF<\/a><span>\u00a0<\/span>formula, it will give us 91. So, this clearly demonstrates that the financial context to calculate\u00a0how far two dates are from each other is different from the actual context.<\/p>\n<p>While the initial three example formulas used the US method of day counting, the final formula uses the European method.<\/p>\n<p>We encourage you to flex your thinking muscles and analyze how each example formula calculated the difference. You might as well compare each of these with the DATEDIF application to observe the deviations (if any).<\/p>\n<p>[\/et_pb_text][\/et_pb_column][\/et_pb_row][\/et_pb_section]<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Let\u2019s say we need to know how far two different dates are separated from each other, based on the 360 day year. Probably for the purposes of some financial interest calculations. We can make use of the\u00a0DAYS360\u00a0formula in Google Sheets for this purpose. Please note that formula is supposedly built for use in a financial [&hellip;]<\/p>\n","protected":false},"author":40,"featured_media":8569,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"_et_pb_use_builder":"on","_et_pb_old_content":"Let's say we need to know how far two different dates are separated from each other, based on the 360 day year. Probably for the purposes of some financial interest calculations. We can make use of the <a href=\"https:\/\/support.google.com\/docs\/answer\/3093042\" target=\"_blank\" rel=\"noopener noreferrer\">DAYS360<\/a> formula in Google Sheets for this purpose. Please note that formula is supposedly built for use in a financial setting. Using this in any other context may result&nbsp;in incorrect output values.\n<h3>Syntax<\/h3>\n<strong>DAYS360(start_date, end_date, [method])<\/strong>\n<ul>\n \t<li><strong>start_date<\/strong> - the date&nbsp;using which the formula calculates the \u2018date difference\u2019 from. This input has to be date type data, which we can&nbsp;ensure either by using&nbsp;<a href=\"https:\/\/www.sheetgo.com\/date-formula-google-sheets\/\" target=\"_blank\" rel=\"noopener noreferrer\">DATE<\/a>&nbsp;type returning functions or by using references to the cells that have dates.<\/li>\n \t<li><strong>end_date<\/strong> - the date until&nbsp;which the formula calculates the \u2018date difference\u2019 to. Just like the&nbsp;<strong>start_date<\/strong>, this too has to be date type data.<\/li>\n \t<li><strong>method<\/strong> - [ OPTIONAL - 0 by default ] - a 0 indicates that the DAYS360 formula should use US method of day count. Any other value indicates that the formula should use European method.<\/li>\n<\/ul>\n<p style=\"padding-left: 30px;\">The US method, there are a couple scenarios to consider. If the&nbsp;<strong>start_date<\/strong> is the last day of a month, the formula changes it to 30 for the purposes of the calculation. If the&nbsp;<strong>end_date<\/strong> is the last day of a month and <strong>start_date<\/strong> is earlier than the 30th of that month, then the formula changes the <strong>end_date<\/strong> to the first day of the following month. Otherwise, the formula considers the <strong>end_date<\/strong> as 30th of that month.<\/p>\n<p style=\"padding-left: 30px;\">With the European method, it is relatively simple. If any <strong>start_date<\/strong> or <strong>end_date<\/strong>&nbsp;falls on the 31st of a month, then the formula changes it to&nbsp;30th of that month.<\/p>\n\n<h3>Usage: DAYS360 formula in Google Sheets<\/h3>\nWe just learned the way the syntax of the DAYS360 formula works. It is time to dive head-first into applying this practically on the Google Sheets application. Please have a look at the snapshot below.\n\n<img class=\"aligncenter size-full wp-image-8606\" src=\"https:\/\/static.sheetgo.com\/wp-content\/uploads\/2018\/06\/DAYS360-formula-Illustration-Frame-1.png\" alt=\"DAYS360 formula in Google Sheets\" width=\"812\" height=\"520\">\n\nIn the first example, we notice the output is 90. But if we calculated the actual difference using the <a href=\"https:\/\/www.sheetgo.com\/blog\/google-sheets-formulas\/datedif-formula-google-sheets\/\" target=\"_blank\" rel=\"noopener noreferrer\">DATEDIF<\/a> formula, it will give us 91. So, this clearly demonstrates that the financial context to calculate&nbsp;how far two dates are from each other is different from the actual context.\n\nWhile the initial three example formulas used the US method of day counting, the final formula uses the European method.\n\nWe encourage you to flex your thinking muscles and analyze how each example formula calculated the difference. You might as well compare each of these with the DATEDIF application to observe the deviations (if any).","_et_gb_content_width":"","footnotes":""},"categories":[54],"tags":[39,28],"class_list":["post-8568","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\/8568","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=8568"}],"version-history":[{"count":0,"href":"https:\/\/www.sheetgo.com\/fr\/wp-json\/wp\/v2\/posts\/8568\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.sheetgo.com\/fr\/wp-json\/wp\/v2\/media\/8569"}],"wp:attachment":[{"href":"https:\/\/www.sheetgo.com\/fr\/wp-json\/wp\/v2\/media?parent=8568"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.sheetgo.com\/fr\/wp-json\/wp\/v2\/categories?post=8568"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.sheetgo.com\/fr\/wp-json\/wp\/v2\/tags?post=8568"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}