To get the current year in Excel, use the formula =YEAR(TODAY()). This combines the TODAY function, which retrieves the current date from your system clock, with the YEAR function, which extracts only the four-digit year from that date. This formula is dynamic, meaning it will automatically update to the next year as soon as your computer's date rolls over to January 1st.
What You'll Need
- A computer with Microsoft Excel installed (works on all versions including Office 365, Excel 2021, 2019, and earlier).
- A functioning system clock on your operating system, as Excel relies on the computer's date settings to determine what "today" is.
- Basic knowledge of how to click into a cell and type a formula.
Step-by-Step
- Select Your Target Cell: Open your Excel workbook and click on the specific cell where you want the current year to appear. If you want the year to be part of a larger header or a calculation, ensure you are in the correct location before typing.
- Start the Formula: Type the equals sign
=. In Excel, every formula must begin with an equals sign to tell the software that you are performing a calculation rather than entering static text. - Enter the YEAR Function: Type
YEAR(. The YEAR function is designed to look at a date and return only the year component. By opening the parenthesis, you are preparing to tell Excel which date it should look at. - Nest the TODAY Function: Inside the parentheses, type
TODAY(). The TODAY function requires its own set of empty parentheses because it does not need any additional arguments to work; it simply asks the system for the current date. Your formula should now look like this:=YEAR(TODAY()). - Close the Parentheses: Ensure there is a final closing parenthesis to shut the YEAR function. The complete string is
=YEAR(TODAY()). - Press Enter: Hit the Enter key on your keyboard. Excel will process the logic—first finding today's date (e.g., 2026-12-05) and then stripping away the month and day—leaving you with the four-digit year (e.g., 2026).
- Verify Cell Formatting: If the result looks like a strange date (such as 1/10/1905) instead of a year, you need to change the cell format. Go to the Home tab, look at the Number format dropdown menu, and change it from "Date" to "General" or "Number" (with zero decimal places).
Common Mistakes
One of the most frequent errors is forgetting the empty parentheses after the TODAY function. Because TODAY is a volatile function that takes no arguments, typing =YEAR(TODAY) without the parentheses will result in a #NAME? error. Excel thinks you are trying to reference a named range called "TODAY" rather than calling the built-in function.
Another common mistake is confusion between =TODAY() and =NOW(). While =YEAR(NOW()) also works and provides the correct year, the NOW function tracks both the date and the specific time. For the purpose of simply displaying the year, TODAY is the cleaner and more standard choice.
Users also often forget that this formula is volatile. A volatile function is one that recalculates every time any cell in the entire workbook is changed. If you have a massive spreadsheet with thousands of these formulas, it can occasionally slow down performance. If you need the year to stay fixed as the year it was entered (a timestamp), this formula is not the right tool, as it will change every January 1st.
Tips
If you want to use the current year as part of a sentence, such as "Copyright 2026", you cannot simply put the formula next to the text. You must use concatenation. Use the ampersand symbol (&) to join text and the formula. For example: ="Copyright " & YEAR(TODAY()). Note the space inside the quotation marks after the word Copyright; without it, the result would be "Copyright2026".
To create a dynamic date range for a report, you can use the current year minus a number. For example, if you want to show the previous year, use =YEAR(TODAY())-1. This is incredibly useful for annual financial summaries where the "Previous Year" column needs to update automatically every time the calendar turns.
If you are working in a professional environment where the date format varies by region (MM/DD/YYYY vs DD/MM/YYYY), the =YEAR(TODAY()) method is the safest approach. Because it extracts the year as an integer, it bypasses all regional date formatting conflicts that often plague users when they try to manually parse date strings using the LEFT or RIGHT functions.
Troubleshooting
If the formula returns a #VALUE! error, it usually means Excel is struggling to recognize the date provided by the system. Check your computer's system clock settings to ensure the date is set correctly. If the system date is corrupted or in a format the OS cannot communicate to Excel, the formula will fail.
If the cell displays #NAME?, double-check your spelling. Ensure you haven't typed YERE instead of YEAR or missed the parentheses after TODAY(). Excel is very strict about the exact naming of its functions.
If the result is a date like "January 5, 1905", this is a formatting issue, not a formula error. Excel stores dates as serial numbers starting from January 1, 1900. The number 2026 (the result of your formula) is interpreted by Excel as the 2,026th day after January 1, 1900, which lands in the year 1905. To fix this, right-click the cell, select Format Cells, and choose General.
If the year does not update when the calendar changes, check if your Calculation Options are set to Manual. Go to the Formulas tab, click Calculation Options, and ensure "Automatic" is selected. If it is set to Manual, the formula will only update when you press F9 or save the file.
Frequently Asked Questions
Can I use this formula to find the year of a specific cell?
Yes. Instead of using TODAY(), place the cell reference inside the YEAR function. For example, if a date is in cell A1, use =YEAR(A1) to extract the year from that specific date.
Will this formula change if I send the file to someone else?
Yes. Because the formula pulls from the system clock of the computer opening the file, it will show the current year based on the recipient's computer date.
How do I make the year stay permanent?
To stop the year from updating, you must convert the formula to a value. Copy the cell, right-click it, and select Paste Special > Values. This replaces the formula with the static number.
Does this work in Google Sheets?
Yes, the =YEAR(TODAY()) syntax is identical in Google Sheets and will function exactly the same way.
Can I get the last two digits of the year instead of four?
You can use the TEXT function for this. Use =TEXT(TODAY(), "yy"). This will return "26" instead of "2026".
What happens if the cell is empty?
If you are referencing another cell (like =YEAR(A1)) and that cell is empty, Excel treats the empty cell as 0, which corresponds to the date January 0, 1900. Therefore, the formula will return 1900.