Current Year in Excel: How to Display It Automatically
In this article
To display the current year in Excel, use the YEAR and TODAY functions together. This automatically updates every day to show the current calendar year without manual input, making it ideal for reports, invoices, or dynamic dashboards. No add-ins or external tools are needed—just Excel’s built-in functions.
What You'll Need
- Microsoft Excel (any version from 2007 onward, including Excel for Microsoft 365, Excel 2019, Excel 2016, Excel 2013)
- A cell where you want the year to appear
- Internet access is not required—the function works offline
Step-by-Step
- Open your Excel workbook and click on the empty cell where you want the current year to display (for example, cell A1).
- Type the formula
=YEAR(TODAY())exactly as shown, including the parentheses and capitalization. Do not add extra spaces or quotation marks. - Press Enter on your keyboard. The cell will instantly display the current four-digit year (e.g., 2024).
- To confirm it works, change your system date to a different year in your operating system’s settings, then return to Excel and press F9 to force a recalculation. The cell should update to match the new system year.
- If you want the year to appear in a different format, such as with two digits (e.g., 24 instead of 2024), wrap the formula in TEXT:
=TEXT(YEAR(TODAY()), "yy"). - To apply the same formula to multiple cells, click the cell with the formula, then drag the small square at the bottom-right corner of the cell (the fill handle) down or across to copy it to adjacent cells.
- If you need the year to appear in a header or footer, go to the Insert tab, click Header & Footer, then click inside the header or footer area and type
=YEAR(TODAY())directly into the box. Press Enter to confirm.
Common Mistakes
- Typing
=YEAR(TODAYwithout the closing parenthesis—Excel will show an error or leave the formula incomplete. - Using quotes around the formula, like
"=YEAR(TODAY())"—this turns it into text, not a function. - Using
=TODAY()alone—this returns the full date, not just the year. - Trying to use
=YEAR(NOW())without realizing it works but is unnecessary; TODAY() is simpler and does the same job for dates without time components. - Assuming the formula updates instantly when you change your computer’s date—Excel may not update until you press F9 or make another edit in the sheet.
- Copying the cell but pasting as values instead of keeping the formula—this locks the year and prevents future updates.
Tips
- Use
=YEAR(TODAY())in conditional formatting rules to highlight rows based on the current year—for example, to shade all entries from 2024 in a different color. - Combine it with other functions:
=YEAR(TODAY())-1gives you last year’s date, useful for comparisons. - For international users, Excel automatically respects your system’s regional date format, so the formula will still work even if your system uses DD/MM/YYYY or MM/DD/YYYY.
- Always test by changing your system date temporarily to ensure the formula updates correctly before relying on it in a critical document.
- If you’re working in a shared workbook, make sure all users have Excel versions that support TODAY() and YEAR()—they’re available since Excel 2003.
- Use named ranges for clarity: name a cell "CurrentYear" and set it to
=YEAR(TODAY()), then refer to "CurrentYear" in other formulas instead of repeating the function.
Troubleshooting
- The cell shows #NAME? error: This means Excel doesn’t recognize the function name. Check for typos: ensure you typed YEAR and TODAY correctly, with no extra letters or symbols. Also confirm you’re not using a non-English version of Excel—some languages use different function names (e.g., JAHRES() in German).
- The cell shows a date instead of a number: You may have applied a date format to the cell. Right-click the cell, choose Format Cells, and under Number, select Number or General instead of Date.
- The year doesn’t update: Excel’s calculation mode may be set to Manual. Go to Formulas > Calculation Options and ensure it’s set to Automatic. If it’s Manual, press F9 to recalculate.
- Formula works in one sheet but not another: Check if the workbook is in Protected View. If so, click Enable Editing at the top. Also verify that the cell isn’t formatted as text—select the cell, press Ctrl+1, and change the format to General.
- You get a #VALUE! error: This usually means the cell referenced in the formula contains text instead of a date. Since TODAY() returns a date, and YEAR() requires a date, make sure no other formula or text is interfering.
- It works on my PC but not on my colleague’s: Confirm both are using compatible Excel versions (2007 or later). Also, check if the colleague’s system date is incorrect or if Excel is in a different language setting.
Frequently Asked Questions
Can I use this formula in Google Sheets?
Yes. The same formula, =YEAR(TODAY()), works identically in Google Sheets, with identical behavior and automatic updates.Will it update on its own every day?
Yes, as long as Excel’s calculation mode is set to Automatic and the workbook is opened, it will update to the current year when recalculated—typically when you open the file or press F9.Does it work in Excel Online?
Yes. Excel Online fully supports the YEAR and TODAY functions. The year will update when the file is opened in a browser.Can I display the year without the formula being visible?
Yes. The formula will only display the result (the number 2024, for example). The formula itself is hidden unless you click the cell or view the formula bar.Can I use this to show only the last two digits of the year?
Yes. Use=TEXT(YEAR(TODAY()), "yy"). This returns 24 instead of 2024. Use "yyyy" if you want to force four digits.
What if I want the year from a specific date, not today’s date?
Replace TODAY() with a reference to a cell containing a date. For example, if cell B2 has a date like 3/15/2023, use=YEAR(B2) to extract 2023 from that date.