{"id":1430209,"date":"2024-10-07T17:52:39","date_gmt":"2024-10-07T14:52:39","guid":{"rendered":"https:\/\/windowsreport.com\/?p=1430209"},"modified":"2024-10-07T17:52:42","modified_gmt":"2024-10-07T14:52:42","slug":"excel-year-function-not-working","status":"publish","type":"post","link":"https:\/\/windowsreport.com\/excel-year-function-not-working\/","title":{"rendered":"Excel YEAR Function Not Working: 9 Best Fixes"},"content":{"rendered":"\n<p>How can you fix the Excel YEAR function when it&#8217;s not working?<\/p>\n\n\n\n<p>It&#8217;s one of the easiest ways to extract a year component from a long or short date in <a href=\"https:\/\/windowsreport.com\/windows-11-free-excel\/\" target=\"_blank\" rel=\"noreferrer noopener\">Microsoft Excel<\/a>. However, this function is prone to many errors especially if the source data value isn&#8217;t in the right Date format.<\/p>\n\n\n\n<p>So, I&#8217;ve recreated some Excel YEAR function issues that you may face. Here are the fixes that worked out for me the best!<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-how-to-fix-excel-year-function-not-working\">How To Fix Excel YEAR Function Not Working<\/h2>\n\n\n\n<p>Before you start troubleshooting, ensure you&#8217;re using a supported Windows, Mac, or web app. The function is only available in <strong>Excel 2016 for Windows and Mac<\/strong> <strong>and newer<\/strong>, and <strong>the web version<\/strong>. If you&#8217;re using any earlier desktop editions, unfortunately, it won&#8217;t work.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Choose the Right Function Syntax<\/h3>\n\n\n\n<p>The most common mistake is not spelling the function syntax correctly. This causes the entire formula to break down. The Excel warning you get in this situation is the<strong> <a href=\"https:\/\/windowsreport.com\/name-error-excel\/\" target=\"_blank\" rel=\"noreferrer noopener\">#NAME?<\/a> error.<\/strong><\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><a href=\"https:\/\/windowsreport.com\/wp-content\/uploads\/2024\/10\/Error-for-incorrect-syntax.jpg\"><img decoding=\"async\" width=\"430\" height=\"198\" src=\"https:\/\/windowsreport.com\/wp-content\/uploads\/2024\/10\/Error-for-incorrect-syntax.jpg\" alt=\"Error for incorrect syntax\" class=\"wp-image-1430217\" srcset=\"https:\/\/windowsreport.com\/wp-content\/uploads\/2024\/10\/Error-for-incorrect-syntax.jpg 430w, https:\/\/windowsreport.com\/wp-content\/uploads\/2024\/10\/Error-for-incorrect-syntax-300x138.jpg 300w, https:\/\/windowsreport.com\/wp-content\/uploads\/2024\/10\/Error-for-incorrect-syntax-420x193.jpg 420w\" sizes=\"(max-width: 430px) 100vw, 430px\" \/><\/a><\/figure><\/div>\n\n\n<p>To avoid spelling issues, you must use the function suggestion as shown on the cell when you type initials after the equals sign.<\/p>\n\n\n\n<p>You can scroll down or up to find the one you need and simply <strong>double-click<\/strong> <strong>to add it<\/strong> along with the opening parenthesis.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><a href=\"https:\/\/windowsreport.com\/wp-content\/uploads\/2024\/10\/Double-click-formula.jpg\"><img decoding=\"async\" width=\"712\" height=\"252\" src=\"https:\/\/windowsreport.com\/wp-content\/uploads\/2024\/10\/Double-click-formula.jpg\" alt=\"Double-click formula\" class=\"wp-image-1430218\" srcset=\"https:\/\/windowsreport.com\/wp-content\/uploads\/2024\/10\/Double-click-formula.jpg 712w, https:\/\/windowsreport.com\/wp-content\/uploads\/2024\/10\/Double-click-formula-300x106.jpg 300w, https:\/\/windowsreport.com\/wp-content\/uploads\/2024\/10\/Double-click-formula-700x248.jpg 700w, https:\/\/windowsreport.com\/wp-content\/uploads\/2024\/10\/Double-click-formula-420x149.jpg 420w\" sizes=\"(max-width: 712px) 100vw, 712px\" \/><\/a><\/figure><\/div>\n\n\n<p>You can now type the rest of the formula arguments. Refer to the contextual suggestions for the valid arguments just below the cell where you&#8217;re typing to avoid flaws in argument construction.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><a href=\"https:\/\/windowsreport.com\/wp-content\/uploads\/2024\/10\/contextual-suggestions.jpg\"><img decoding=\"async\" width=\"430\" height=\"196\" src=\"https:\/\/windowsreport.com\/wp-content\/uploads\/2024\/10\/contextual-suggestions.jpg\" alt=\"contextual suggestions\" class=\"wp-image-1430219\" srcset=\"https:\/\/windowsreport.com\/wp-content\/uploads\/2024\/10\/contextual-suggestions.jpg 430w, https:\/\/windowsreport.com\/wp-content\/uploads\/2024\/10\/contextual-suggestions-300x137.jpg 300w, https:\/\/windowsreport.com\/wp-content\/uploads\/2024\/10\/contextual-suggestions-420x191.jpg 420w\" sizes=\"(max-width: 430px) 100vw, 430px\" \/><\/a><\/figure><\/div>\n\n\n<h3 class=\"wp-block-heading\">Value Isn&#8217;t in the Date Format<\/h3>\n\n\n\n<p>Here are the possible slip-ups you might make while using the YEAR function:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Non-date text values:<\/strong> When the input argument is a text string that Excel can&#8217;t recognize as a valid date, you&#8217;ll see an error.<\/li>\n\n\n\n<li><strong>Blank cells treated as text:<\/strong> If Excel treats a blank cell as a text string, the function will show the <strong>#VALUE!<\/strong> error.<\/li>\n\n\n\n<li><strong>Date in an invalid format:<\/strong> If you use an unsupported date format, like <strong>&#8220;21\/06\/2025,&#8221;<\/strong> you&#8217;ll get the <a href=\"https:\/\/windowsreport.com\/value-error-excel\/\" target=\"_blank\" rel=\"noreferrer noopener\">#VALUE! error<\/a>.<\/li>\n\n\n\n<li><strong>Logical values or arrays:<\/strong> This mistake can happen mostly when the input cell reference of the YEAR function is derived from other <a href=\"https:\/\/windowsreport.com\/excel-basic-formulas\/\" target=\"_blank\" rel=\"noreferrer noopener\">Excel basic formulas<\/a>. If the input is an array that doesn&#8217;t contain supported date values or these are logical values, like <strong>TRUE<\/strong> or <strong>FALSE<\/strong>, you&#8217;ll see an error.<\/li>\n\n\n\n<li><strong>Non-numeric date values:<\/strong> If you use <strong>two thousand twenty-five<\/strong> instead of <strong>2025<\/strong> as an input, Excel will show the <strong>#VALUE!<\/strong> error.<\/li>\n\n\n\n<li><strong>The cell contains an error:<\/strong> In this case, the YEAR function shows the <strong>#VALUE!<\/strong> error.<\/li>\n<\/ul>\n\n\n\n<p>For example, this function has broken down because there&#8217;s a tilde sign in the referenced cell.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><a href=\"https:\/\/windowsreport.com\/wp-content\/uploads\/2024\/10\/Tilde-in-date.jpg\"><img decoding=\"async\" width=\"430\" height=\"194\" src=\"https:\/\/windowsreport.com\/wp-content\/uploads\/2024\/10\/Tilde-in-date.jpg\" alt=\"Tilde in date\" class=\"wp-image-1430223\" srcset=\"https:\/\/windowsreport.com\/wp-content\/uploads\/2024\/10\/Tilde-in-date.jpg 430w, https:\/\/windowsreport.com\/wp-content\/uploads\/2024\/10\/Tilde-in-date-300x135.jpg 300w, https:\/\/windowsreport.com\/wp-content\/uploads\/2024\/10\/Tilde-in-date-420x189.jpg 420w\" sizes=\"(max-width: 430px) 100vw, 430px\" \/><\/a><\/figure><\/div>\n\n\n<p>When I remove the accent sign, it works just fine.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><a href=\"https:\/\/windowsreport.com\/wp-content\/uploads\/2024\/10\/Removed-tilde.jpg\"><img decoding=\"async\" width=\"430\" height=\"196\" src=\"https:\/\/windowsreport.com\/wp-content\/uploads\/2024\/10\/Removed-tilde.jpg\" alt=\"Removed tilde\" class=\"wp-image-1430224\" srcset=\"https:\/\/windowsreport.com\/wp-content\/uploads\/2024\/10\/Removed-tilde.jpg 430w, https:\/\/windowsreport.com\/wp-content\/uploads\/2024\/10\/Removed-tilde-300x137.jpg 300w, https:\/\/windowsreport.com\/wp-content\/uploads\/2024\/10\/Removed-tilde-420x191.jpg 420w\" sizes=\"(max-width: 430px) 100vw, 430px\" \/><\/a><\/figure><\/div>\n\n\n<h3 class=\"wp-block-heading\">Custom Date Formats<\/h3>\n\n\n\n<p>Another pressing problem with YEAR is its inability to appropriately detect the year value from a custom-formatted date. For example, it&#8217;ll work with popular date conventions, like <strong>YYYY\/MM\/DD<\/strong> or <strong>MM\/DD\/YYYY<\/strong>.<\/p>\n\n\n\n<p>However, when you place the function with a <strong>DD\/MM\/YYYY<\/strong> or <strong>YYYY\/DD\/MM<\/strong> format, it fails to isolate the year.<\/p>\n\n\n\n<figure class=\"wp-block-gallery has-nested-images columns-default wp-block-gallery-1 is-layout-flex wp-block-gallery-is-layout-flex\">\n<figure class=\"wp-block-image size-full\"><a href=\"https:\/\/windowsreport.com\/wp-content\/uploads\/2024\/10\/Error-2.jpg\"><img decoding=\"async\" width=\"430\" height=\"194\" data-id=\"1430226\" src=\"https:\/\/windowsreport.com\/wp-content\/uploads\/2024\/10\/Error-2.jpg\" alt=\"error 1\" class=\"wp-image-1430226\" srcset=\"https:\/\/windowsreport.com\/wp-content\/uploads\/2024\/10\/Error-2.jpg 430w, https:\/\/windowsreport.com\/wp-content\/uploads\/2024\/10\/Error-2-300x135.jpg 300w, https:\/\/windowsreport.com\/wp-content\/uploads\/2024\/10\/Error-2-420x189.jpg 420w\" sizes=\"(max-width: 430px) 100vw, 430px\" \/><\/a><\/figure>\n\n\n\n<figure class=\"wp-block-image size-full\"><a href=\"https:\/\/windowsreport.com\/wp-content\/uploads\/2024\/10\/Error-1.jpg\"><img decoding=\"async\" width=\"430\" height=\"194\" data-id=\"1430227\" src=\"https:\/\/windowsreport.com\/wp-content\/uploads\/2024\/10\/Error-1.jpg\" alt=\"error 2\" class=\"wp-image-1430227\" srcset=\"https:\/\/windowsreport.com\/wp-content\/uploads\/2024\/10\/Error-1.jpg 430w, https:\/\/windowsreport.com\/wp-content\/uploads\/2024\/10\/Error-1-300x135.jpg 300w, https:\/\/windowsreport.com\/wp-content\/uploads\/2024\/10\/Error-1-420x189.jpg 420w\" sizes=\"(max-width: 430px) 100vw, 430px\" \/><\/a><\/figure>\n<\/figure>\n\n\n\n<p>Another way to get the same error is by using the <strong>Custom<\/strong> formatting category from the <strong>Format Cells<\/strong> dialog box.<\/p>\n\n\n\n<p>If you select a cell and press the <kbd>Ctrl<\/kbd> + <kbd>1<\/kbd> keys, the <strong>Format Cells<\/strong> dialog box will show up. Now, go to <strong>Custom<\/strong> and enter any of the following date formats in the <strong>Type<\/strong> field:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>yy\/dd\/mm<\/strong><\/li>\n\n\n\n<li><strong>yy\/mm\/dd<\/strong><\/li>\n<\/ul>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><a href=\"https:\/\/windowsreport.com\/wp-content\/uploads\/2024\/10\/Format-Cells.jpg\"><img decoding=\"async\" width=\"592\" height=\"560\" src=\"https:\/\/windowsreport.com\/wp-content\/uploads\/2024\/10\/Format-Cells.jpg\" alt=\"Format Cells\" class=\"wp-image-1430233\" srcset=\"https:\/\/windowsreport.com\/wp-content\/uploads\/2024\/10\/Format-Cells.jpg 592w, https:\/\/windowsreport.com\/wp-content\/uploads\/2024\/10\/Format-Cells-300x284.jpg 300w, https:\/\/windowsreport.com\/wp-content\/uploads\/2024\/10\/Format-Cells-529x500.jpg 529w, https:\/\/windowsreport.com\/wp-content\/uploads\/2024\/10\/Format-Cells-233x220.jpg 233w\" sizes=\"(max-width: 592px) 100vw, 592px\" \/><\/a><\/figure><\/div>\n\n\n<p>If you now type any date in the <strong>custom-formatted cell<\/strong>, you&#8217;ll get an error for the YEAR function.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><a href=\"https:\/\/windowsreport.com\/wp-content\/uploads\/2024\/10\/YEAR-Error.jpg\"><img decoding=\"async\" width=\"592\" height=\"562\" src=\"https:\/\/windowsreport.com\/wp-content\/uploads\/2024\/10\/YEAR-Error.jpg\" alt=\"YEAR Error\" class=\"wp-image-1430234\" srcset=\"https:\/\/windowsreport.com\/wp-content\/uploads\/2024\/10\/YEAR-Error.jpg 592w, https:\/\/windowsreport.com\/wp-content\/uploads\/2024\/10\/YEAR-Error-300x285.jpg 300w, https:\/\/windowsreport.com\/wp-content\/uploads\/2024\/10\/YEAR-Error-527x500.jpg 527w, https:\/\/windowsreport.com\/wp-content\/uploads\/2024\/10\/YEAR-Error-232x220.jpg 232w\" sizes=\"(max-width: 592px) 100vw, 592px\" \/><\/a><\/figure><\/div>\n\n\n<p>So, avoid the above custom date formatting instances.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Date Entries Formatted as Numbers<\/h3>\n\n\n\n<p>When you convert a date entry to the <strong>Number<\/strong> formatting style, the YEAR function shows an error.<\/p>\n\n\n\n<p>Look at the screenshot below. When it&#8217;s in its correct form, like the <strong>Date<\/strong> format, the function can properly extract the year in cell <strong>C1<\/strong>.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><a href=\"https:\/\/windowsreport.com\/wp-content\/uploads\/2024\/10\/YEAR-function-working.jpg\"><img decoding=\"async\" width=\"402\" height=\"196\" src=\"https:\/\/windowsreport.com\/wp-content\/uploads\/2024\/10\/YEAR-function-working.jpg\" alt=\"YEAR function working\" class=\"wp-image-1430237\" srcset=\"https:\/\/windowsreport.com\/wp-content\/uploads\/2024\/10\/YEAR-function-working.jpg 402w, https:\/\/windowsreport.com\/wp-content\/uploads\/2024\/10\/YEAR-function-working-300x146.jpg 300w\" sizes=\"(max-width: 402px) 100vw, 402px\" \/><\/a><\/figure><\/div>\n\n\n<p>However, changing the date to a <strong>Number<\/strong> format shows the <strong>#REF!<\/strong> error message.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><a href=\"https:\/\/windowsreport.com\/wp-content\/uploads\/2024\/10\/YEAR-not-working-with-NUmber-format.jpg\"><img decoding=\"async\" width=\"580\" height=\"324\" src=\"https:\/\/windowsreport.com\/wp-content\/uploads\/2024\/10\/YEAR-not-working-with-NUmber-format.jpg\" alt=\"YEAR not working with NUmber format\" class=\"wp-image-1430238\" srcset=\"https:\/\/windowsreport.com\/wp-content\/uploads\/2024\/10\/YEAR-not-working-with-NUmber-format.jpg 580w, https:\/\/windowsreport.com\/wp-content\/uploads\/2024\/10\/YEAR-not-working-with-NUmber-format-300x168.jpg 300w, https:\/\/windowsreport.com\/wp-content\/uploads\/2024\/10\/YEAR-not-working-with-NUmber-format-394x220.jpg 394w\" sizes=\"(max-width: 580px) 100vw, 580px\" \/><\/a><\/figure><\/div>\n\n\n<p>Another scenario when you might experience the same issue is deleting the old entry and typing in a new value.<\/p>\n\n\n\n<p>When you delete the previous entry in <strong>A1<\/strong>, Excel hard codes the YEAR function in the following syntax:<\/p>\n\n\n\n<p>=YEAR(#REF!)<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><a href=\"https:\/\/windowsreport.com\/wp-content\/uploads\/2024\/10\/Delete-A1.jpg\"><img decoding=\"async\" width=\"398\" height=\"220\" src=\"https:\/\/windowsreport.com\/wp-content\/uploads\/2024\/10\/Delete-A1.jpg\" alt=\"Delete A1\" class=\"wp-image-1430240\" srcset=\"https:\/\/windowsreport.com\/wp-content\/uploads\/2024\/10\/Delete-A1.jpg 398w, https:\/\/windowsreport.com\/wp-content\/uploads\/2024\/10\/Delete-A1-300x166.jpg 300w\" sizes=\"(max-width: 398px) 100vw, 398px\" \/><\/a><\/figure><\/div>\n\n\n<p>Now, if you update the referenced cell with a new value, Excel can&#8217;t detect that because it has automatically added the <strong>#REF!<\/strong> error to the YEAR function by replacing <strong>A1<\/strong>, which was the blank cell.<\/p>\n\n\n\n<p>You can fix this issue by editing the arguments again. For example, replace <strong>#REF!<\/strong> in the formula syntax with <strong>A1<\/strong>.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><a href=\"https:\/\/windowsreport.com\/wp-content\/uploads\/2024\/10\/Edit-A1.jpg\"><img decoding=\"async\" width=\"398\" height=\"191\" src=\"https:\/\/windowsreport.com\/wp-content\/uploads\/2024\/10\/Edit-A1.jpg\" alt=\"Edit A1\" class=\"wp-image-1430241\" srcset=\"https:\/\/windowsreport.com\/wp-content\/uploads\/2024\/10\/Edit-A1.jpg 398w, https:\/\/windowsreport.com\/wp-content\/uploads\/2024\/10\/Edit-A1-300x144.jpg 300w\" sizes=\"(max-width: 398px) 100vw, 398px\" \/><\/a><\/figure><\/div>\n\n\n<p>The YEAR function will calculate the year value again.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><a href=\"https:\/\/windowsreport.com\/wp-content\/uploads\/2024\/10\/Edit-A1-again.jpg\"><img decoding=\"async\" width=\"398\" height=\"194\" src=\"https:\/\/windowsreport.com\/wp-content\/uploads\/2024\/10\/Edit-A1-again.jpg\" alt=\"Edit A1 again\" class=\"wp-image-1430242\" srcset=\"https:\/\/windowsreport.com\/wp-content\/uploads\/2024\/10\/Edit-A1-again.jpg 398w, https:\/\/windowsreport.com\/wp-content\/uploads\/2024\/10\/Edit-A1-again-300x146.jpg 300w\" sizes=\"(max-width: 398px) 100vw, 398px\" \/><\/a><\/figure><\/div>\n\n\n<h3 class=\"wp-block-heading\">Hidden Characters or Spaces<\/h3>\n\n\n\n<p>Hidden characters, like <strong>non-breaking spaces<\/strong>, change the appropriate formatting of date entries. When you refer your YEAR function to any such cells, you&#8217;ll get a <strong>#VALUE!<\/strong> error.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><a href=\"https:\/\/windowsreport.com\/wp-content\/uploads\/2024\/10\/Value-error-hidden-character.jpg\"><img decoding=\"async\" width=\"434\" height=\"192\" src=\"https:\/\/windowsreport.com\/wp-content\/uploads\/2024\/10\/Value-error-hidden-character.jpg\" alt=\"Value error hidden character\" class=\"wp-image-1430248\" srcset=\"https:\/\/windowsreport.com\/wp-content\/uploads\/2024\/10\/Value-error-hidden-character.jpg 434w, https:\/\/windowsreport.com\/wp-content\/uploads\/2024\/10\/Value-error-hidden-character-300x133.jpg 300w, https:\/\/windowsreport.com\/wp-content\/uploads\/2024\/10\/Value-error-hidden-character-420x186.jpg 420w\" sizes=\"(max-width: 434px) 100vw, 434px\" \/><\/a><\/figure><\/div>\n\n\n<p>To clear these unwanted characters from your dataset, press <kbd>Alt<\/kbd> + <kbd>F11<\/kbd> to launch <strong>Excel VBA Editor<\/strong>.<\/p>\n\n\n\n<p><strong>Right-click<\/strong> on the current workbook in the <strong>left-side navigation panel<\/strong> of the <strong>VBA Editor<\/strong>. Hover the cursor over <strong>Insert<\/strong> and select <strong>Module<\/strong> from the context menu.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><a href=\"https:\/\/windowsreport.com\/wp-content\/uploads\/2024\/10\/Insert-module.jpg\"><img decoding=\"async\" width=\"866\" height=\"622\" src=\"https:\/\/windowsreport.com\/wp-content\/uploads\/2024\/10\/Insert-module.jpg\" alt=\"Insert module\" class=\"wp-image-1430249\" srcset=\"https:\/\/windowsreport.com\/wp-content\/uploads\/2024\/10\/Insert-module.jpg 866w, https:\/\/windowsreport.com\/wp-content\/uploads\/2024\/10\/Insert-module-300x215.jpg 300w, https:\/\/windowsreport.com\/wp-content\/uploads\/2024\/10\/Insert-module-768x552.jpg 768w, https:\/\/windowsreport.com\/wp-content\/uploads\/2024\/10\/Insert-module-696x500.jpg 696w, https:\/\/windowsreport.com\/wp-content\/uploads\/2024\/10\/Insert-module-306x220.jpg 306w\" sizes=\"(max-width: 866px) 100vw, 866px\" \/><\/a><\/figure><\/div>\n\n\n<p>A blank module will open on the right.<\/p>\n\n\n\n<p>There, <strong>copy and paste<\/strong> the following VBA script:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>Sub ClearHiddenCharacters()\n    Dim cell As Range\n    For Each cell In Selection\n        cell.Value = Replace(cell.Value, ChrW(8203), \"\")\n        cell.Value = Replace(cell.Value, Chr(160), \"\")\n    Next cell\nEnd Sub   <\/code><\/pre>\n\n\n\n<p>Hit the <strong>Save<\/strong> button on the toolbar.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><a href=\"https:\/\/windowsreport.com\/wp-content\/uploads\/2024\/10\/save-script.jpg\"><img decoding=\"async\" width=\"794\" height=\"436\" src=\"https:\/\/windowsreport.com\/wp-content\/uploads\/2024\/10\/save-script.jpg\" alt=\"save script\" class=\"wp-image-1430251\" srcset=\"https:\/\/windowsreport.com\/wp-content\/uploads\/2024\/10\/save-script.jpg 794w, https:\/\/windowsreport.com\/wp-content\/uploads\/2024\/10\/save-script-300x165.jpg 300w, https:\/\/windowsreport.com\/wp-content\/uploads\/2024\/10\/save-script-768x422.jpg 768w, https:\/\/windowsreport.com\/wp-content\/uploads\/2024\/10\/save-script-700x384.jpg 700w, https:\/\/windowsreport.com\/wp-content\/uploads\/2024\/10\/save-script-401x220.jpg 401w\" sizes=\"(max-width: 794px) 100vw, 794px\" \/><\/a><\/figure><\/div>\n\n\n<p>Now, select the worksheet dataset from which you wish to remove hidden characters.<\/p>\n\n\n\n<p>Click on the <strong>Run<\/strong> button on the toolbar or hit <kbd>F5<\/kbd> on the keyboard.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><a href=\"https:\/\/windowsreport.com\/wp-content\/uploads\/2024\/10\/run-script.jpg\"><img decoding=\"async\" width=\"886\" height=\"530\" src=\"https:\/\/windowsreport.com\/wp-content\/uploads\/2024\/10\/run-script.jpg\" alt=\"run script\" class=\"wp-image-1430252\" srcset=\"https:\/\/windowsreport.com\/wp-content\/uploads\/2024\/10\/run-script.jpg 886w, https:\/\/windowsreport.com\/wp-content\/uploads\/2024\/10\/run-script-300x179.jpg 300w, https:\/\/windowsreport.com\/wp-content\/uploads\/2024\/10\/run-script-768x459.jpg 768w, https:\/\/windowsreport.com\/wp-content\/uploads\/2024\/10\/run-script-700x419.jpg 700w, https:\/\/windowsreport.com\/wp-content\/uploads\/2024\/10\/run-script-368x220.jpg 368w\" sizes=\"(max-width: 886px) 100vw, 886px\" \/><\/a><\/figure><\/div>\n\n\n<p><strong>Excel VBA macro<\/strong> will clean the dataset automatically.<\/p>\n\n\n\n<p>The YEAR function also instantly calculates the cell and shows the year value.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><a href=\"https:\/\/windowsreport.com\/wp-content\/uploads\/2024\/10\/Year-fixed-using-VBA.jpg\"><img decoding=\"async\" width=\"434\" height=\"192\" src=\"https:\/\/windowsreport.com\/wp-content\/uploads\/2024\/10\/Year-fixed-using-VBA.jpg\" alt=\"Year fixed using VBA\" class=\"wp-image-1430253\" srcset=\"https:\/\/windowsreport.com\/wp-content\/uploads\/2024\/10\/Year-fixed-using-VBA.jpg 434w, https:\/\/windowsreport.com\/wp-content\/uploads\/2024\/10\/Year-fixed-using-VBA-300x133.jpg 300w, https:\/\/windowsreport.com\/wp-content\/uploads\/2024\/10\/Year-fixed-using-VBA-420x186.jpg 420w\" sizes=\"(max-width: 434px) 100vw, 434px\" \/><\/a><\/figure><\/div>\n\n\n<h3 class=\"wp-block-heading\">Dates Beyond Excel&#8217;s Supported Range<\/h3>\n\n\n\n<p>The YEAR function is only effective within a year range of <strong>1900<\/strong> and <strong>9999<\/strong>. If you refer to an input cell containing a year below or above the given range, the function will either show an error message or an incorrect value.<\/p>\n\n\n\n<p>For example, I entered <strong>01\/01\/1899<\/strong> in <strong>A1<\/strong> and used the <strong>=YEAR(A1)<\/strong> syntax in <strong>C1<\/strong>.<\/p>\n\n\n\n<p>I got the <strong>#VALUE!<\/strong> error.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><a href=\"https:\/\/windowsreport.com\/wp-content\/uploads\/2024\/10\/Value-error-in-1899.jpg\"><img decoding=\"async\" width=\"434\" height=\"194\" src=\"https:\/\/windowsreport.com\/wp-content\/uploads\/2024\/10\/Value-error-in-1899.jpg\" alt=\"Value error in 1899\" class=\"wp-image-1430243\" srcset=\"https:\/\/windowsreport.com\/wp-content\/uploads\/2024\/10\/Value-error-in-1899.jpg 434w, https:\/\/windowsreport.com\/wp-content\/uploads\/2024\/10\/Value-error-in-1899-300x134.jpg 300w, https:\/\/windowsreport.com\/wp-content\/uploads\/2024\/10\/Value-error-in-1899-420x188.jpg 420w\" sizes=\"(max-width: 434px) 100vw, 434px\" \/><\/a><\/figure><\/div>\n\n\n<p>The same error will show up when the input date is <strong>01\/01\/10000<\/strong>.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><a href=\"https:\/\/windowsreport.com\/wp-content\/uploads\/2024\/10\/Value-error-10000.jpg\"><img decoding=\"async\" width=\"434\" height=\"192\" src=\"https:\/\/windowsreport.com\/wp-content\/uploads\/2024\/10\/Value-error-10000.jpg\" alt=\"Value error 10000\" class=\"wp-image-1430244\" srcset=\"https:\/\/windowsreport.com\/wp-content\/uploads\/2024\/10\/Value-error-10000.jpg 434w, https:\/\/windowsreport.com\/wp-content\/uploads\/2024\/10\/Value-error-10000-300x133.jpg 300w, https:\/\/windowsreport.com\/wp-content\/uploads\/2024\/10\/Value-error-10000-420x186.jpg 420w\" sizes=\"(max-width: 434px) 100vw, 434px\" \/><\/a><\/figure><\/div>\n\n\n<p>So, check if the input has a year value outside the given range to fix the issue.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Regional Settings Mismatch<\/h3>\n\n\n\n<p>If the <strong>region settings in the PC<\/strong> <strong>and Microsoft 365 Admin Center don&#8217;t match,<\/strong> Excel might process date formats incorrectly.<\/p>\n\n\n\n<p>First, ensure your PC is set to the desired region configuration by clicking the <strong>ENG<\/strong> icon in the <strong>System tray<\/strong>.<\/p>\n\n\n\n<p><strong>English (United States)<\/strong> should be on the top of any other input languages if you&#8217;re in <strong>the US<\/strong> or following the <strong>US input format<\/strong>.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><a href=\"https:\/\/windowsreport.com\/wp-content\/uploads\/2024\/10\/English-USA.jpg\"><img decoding=\"async\" width=\"322\" height=\"230\" src=\"https:\/\/windowsreport.com\/wp-content\/uploads\/2024\/10\/English-USA.jpg\" alt=\"English USA\" class=\"wp-image-1430255\" srcset=\"https:\/\/windowsreport.com\/wp-content\/uploads\/2024\/10\/English-USA.jpg 322w, https:\/\/windowsreport.com\/wp-content\/uploads\/2024\/10\/English-USA-300x214.jpg 300w, https:\/\/windowsreport.com\/wp-content\/uploads\/2024\/10\/English-USA-308x220.jpg 308w\" sizes=\"(max-width: 322px) 100vw, 322px\" \/><\/a><\/figure><\/div>\n\n\n<p>If you don&#8217;t see the <strong>US option<\/strong>, click on the <strong>Language preferences<\/strong> option.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><a href=\"https:\/\/windowsreport.com\/wp-content\/uploads\/2024\/10\/language-preferences.jpg\"><img decoding=\"async\" width=\"322\" height=\"230\" src=\"https:\/\/windowsreport.com\/wp-content\/uploads\/2024\/10\/language-preferences.jpg\" alt=\"language preferences\" class=\"wp-image-1430256\" srcset=\"https:\/\/windowsreport.com\/wp-content\/uploads\/2024\/10\/language-preferences.jpg 322w, https:\/\/windowsreport.com\/wp-content\/uploads\/2024\/10\/language-preferences-300x214.jpg 300w, https:\/\/windowsreport.com\/wp-content\/uploads\/2024\/10\/language-preferences-308x220.jpg 308w\" sizes=\"(max-width: 322px) 100vw, 322px\" \/><\/a><\/figure><\/div>\n\n\n<p>Click on the <strong>Add a language<\/strong> button below the <strong>Preferred languages<\/strong> section.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><a href=\"https:\/\/windowsreport.com\/wp-content\/uploads\/2024\/10\/Add-a-language.jpg\"><img decoding=\"async\" width=\"490\" height=\"536\" src=\"https:\/\/windowsreport.com\/wp-content\/uploads\/2024\/10\/Add-a-language.jpg\" alt=\"Add a language\" class=\"wp-image-1430257\" srcset=\"https:\/\/windowsreport.com\/wp-content\/uploads\/2024\/10\/Add-a-language.jpg 490w, https:\/\/windowsreport.com\/wp-content\/uploads\/2024\/10\/Add-a-language-274x300.jpg 274w, https:\/\/windowsreport.com\/wp-content\/uploads\/2024\/10\/Add-a-language-457x500.jpg 457w, https:\/\/windowsreport.com\/wp-content\/uploads\/2024\/10\/Add-a-language-201x220.jpg 201w\" sizes=\"(max-width: 490px) 100vw, 490px\" \/><\/a><\/figure><\/div>\n\n\n<p>Find and select <strong>English (United States)<\/strong>. Click <strong>Next<\/strong>.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><a href=\"https:\/\/windowsreport.com\/wp-content\/uploads\/2024\/10\/Choose-ENG-USA.jpg\"><img decoding=\"async\" width=\"870\" height=\"702\" src=\"https:\/\/windowsreport.com\/wp-content\/uploads\/2024\/10\/Choose-ENG-USA.jpg\" alt=\"Choose ENG USA\" class=\"wp-image-1430259\" srcset=\"https:\/\/windowsreport.com\/wp-content\/uploads\/2024\/10\/Choose-ENG-USA.jpg 870w, https:\/\/windowsreport.com\/wp-content\/uploads\/2024\/10\/Choose-ENG-USA-300x242.jpg 300w, https:\/\/windowsreport.com\/wp-content\/uploads\/2024\/10\/Choose-ENG-USA-768x620.jpg 768w, https:\/\/windowsreport.com\/wp-content\/uploads\/2024\/10\/Choose-ENG-USA-620x500.jpg 620w, https:\/\/windowsreport.com\/wp-content\/uploads\/2024\/10\/Choose-ENG-USA-273x220.jpg 273w\" sizes=\"(max-width: 870px) 100vw, 870px\" \/><\/a><\/figure><\/div>\n\n\n<p>Now, navigate to your <a href=\"https:\/\/admin.microsoft.com\/Adminportal\/Home#\/homepage\" target=\"_blank\" rel=\"noreferrer noopener nofollow\">Microsoft 365 Admin Center<\/a> portal.<\/p>\n\n\n\n<p>Type <strong>Region<\/strong> in the <strong>top search field<\/strong> and select <strong>My settings and privacy<\/strong>.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><a href=\"https:\/\/windowsreport.com\/wp-content\/uploads\/2024\/10\/My-settings-and-privacy.jpg\"><img decoding=\"async\" width=\"800\" height=\"441\" src=\"https:\/\/windowsreport.com\/wp-content\/uploads\/2024\/10\/My-settings-and-privacy.jpg\" alt=\"My settings and privacy\" class=\"wp-image-1430260\" srcset=\"https:\/\/windowsreport.com\/wp-content\/uploads\/2024\/10\/My-settings-and-privacy.jpg 800w, https:\/\/windowsreport.com\/wp-content\/uploads\/2024\/10\/My-settings-and-privacy-300x165.jpg 300w, https:\/\/windowsreport.com\/wp-content\/uploads\/2024\/10\/My-settings-and-privacy-768x423.jpg 768w, https:\/\/windowsreport.com\/wp-content\/uploads\/2024\/10\/My-settings-and-privacy-700x386.jpg 700w, https:\/\/windowsreport.com\/wp-content\/uploads\/2024\/10\/My-settings-and-privacy-399x220.jpg 399w\" sizes=\"(max-width: 800px) 100vw, 800px\" \/><\/a><\/figure><\/div>\n\n\n<p>You&#8217;ll now arrive on the <strong>Settings &amp; Privacy<\/strong> page. Navigate to the <strong>Language &amp; Region<\/strong> tab on the right.<\/p>\n\n\n\n<p>Now, click on the <strong>Region format<\/strong> option and select <strong>Change regional format<\/strong> button.<\/p>\n\n\n\n<p>Select the <strong>English (United States)<\/strong> format from the list.<\/p>\n\n\n\n<p>You&#8217;ll see a sample date confirming that you&#8217;ve successfully selected English (United States) as the region.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><a href=\"https:\/\/windowsreport.com\/wp-content\/uploads\/2024\/10\/Change-region-format.jpg\"><img decoding=\"async\" width=\"1024\" height=\"714\" src=\"https:\/\/windowsreport.com\/wp-content\/uploads\/2024\/10\/Change-region-format.jpg\" alt=\"Change region format\" class=\"wp-image-1430261\" srcset=\"https:\/\/windowsreport.com\/wp-content\/uploads\/2024\/10\/Change-region-format.jpg 1024w, https:\/\/windowsreport.com\/wp-content\/uploads\/2024\/10\/Change-region-format-300x209.jpg 300w, https:\/\/windowsreport.com\/wp-content\/uploads\/2024\/10\/Change-region-format-768x536.jpg 768w, https:\/\/windowsreport.com\/wp-content\/uploads\/2024\/10\/Change-region-format-700x488.jpg 700w, https:\/\/windowsreport.com\/wp-content\/uploads\/2024\/10\/Change-region-format-316x220.jpg 316w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure><\/div>\n\n\n<p>Now, <strong>restart<\/strong> the Excel desktop app.<\/p>\n\n\n\n<p>Try using the YEAR function and this time it should be able to extract the year from the date.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Negative or Non-Gregorian Dates<\/h3>\n\n\n\n<p>The YEAR function works well with <strong>Gregorian calendar<\/strong> dates. Even if you refer to a non-Gregorian calendar date, it&#8217;ll try to show the equivalent year.<\/p>\n\n\n\n<p>For example, the following screenshot shows that the argument is referencing cell A1 which has a date from the Hijri calendar. Therefore, the function can&#8217;t extract the year value appropriately and shows the <strong>#VALUE!<\/strong> error.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><a href=\"https:\/\/windowsreport.com\/wp-content\/uploads\/2024\/10\/Non-Gregorian-dates.jpg\"><img decoding=\"async\" width=\"508\" height=\"190\" src=\"https:\/\/windowsreport.com\/wp-content\/uploads\/2024\/10\/Non-Gregorian-dates.jpg\" alt=\"Non Gregorian dates\" class=\"wp-image-1430265\" srcset=\"https:\/\/windowsreport.com\/wp-content\/uploads\/2024\/10\/Non-Gregorian-dates.jpg 508w, https:\/\/windowsreport.com\/wp-content\/uploads\/2024\/10\/Non-Gregorian-dates-300x112.jpg 300w, https:\/\/windowsreport.com\/wp-content\/uploads\/2024\/10\/Non-Gregorian-dates-420x157.jpg 420w\" sizes=\"(max-width: 508px) 100vw, 508px\" \/><\/a><\/figure><\/div>\n\n\n<p>Moreover, if the input date value comes with a minus sign, the YEAR function won&#8217;t be able to calculate the year entry because Excel converts the source data into a negative fraction.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><a href=\"https:\/\/windowsreport.com\/wp-content\/uploads\/2024\/10\/Negative-dates.jpg\"><img decoding=\"async\" width=\"446\" height=\"194\" src=\"https:\/\/windowsreport.com\/wp-content\/uploads\/2024\/10\/Negative-dates.jpg\" alt=\"Negative dates\" class=\"wp-image-1430266\" srcset=\"https:\/\/windowsreport.com\/wp-content\/uploads\/2024\/10\/Negative-dates.jpg 446w, https:\/\/windowsreport.com\/wp-content\/uploads\/2024\/10\/Negative-dates-300x130.jpg 300w, https:\/\/windowsreport.com\/wp-content\/uploads\/2024\/10\/Negative-dates-420x183.jpg 420w\" sizes=\"(max-width: 446px) 100vw, 446px\" \/><\/a><\/figure><\/div>\n\n\n<p>So, ensure there are no negative dates in the input dataset.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"h-use-yearfrac-for-fractional-year-values\">Use YEARFRAC for Fractional Year Values<\/h3>\n\n\n\n<p>If you&#8217;re trying to extract the number of years from a start and end date, you&#8217;ll get an incorrect result with the YEAR function.<\/p>\n\n\n\n<p>It&#8217;ll process it as an input value and derive the corresponding year if possible, but not the actual calculated value.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><a href=\"https:\/\/windowsreport.com\/wp-content\/uploads\/2024\/10\/Using-YEARS-for-fraction.jpg\"><img decoding=\"async\" width=\"564\" height=\"222\" src=\"https:\/\/windowsreport.com\/wp-content\/uploads\/2024\/10\/Using-YEARS-for-fraction.jpg\" alt=\"Using YEARS for fraction\" class=\"wp-image-1430279\" srcset=\"https:\/\/windowsreport.com\/wp-content\/uploads\/2024\/10\/Using-YEARS-for-fraction.jpg 564w, https:\/\/windowsreport.com\/wp-content\/uploads\/2024\/10\/Using-YEARS-for-fraction-300x118.jpg 300w, https:\/\/windowsreport.com\/wp-content\/uploads\/2024\/10\/Using-YEARS-for-fraction-420x165.jpg 420w\" sizes=\"(max-width: 564px) 100vw, 564px\" \/><\/a><\/figure><\/div>\n\n\n<p>For instance, if you subtract the end date <strong>12\/10\/2024<\/strong> from the start date <strong>6\/10\/2025<\/strong> in Excel, it returns <strong>1643<\/strong>. Now, the YEAR function converts <strong>1643<\/strong>\u00a0to <strong>1904<\/strong> instead of <strong>4.5<\/strong> years.<\/p>\n\n\n\n<p>Here, you can use the following formula with the <strong>YEARFRAC<\/strong> function to quickly get the calculated year.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>=YEARFRAC(A2,B2)<\/code><\/pre>\n\n\n\n<p>In the above formula, <strong>A2<\/strong> is the start date and <strong>B2<\/strong> is the end date.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><a href=\"https:\/\/windowsreport.com\/wp-content\/uploads\/2024\/10\/YEARFRAC-use-case.jpg\"><img decoding=\"async\" width=\"614\" height=\"222\" src=\"https:\/\/windowsreport.com\/wp-content\/uploads\/2024\/10\/YEARFRAC-use-case.jpg\" alt=\"YEARFRAC use case\" class=\"wp-image-1430280\" srcset=\"https:\/\/windowsreport.com\/wp-content\/uploads\/2024\/10\/YEARFRAC-use-case.jpg 614w, https:\/\/windowsreport.com\/wp-content\/uploads\/2024\/10\/YEARFRAC-use-case-300x108.jpg 300w, https:\/\/windowsreport.com\/wp-content\/uploads\/2024\/10\/YEARFRAC-use-case-420x152.jpg 420w\" sizes=\"(max-width: 614px) 100vw, 614px\" \/><\/a><\/figure><\/div>\n\n\n<p>Excel will calculate and extract the number of years elapsed, which is <strong>4.5<\/strong>.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Summary<\/h2>\n\n\n\n<p>Now you know what to do when the Excel YEAR function is not working.<\/p>\n\n\n\n<p>Did any of the above methods work for you? Do you know of a better approach? Share your thoughts below.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>How can you fix the Excel YEAR function when it&#8217;s not working? It&#8217;s one of the easiest ways to extract a year component from a long or short date in Microsoft Excel. However, this function is prone to many errors especially if the source data value isn&#8217;t in the right Date format. So, I&#8217;ve recreated [&hellip;]<\/p>\n","protected":false},"author":2309,"featured_media":1430286,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"_enabled_clarity":"","footnotes":""},"categories":[133807,324498,324494],"tags":[457889,285],"work":[],"class_list":["post-1430209","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-how-to","category-excel","category-microsoft-office","tag-microsoft-excel","tag-microsoft-office"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v23.8 (Yoast SEO v23.8) - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Excel YEAR Function Not Working: 9 Best Fixes<\/title>\n<meta name=\"description\" content=\"Is the Excel YEAR function not working? Follow this detailed tutorial to fix the issue right now and start analyzing your data.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/windowsreport.com\/excel-year-function-not-working\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Excel YEAR Function Not Working: 9 Best Fixes\" \/>\n<meta property=\"og:description\" content=\"Is the Excel YEAR function not working? Follow this detailed tutorial to fix the issue right now and start analyzing your data.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/windowsreport.com\/excel-year-function-not-working\/\" \/>\n<meta property=\"og:site_name\" content=\"Windows Report\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/WindowsReport\" \/>\n<meta property=\"article:published_time\" content=\"2024-10-07T14:52:39+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-10-07T14:52:42+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/windowsreport.com\/wp-content\/uploads\/2024\/10\/Excel-YEAR-Function-Not-Working.jpeg\" \/>\n\t<meta property=\"og:image:width\" content=\"1280\" \/>\n\t<meta property=\"og:image:height\" content=\"720\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"Selma Citakovic\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@WindowsRep\" \/>\n<meta name=\"twitter:site\" content=\"@WindowsRep\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Selma Citakovic\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"7 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/windowsreport.com\/excel-year-function-not-working\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/windowsreport.com\/excel-year-function-not-working\/\"},\"author\":{\"name\":\"Selma Citakovic\",\"@id\":\"https:\/\/windowsreport.com\/#\/schema\/person\/5ca489277879796dd86d1aba33694174\"},\"headline\":\"Excel YEAR Function Not Working: 9 Best Fixes\",\"datePublished\":\"2024-10-07T14:52:39+00:00\",\"dateModified\":\"2024-10-07T14:52:42+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/windowsreport.com\/excel-year-function-not-working\/\"},\"wordCount\":1480,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/windowsreport.com\/#organization\"},\"image\":{\"@id\":\"https:\/\/windowsreport.com\/excel-year-function-not-working\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/windowsreport.com\/wp-content\/uploads\/2024\/10\/Excel-YEAR-Function-Not-Working.jpeg\",\"keywords\":[\"Microsoft Excel\",\"Microsoft Office\"],\"articleSection\":[\"How to\",\"Microsoft Excel\",\"Microsoft Office\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/windowsreport.com\/excel-year-function-not-working\/#respond\"]}],\"copyrightYear\":\"2024\",\"copyrightHolder\":{\"@id\":\"https:\/\/windowsreport.com\/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/windowsreport.com\/excel-year-function-not-working\/\",\"url\":\"https:\/\/windowsreport.com\/excel-year-function-not-working\/\",\"name\":\"Excel YEAR Function Not Working: 9 Best Fixes\",\"isPartOf\":{\"@id\":\"https:\/\/windowsreport.com\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/windowsreport.com\/excel-year-function-not-working\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/windowsreport.com\/excel-year-function-not-working\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/windowsreport.com\/wp-content\/uploads\/2024\/10\/Excel-YEAR-Function-Not-Working.jpeg\",\"datePublished\":\"2024-10-07T14:52:39+00:00\",\"dateModified\":\"2024-10-07T14:52:42+00:00\",\"description\":\"Is the Excel YEAR function not working? Follow this detailed tutorial to fix the issue right now and start analyzing your data.\",\"breadcrumb\":{\"@id\":\"https:\/\/windowsreport.com\/excel-year-function-not-working\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/windowsreport.com\/excel-year-function-not-working\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/windowsreport.com\/excel-year-function-not-working\/#primaryimage\",\"url\":\"https:\/\/windowsreport.com\/wp-content\/uploads\/2024\/10\/Excel-YEAR-Function-Not-Working.jpeg\",\"contentUrl\":\"https:\/\/windowsreport.com\/wp-content\/uploads\/2024\/10\/Excel-YEAR-Function-Not-Working.jpeg\",\"width\":1280,\"height\":720,\"caption\":\"Excel YEAR Function Not Working\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/windowsreport.com\/excel-year-function-not-working\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"How to\",\"item\":\"https:\/\/windowsreport.com\/category\/how-to\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Microsoft Office\",\"item\":\"https:\/\/windowsreport.com\/category\/how-to\/microsoft-office\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Microsoft Excel\",\"item\":\"https:\/\/windowsreport.com\/category\/how-to\/microsoft-office\/excel\/\"},{\"@type\":\"ListItem\",\"position\":4,\"name\":\"Excel YEAR Function Not Working: 9 Best Fixes\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/windowsreport.com\/#website\",\"url\":\"https:\/\/windowsreport.com\/\",\"name\":\"Windows Report\",\"description\":\"Time-saving software and hardware expertise that helped 500MM+ PC users. Guiding you with how-to advice, news and tips to upgrade your tech life.\",\"publisher\":{\"@id\":\"https:\/\/windowsreport.com\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/windowsreport.com\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/windowsreport.com\/#organization\",\"name\":\"WindowsReport\",\"url\":\"https:\/\/windowsreport.com\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/windowsreport.com\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/windowsreport.com\/wp-content\/uploads\/2020\/05\/windowsreport-logo-quantcast.png\",\"contentUrl\":\"https:\/\/windowsreport.com\/wp-content\/uploads\/2020\/05\/windowsreport-logo-quantcast.png\",\"width\":170,\"height\":28,\"caption\":\"WindowsReport\"},\"image\":{\"@id\":\"https:\/\/windowsreport.com\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/WindowsReport\",\"https:\/\/x.com\/WindowsRep\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/windowsreport.com\/#\/schema\/person\/5ca489277879796dd86d1aba33694174\",\"name\":\"Selma Citakovic\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/windowsreport.com\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/0d61801deac5682ddc68e3bad297bbf0?s=96&d=https%3A%2F%2Fwindowsreport.com%2Fwp-content%2Fuploads%2F2024%2F01%2Fwricon.png&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/0d61801deac5682ddc68e3bad297bbf0?s=96&d=https%3A%2F%2Fwindowsreport.com%2Fwp-content%2Fuploads%2F2024%2F01%2Fwricon.png&r=g\",\"caption\":\"Selma Citakovic\"},\"description\":\"Selma is a tech fan and editor at Windows Report. She is also an experienced writer with a focus on cybersecurity, troubleshooting hardware and operating systems, gaming, and all things Windows.\",\"url\":\"https:\/\/windowsreport.com\/author\/selma\/\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"Excel YEAR Function Not Working: 9 Best Fixes","description":"Is the Excel YEAR function not working? Follow this detailed tutorial to fix the issue right now and start analyzing your data.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/windowsreport.com\/excel-year-function-not-working\/","og_locale":"en_US","og_type":"article","og_title":"Excel YEAR Function Not Working: 9 Best Fixes","og_description":"Is the Excel YEAR function not working? Follow this detailed tutorial to fix the issue right now and start analyzing your data.","og_url":"https:\/\/windowsreport.com\/excel-year-function-not-working\/","og_site_name":"Windows Report","article_publisher":"https:\/\/www.facebook.com\/WindowsReport","article_published_time":"2024-10-07T14:52:39+00:00","article_modified_time":"2024-10-07T14:52:42+00:00","og_image":[{"width":1280,"height":720,"url":"https:\/\/windowsreport.com\/wp-content\/uploads\/2024\/10\/Excel-YEAR-Function-Not-Working.jpeg","type":"image\/jpeg"}],"author":"Selma Citakovic","twitter_card":"summary_large_image","twitter_creator":"@WindowsRep","twitter_site":"@WindowsRep","twitter_misc":{"Written by":"Selma Citakovic","Est. reading time":"7 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/windowsreport.com\/excel-year-function-not-working\/#article","isPartOf":{"@id":"https:\/\/windowsreport.com\/excel-year-function-not-working\/"},"author":{"name":"Selma Citakovic","@id":"https:\/\/windowsreport.com\/#\/schema\/person\/5ca489277879796dd86d1aba33694174"},"headline":"Excel YEAR Function Not Working: 9 Best Fixes","datePublished":"2024-10-07T14:52:39+00:00","dateModified":"2024-10-07T14:52:42+00:00","mainEntityOfPage":{"@id":"https:\/\/windowsreport.com\/excel-year-function-not-working\/"},"wordCount":1480,"commentCount":0,"publisher":{"@id":"https:\/\/windowsreport.com\/#organization"},"image":{"@id":"https:\/\/windowsreport.com\/excel-year-function-not-working\/#primaryimage"},"thumbnailUrl":"https:\/\/windowsreport.com\/wp-content\/uploads\/2024\/10\/Excel-YEAR-Function-Not-Working.jpeg","keywords":["Microsoft Excel","Microsoft Office"],"articleSection":["How to","Microsoft Excel","Microsoft Office"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/windowsreport.com\/excel-year-function-not-working\/#respond"]}],"copyrightYear":"2024","copyrightHolder":{"@id":"https:\/\/windowsreport.com\/#organization"}},{"@type":"WebPage","@id":"https:\/\/windowsreport.com\/excel-year-function-not-working\/","url":"https:\/\/windowsreport.com\/excel-year-function-not-working\/","name":"Excel YEAR Function Not Working: 9 Best Fixes","isPartOf":{"@id":"https:\/\/windowsreport.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/windowsreport.com\/excel-year-function-not-working\/#primaryimage"},"image":{"@id":"https:\/\/windowsreport.com\/excel-year-function-not-working\/#primaryimage"},"thumbnailUrl":"https:\/\/windowsreport.com\/wp-content\/uploads\/2024\/10\/Excel-YEAR-Function-Not-Working.jpeg","datePublished":"2024-10-07T14:52:39+00:00","dateModified":"2024-10-07T14:52:42+00:00","description":"Is the Excel YEAR function not working? Follow this detailed tutorial to fix the issue right now and start analyzing your data.","breadcrumb":{"@id":"https:\/\/windowsreport.com\/excel-year-function-not-working\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/windowsreport.com\/excel-year-function-not-working\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/windowsreport.com\/excel-year-function-not-working\/#primaryimage","url":"https:\/\/windowsreport.com\/wp-content\/uploads\/2024\/10\/Excel-YEAR-Function-Not-Working.jpeg","contentUrl":"https:\/\/windowsreport.com\/wp-content\/uploads\/2024\/10\/Excel-YEAR-Function-Not-Working.jpeg","width":1280,"height":720,"caption":"Excel YEAR Function Not Working"},{"@type":"BreadcrumbList","@id":"https:\/\/windowsreport.com\/excel-year-function-not-working\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"How to","item":"https:\/\/windowsreport.com\/category\/how-to\/"},{"@type":"ListItem","position":2,"name":"Microsoft Office","item":"https:\/\/windowsreport.com\/category\/how-to\/microsoft-office\/"},{"@type":"ListItem","position":3,"name":"Microsoft Excel","item":"https:\/\/windowsreport.com\/category\/how-to\/microsoft-office\/excel\/"},{"@type":"ListItem","position":4,"name":"Excel YEAR Function Not Working: 9 Best Fixes"}]},{"@type":"WebSite","@id":"https:\/\/windowsreport.com\/#website","url":"https:\/\/windowsreport.com\/","name":"Windows Report","description":"Time-saving software and hardware expertise that helped 500MM+ PC users. Guiding you with how-to advice, news and tips to upgrade your tech life.","publisher":{"@id":"https:\/\/windowsreport.com\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/windowsreport.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/windowsreport.com\/#organization","name":"WindowsReport","url":"https:\/\/windowsreport.com\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/windowsreport.com\/#\/schema\/logo\/image\/","url":"https:\/\/windowsreport.com\/wp-content\/uploads\/2020\/05\/windowsreport-logo-quantcast.png","contentUrl":"https:\/\/windowsreport.com\/wp-content\/uploads\/2020\/05\/windowsreport-logo-quantcast.png","width":170,"height":28,"caption":"WindowsReport"},"image":{"@id":"https:\/\/windowsreport.com\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/WindowsReport","https:\/\/x.com\/WindowsRep"]},{"@type":"Person","@id":"https:\/\/windowsreport.com\/#\/schema\/person\/5ca489277879796dd86d1aba33694174","name":"Selma Citakovic","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/windowsreport.com\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/0d61801deac5682ddc68e3bad297bbf0?s=96&d=https%3A%2F%2Fwindowsreport.com%2Fwp-content%2Fuploads%2F2024%2F01%2Fwricon.png&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/0d61801deac5682ddc68e3bad297bbf0?s=96&d=https%3A%2F%2Fwindowsreport.com%2Fwp-content%2Fuploads%2F2024%2F01%2Fwricon.png&r=g","caption":"Selma Citakovic"},"description":"Selma is a tech fan and editor at Windows Report. She is also an experienced writer with a focus on cybersecurity, troubleshooting hardware and operating systems, gaming, and all things Windows.","url":"https:\/\/windowsreport.com\/author\/selma\/"}]}},"_links":{"self":[{"href":"https:\/\/windowsreport.com\/wp-json\/wp\/v2\/posts\/1430209","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/windowsreport.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/windowsreport.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/windowsreport.com\/wp-json\/wp\/v2\/users\/2309"}],"replies":[{"embeddable":true,"href":"https:\/\/windowsreport.com\/wp-json\/wp\/v2\/comments?post=1430209"}],"version-history":[{"count":62,"href":"https:\/\/windowsreport.com\/wp-json\/wp\/v2\/posts\/1430209\/revisions"}],"predecessor-version":[{"id":1430667,"href":"https:\/\/windowsreport.com\/wp-json\/wp\/v2\/posts\/1430209\/revisions\/1430667"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/windowsreport.com\/wp-json\/wp\/v2\/media\/1430286"}],"wp:attachment":[{"href":"https:\/\/windowsreport.com\/wp-json\/wp\/v2\/media?parent=1430209"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/windowsreport.com\/wp-json\/wp\/v2\/categories?post=1430209"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/windowsreport.com\/wp-json\/wp\/v2\/tags?post=1430209"},{"taxonomy":"work","embeddable":true,"href":"https:\/\/windowsreport.com\/wp-json\/wp\/v2\/work?post=1430209"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}