Use the YEAR function combined with TODAY or NOW to automatically insert the current year into your spreadsheet. This is done by typing =YEAR(TODAY()) into any cell to get the full four-digit year, or =YEAR(NOW()) to get the year based on the exact time, including the current date and time.

What You'll Need

  • A computer with Microsoft Excel installed (Excel 2010, 2013, 2016, 2019, 2021, or Microsoft 365).
  • A spreadsheet file (.xlsx, .xls, or .xlsm) with some data in it (for practical examples).
  • Basic familiarity with clicking cells and typing formulas.

Step-by-Step

  1. Open your Excel workbook. Launch Microsoft Excel and open the specific file where you want to insert the current year. If you are testing this for the first time, you can open a blank workbook.
  2. Select the cell where you want the year to appear. Click on any empty cell in your worksheet. This is where Excel will display the result of the year calculation. A common practice is to place this in the header or a summary row at the top of your data.
  3. Type the YEAR function syntax. In the selected cell, type the equals sign (=) followed by the function name YEAR. The formula will start with =YEAR(.
  4. Insert the date source. The YEAR function requires a date serial number or a date reference to work. For the current year, you must nest the TODAY function inside YEAR. Type TODAY() immediately after the opening parenthesis of the YEAR function.
  5. Close the parentheses. Type a closing parenthesis ) and then press the Enter key on your keyboard.
  6. Verify the result. The cell should now display the four-digit year corresponding to the current date on your computer. For example, if today is October 2023, the cell will show 2023.
  7. Understand the difference between TODAY and NOW. The formula =YEAR(TODAY()) uses the current date but ignores the time. The formula =YEAR(NOW()) uses the current date and time. In most practical cases, using TODAY is preferable because the time component rarely changes the result from one day to the next, but it ensures the function is strictly date-based.
  8. Drag to apply to other cells. If you have a list of dates in column A and you want to extract the year for each one, click the cell with your formula, hover over the bottom-right corner of the cell until you see the small black cross (the fill handle), and drag it down to populate the other cells with their respective years.

Common Mistakes

One of the most frequent errors when using the YEAR function is entering a static number instead of a date function. If you type =YEAR(2023), Excel will not return the current year; instead, it will return the year 2023, which is not dynamic. The function will only calculate the year for the specific value you typed. To fix this, you must wrap the date source in TODAY() or NOW() to make it dynamic, changing the formula to =YEAR(TODAY()).

Another common issue is formatting errors. If the cell containing the formula is formatted as text, Excel may display the formula itself rather than the calculated year. To resolve this, right-click the cell, select Format Cells, and choose a number format like General or Number. This forces Excel to calculate and display the result.

Tips

When building a report, it is good practice to separate your date logic from your data. Create a separate cell for the current year formula and reference that cell in your other formulas. For example, type =YEAR(TODAY()) in cell B1, and then in another cell, type =A1-B1 to calculate the age or tenure based on the current year. This makes it easier to update your report later, as you only need to change the formula in the source cell.

For financial models, consistency is key. If your data spans multiple years, ensure that your year formatting is uniform. Using the YEAR function ensures that your reports automatically roll over to the new year without manual intervention, provided the computer's system date is correct.

Troubleshooting

If the cell displays a serial number (like 45200) instead of the year, your cell is likely not formatted as a number. Right-click the cell, select Format Cells, and choose Number from the list on the left. Ensure the decimal places are set to 0 to remove the time component if you are using NOW().

If the formula does not update when the date changes, check that the Automatic Calculation setting is enabled. Go to the Formulas tab on the ribbon and look for the Calculation Options group. Ensure that Automatic is selected. If it is set to Manual, you will need to press F9 to calculate the formulas.

Another potential issue is if the workbook is linked to a system with a different date format. If the system date is set in a format that Excel does not recognize (such as DD/MM/YYYY in some regions), the TODAY function may return an error or an unexpected serial number. Ensure your computer's regional date settings match the format expected by Excel (usually MM/DD/YYYY or DD/MM/YYYY) to ensure the function works correctly.

Frequently Asked Questions

Does the YEAR function work in Google Sheets?

Yes, the YEAR function works identically in Google Sheets. You can type =YEAR(TODAY()) in any cell, and it will return the current year based on the system clock.

How do I get just the last two digits of the current year?

You can use the RIGHT function combined with TODAY. Type =RIGHT(YEAR(TODAY()), 2) into a cell. This will extract the last two characters from the four-digit year string.

Why does my YEAR formula return 1900?

If you see 1900, it is likely because the cell is not formatted as a number, or the TODAY function is returning a text string that Excel cannot convert to a date. Check the cell formatting and ensure your computer's date settings are correct.

Can I use YEAR with a specific date instead of the current date?

Absolutely. You can type the date directly into the formula, enclosed in quotation marks. For example, =YEAR("July 4, 2024") will return 2024.

How do I calculate the difference between two years?

To find the difference between two years, subtract the earlier year from the later year. If you have the current year in cell B1 and a past year in cell A1, you can type =B1-A1 to get the number of years between them.