{"id":8671,"date":"2021-02-02T16:00:00","date_gmt":"2021-02-02T15:00:00","guid":{"rendered":"https:\/\/blog.sheetgo.com\/?p=8671"},"modified":"2025-06-16T22:16:51","modified_gmt":"2025-06-16T20:16:51","slug":"formule-annee-dans-google-sheets","status":"publish","type":"post","link":"https:\/\/www.sheetgo.com\/fr\/blog\/google-sheets-formulas\/year-formula-in-google-sheets\/","title":{"rendered":"Comment utiliser la fonction YEAR 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; 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; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;]Dates are a common type of data that most of us have had experience with using in our spreadsheet datasets. Nowadays, date-related information is key in any dataset, whether you work in Finance, Human Resources, or Education, just to name a few. Tools like Google Sheets have a useful <a href=\"https:\/\/support.google.com\/docs\/answer\/3093061\" target=\"_blank\" rel=\"noopener\">YEAR function<\/a> that can be used to help search for or simplify dates. What\u2019s more, you can even combine it with other, more advanced formulas to help you analyze and manage your data in a more complex manner.<\/p>\n<p>Let\u2019s explore what the YEAR function is in detail, and how you can use it to organize, manage, and streamline your operations within Google Sheets.[\/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<h2>What is the YEAR function?<\/h2>\n<p>The YEAR function in Google Sheets essentially allows you to extract the year, as a four-digit number, from a given date. This basic function can replace manual searches for dates within your large datasets \u2013 which can often be time-consuming and complex.<\/p>\n<p>Here are some of the major benefits of using the YEAR function in your Google 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<ul>\n<li><b>Increase efficiency:<\/b> Being able to rely on automated procedures, such as YEAR, or other date-based functions allows you to dramatically reduce the time it would take to otherwise comb through your date data manually.<\/li>\n<li><b>Avoid human error:<\/b> Like any computer-aided method, you will noticeably avoid the risk of human error; especially when it comes to daily or frequent calculations.<\/li>\n<li><b>Boost productivity:<\/b> The YEAR formula streamlines the entire process from start to finish, so you can dedicate your time to other tasks.<\/li>\n<\/ul>\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<h3>Syntax<\/h3>\n<p>The syntax for the YEAR function is extremely simple, as shown below:<\/p>\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;]=YEAR(date)[\/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><b>date<\/b> \u2013 refers to the date you want to extract the year value from.<\/li>\n<\/ul>\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<p><b>Please note:<\/b> In order for this function to work, you must make sure that your dates include numbers only. If Google Sheets doesn\u2019t recognize your dates as a numerical value, it will return a #VALUE! error. To make sure you are working with the valid data type, use the function DATE, DATEVALUE or TO_DATE to return date objects or use references to cells that have dates or numbers.<\/p>\n<p>[\/et_pb_text][et_pb_text admin_label=&#8221;Connections T &#8211; Automate between spreadsheets &#8211; Horizontal&#8221; module_class=&#8221;sheetgo-post-no-shadow-img md2-contained-button-light vertical-banner-container&#8221; _builder_version=&#8221;4.27.4&#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;255443&#8243; theme_builder_area=&#8221;post_content&#8221;]<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/static.sheetgo.com\/wp-content\/uploads\/2024\/09\/run-automatically-connect-sheet-icons.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 between spreadsheets<br \/><\/span><\/p>\n<p><a href=\"https:\/\/www.sheetgo.com\/connections\/\" target=\"_blank\" rel=\"noopener\">Find out how<\/a><\/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<h3>How to use the YEAR function in Google Sheets<\/h3>\n<p>Let\u2019s imagine that I work in admissions for a college. I have been sent a database of all of the students that have applied for a Master\u2019s program between 2018-2021. My job is to identify the students that have applied for 2022 admission in order to send them confirmation letters via email.<\/p>\n<p>There are thousands of rows of data that I need to comb through.<\/p>\n<p>[\/et_pb_text][et_pb_image src=&#8221;https:\/\/static.sheetgo.com\/wp-content\/uploads\/2022\/02\/YEAR-formula@2x.png&#8221; alt=&#8221;YEAR function Google Sheets 0&#8243; title_text=&#8221;YEAR formula@2x&#8221; align=&#8221;center&#8221; _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;]First, make sure that all of the dates in your Google Sheet are formatted into a date format.<\/p>\n<p>To do this, simply select all of the dates, and head to <b>Format &gt; Number &gt; Date<\/b>. Choose a date format that uses a 4-digit year.[\/et_pb_text][et_pb_image src=&#8221;https:\/\/static.sheetgo.com\/wp-content\/uploads\/2022\/02\/YEAR-formula-\u2013-1@2x.png&#8221; alt=&#8221;YEAR function Google Sheets 1&#8243; title_text=&#8221;YEAR formula \u2013 1@2x&#8221; align=&#8221;center&#8221; _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>Now that your dates are correctly formatted, let\u2019s take a look at the different ways you can use the YEAR function to manage your data in Google 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<h3>Valid date string<\/h3>\n<p>You can find the year of any data by adding the date directly into the YEAR function.<\/p>\n<p>For example, I can copy and paste the date from cell A2 and add it to the formula as =YEAR(\u201c7\/6\/2021\u201d). 2021 will return as the value.<\/p>\n<p>[\/et_pb_text][et_pb_image src=&#8221;https:\/\/static.sheetgo.com\/wp-content\/uploads\/2022\/02\/YEAR-formula-\u2013-2@2x.png&#8221; alt=&#8221;YEAR function Google Sheets 2&#8243; title_text=&#8221;YEAR formula \u2013 2@2x&#8221; align=&#8221;center&#8221; _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<h3>Reference to date cell<\/h3>\n<p>Similarly, I can also return the specific year of a date by substituting the date with the actual cell reference. If I use the formula =YEAR(A2), I get the same result.<\/p>\n<p>What\u2019s more, I can easily apply this to the rest of my rows by dragging the cell down the column for the rest of the students.[\/et_pb_text][et_pb_image src=&#8221;https:\/\/static.sheetgo.com\/wp-content\/uploads\/2022\/02\/YEAR-formula-\u2013-3@2x.png&#8221; alt=&#8221;YEAR function Google Sheets 3&#8243; title_text=&#8221;YEAR formula \u2013 3@2x&#8221; align=&#8221;center&#8221; _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<h3>Reference to number cell<\/h3>\n<p>Imagine that a spreadsheet was forwarded to you, or that you copied and pasted data from another document. Some of the cells containing dates might appear as a simple numeric value. Chances are, you are going to get cells with data such as \u201c43,000\u201d or \u201c42,500\u201d. This is because every date in Google Sheets, e.g. 43,000 or 42,500, is equivalent to a date.<\/p>\n<p>In the example below, 44,000 is the equivalent to 6\/18\/2020, which is why the YEAR formula has returned 2020 as the value.[\/et_pb_text][et_pb_image src=&#8221;https:\/\/static.sheetgo.com\/wp-content\/uploads\/2022\/02\/YEAR-formula-\u2013-4@2x.png&#8221; alt=&#8221;YEAR function Google Sheets 4&#8243; title_text=&#8221;YEAR formula \u2013 4@2x&#8221; align=&#8221;center&#8221; _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<h3>IF + YEAR function<\/h3>\n<p>As mentioned previously, YEAR functions can become quite a powerful function when combined with other functions. For example, I can use a combination of the IF and YEAR function to indicate which students need to be sent an email based on their admission date.<\/p>\n<p>The formula would look like this:<\/p>\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;]=IF(YEAR(A2)=(YEAR(DATE(2021,6,7))),\u201cyes\u201d,\u201cno\u201d)[\/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;]Now for every student that applied for admission in 2021, a \u201cyes\u201d will appear next to their data.[\/et_pb_text][et_pb_image src=&#8221;https:\/\/static.sheetgo.com\/wp-content\/uploads\/2022\/02\/YEAR-formula-\u2013-5@2x.png&#8221; alt=&#8221;YEAR function Google Sheets 5&#8243; title_text=&#8221;YEAR formula \u2013 5@2x&#8221; align=&#8221;center&#8221; _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>If you would like to learn more about how you can use the IF function in conjunction with other functions such as YEAR, read our post <a href=\"https:\/\/www.sheetgo.com\/blog\/excel-functions\/nested-if-function-excel\/\">How to use the nested IF function in Excel<\/a>.<\/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<h3>YEAR function in Google Sheets<\/h3>\n<p>And there you have it! The YEAR function is a great function to use in order to quickly extract years in a large Google Sheet, and is a great one to combine with other useful functions to streamline your operations.<\/p>\n<p>If you\u2019re interested in other date-related formulas, why not check out our article on <a href=\"https:\/\/www.sheetgo.com\/blog\/google-sheets-formulas\/date-formula-google-sheets\/\">How to use the DATE formula in Google Sheets<\/a>?<\/p>\n<p>Alternatively, here are some other related articles you may also find useful below!<\/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>Dates are a common type of data that most of us have had experience with using in our spreadsheet datasets. Nowadays, date-related information is key in any dataset, whether you work in Finance, Human Resources, or Education, just to name a few. Tools like Google Sheets have a useful YEAR function that can be used [&hellip;]<\/p>\n","protected":false},"author":41,"featured_media":38880,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"_et_pb_use_builder":"on","_et_pb_old_content":"More often than not we usually come across the complete dates like \"6\/13\/2018 16:07:34\". And having the dates in discrete stand-alone values of years or months or dates is less likely. But there can be business scenarios where we need to extract the years, probably to calculate eligibility. The <a href=\"https:\/\/support.google.com\/docs\/answer\/3093061\" target=\"_blank\" rel=\"noopener noreferrer\">YEAR<\/a> formula in Google Sheets can help us in this context.\n<h3>Syntax<\/h3>\n<strong>YEAR(date)<\/strong>\n\n<strong>date<\/strong>&nbsp;\u2013 is the date which we need to extract the year from. This input has to be a date type data.&nbsp;We can&nbsp;ensure that either by using formulas such as&nbsp;<a href=\"https:\/\/support.google.com\/docs\/answer\/3092969?hl=en\" target=\"_blank\" rel=\"noopener noreferrer\">DATE<\/a>, DATEVALUE or TO_DATE that return date objects. Or we may also use&nbsp;references to the cells that have dates or numbers.\n<h3>Usage: YEAR formula in Google Sheets<\/h3>\nThe syntax is not that complicated, isn't it? Now let us go ahead and try our hands practically with the formula.\n\n<img class=\"aligncenter size-full wp-image-8736\" src=\"https:\/\/static.sheetgo.com\/wp-content\/uploads\/2018\/06\/YEAR-formula-Illustration-Frame-1.png\" alt=\"YEAR formula in Google Sheets\" width=\"814\" height=\"513\">\n\nYou will notice that we have tried different ways in which we can pass the input parameter value.\n\nIn the first formula, we passed a valid date string, and it appropriately returns 2018. The second formula demonstrates its capability to accept the references to cells that have dates within them. The third formula works even when there\u2019s a number on the referenced cell. It is noteworthy that every date in Google Sheets is a number and 43,264 is equivalent to the date 13-Jun-2018. Hence it returned the value&nbsp;of 2018. In the fourth formula, we used the output from the DATE function.\n\nThe first four formulas illustrate the basic working of the formula. However, in the last&nbsp;two formulas, we tried more practical examples on the rows 6 and 7.&nbsp;Here we are trying to deduce whether a person is an adult or a minor as of today. And the composite formulas successfully evaluate the output. The 6th example returns \"Adult\" because the age of the person born in the year 1996 is definitely more than 18. Likewise, the 7th example returns \"Minor\" because the person born in the year 2005 can't be older than 18 years.","_et_gb_content_width":"","footnotes":""},"categories":[54],"tags":[55,39,28],"class_list":["post-8671","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-google-sheets-formulas","tag-ben-collins","tag-connections-t","tag-spreadsheets"],"acf":[],"_links":{"self":[{"href":"https:\/\/www.sheetgo.com\/fr\/wp-json\/wp\/v2\/posts\/8671","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\/41"}],"replies":[{"embeddable":true,"href":"https:\/\/www.sheetgo.com\/fr\/wp-json\/wp\/v2\/comments?post=8671"}],"version-history":[{"count":0,"href":"https:\/\/www.sheetgo.com\/fr\/wp-json\/wp\/v2\/posts\/8671\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.sheetgo.com\/fr\/wp-json\/wp\/v2\/media\/38880"}],"wp:attachment":[{"href":"https:\/\/www.sheetgo.com\/fr\/wp-json\/wp\/v2\/media?parent=8671"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.sheetgo.com\/fr\/wp-json\/wp\/v2\/categories?post=8671"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.sheetgo.com\/fr\/wp-json\/wp\/v2\/tags?post=8671"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}