To show the current year in Excel, use the formula =YEAR(TODAY()). This combination tells Excel to first find today's full date and then extract only the four-digit year from that date, ensuring the cell updates automatically every time the workbook is opened in a new year.

What You'll Need

  • A computer with Microsoft Excel installed (works on Windows, macOS, and Excel for the Web).
  • An open workbook and a selected cell where you want the year to appear.
  • Basic knowledge of how to type a formula into the formula bar.

Step-by-Step

  1. Select the Target Cell: Click on the cell where you want the current year to be displayed. If you need the year to appear in multiple places, you can select one cell first and copy the formula later.
  2. Enter the Equals Sign: Type = into the cell. In Excel, every formula must begin with an equals sign to tell the software that you are performing a calculation rather than entering plain text.
  3. Input the YEAR Function: Type YEAR(. The YEAR function is designed specifically to pull the year component out of a date value.
  4. Nest the TODAY Function: Inside the parentheses of the YEAR function, type TODAY(). The TODAY function retrieves the current date from your system clock. Note that TODAY requires its own set of empty parentheses because it does not need any additional arguments to work.
  5. Close the Parentheses: Type the final closing parenthesis ) to close the YEAR function. Your complete formula should look exactly like this: =YEAR(TODAY()).
  6. Press Enter: Hit the Enter key on your keyboard. The cell will now display the current four-digit year (e.g., 2024).
  7. Verify the Format: If the cell shows a strange date (like 1/5/1905) instead of a year, you need to change the cell format. Go to the Home tab, look at the Number group in the ribbon, and change the dropdown menu from "Date" to "General" or "Number".

Common Mistakes

One of the most frequent errors is forgetting the empty parentheses for the TODAY function. Writing =YEAR(TODAY) will result in a #NAME? error because Excel thinks you are trying to reference a named range called "TODAY" rather than using the built-in function. Always ensure it is written as TODAY().

Another common mistake is using the =DATE() function incorrectly. While =DATE(YEAR(TODAY()), 1, 1) is a valid formula, it returns a full date (January 1st of the current year) rather than just the year number. If your goal is a simple four-digit year, avoid the DATE function and stick to the YEAR function alone.

Users also occasionally try to type the year manually. While typing "2024" works for today, it creates a static value. This means when January 1st of next year arrives, you will have to manually find and update every single instance of that year across your entire spreadsheet, which is prone to human error and inefficiency.

Finally, some users confuse the NOW() function with the TODAY() function. While =YEAR(NOW()) also works, the NOW function tracks both the date and the specific time of day. For simply displaying the year, TODAY is the cleaner and more standard choice, as it only tracks the date.

Tips

Combining Year with Text: If you want the cell to say "The current year is 2024", you can use concatenation. Use the formula ="The current year is " & YEAR(TODAY()). The ampersand (&) symbol acts as a glue that joins the text string in quotes with the result of the formula.

Using the Year in a Range: If you are creating a financial report that spans several years, you can use the current year as a baseline. For example, to show the previous year, use =YEAR(TODAY())-1. To show the following year, use =YEAR(TODAY())+1. This ensures your reports always roll forward automatically.

Locking the Year: Sometimes you want the current year to appear when you create a record, but you don't want it to change when the year actually turns. In this case, do not use a formula. Instead, use the keyboard shortcut Ctrl + ; (semicolon) to insert the current date as a static value, then use the Format Cells menu to show only the year. This "stamps" the date so it remains permanent.

Custom Number Formatting: If you have a full date in a cell (e.g., 12/25/2024) but only want it to look like the year without changing the underlying data, you can use custom formatting. Right-click the cell, select "Format Cells", go to the "Number" tab, select "Custom", and in the Type box, enter yyyy. This keeps the full date for calculations but displays only the year to the viewer.

Troubleshooting

The cell shows a date like 1/1/1905: This is the most common issue. Excel stores dates as sequential numbers starting from January 1, 1900. The number 2024 (the result of your formula) is interpreted by Excel as the 2,024th day after January 1, 1900, which lands in the year 1905. To fix this, go to the Home tab, find the Number Format dropdown, and change it to "General".

The formula shows as text: If you see =YEAR(TODAY()) written out in the cell instead of the year, the cell is likely formatted as "Text". Change the cell format to "General", then double-click the cell and press Enter again to trigger the calculation.

#NAME? Error: This usually means there is a typo in the function name. Check that you haven't written "YERE" instead of "YEAR" or "TODY" instead of "TODAY". Ensure there are no spaces between the function name and the opening parenthesis.

#VALUE! Error: This occurs if the YEAR function is pointing to a cell that contains text instead of a valid date. If you are using =YEAR(A1) instead of =YEAR(TODAY()), make sure cell A1 actually contains a date and not a word or a number that Excel doesn't recognize as a date.

Frequently Asked Questions

Will the year update automatically on January 1st?

Yes. Because the TODAY() function is volatile, it checks your system clock every time the worksheet recalculates. When the clock strikes midnight on January 1st, the formula will automatically update to the new year.

Can I show the year as two digits (e.g., 24)?

The YEAR function always returns four digits. To show only two, you can either use the formula =RIGHT(YEAR(TODAY()), 2) or use Custom Cell Formatting by setting the format to yy.

Does this work in Google Sheets as well?

Yes, the =YEAR(TODAY()) syntax is identical in Google Sheets and will function exactly the same way.

How do I show the current year in a header or footer?

Formulas do not work in the Page Setup header or footer. To get the date in a footer, go to Insert > Header & Footer and use the "Current Date" button. However, this will show the full date; you cannot limit it to just the year using the built-in footer tools.

Is there a keyboard shortcut for the current year?

There is no direct shortcut for just the year. You can press Ctrl + ; to insert today's full date, and then manually delete the month and day, or use the custom formatting mentioned in the Tips section.