To get the current year in Excel, you don’t need complicated workarounds—just a few built-in functions that return the year automatically. Whether you’re setting up a budget, labeling reports, or generating dynamic date-related formulas, Excel’s native methods ensure accuracy without manual entry. No extra steps or third-party plugins are required, but some formulas work best in specific contexts (e.g., Excel files vs. web versions).

What You'll Need

  • A working Microsoft Excel file (desktop version 2016+ or Office 365; web Excel Online requires similar functions).
  • Basic knowledge of Excel formulas (e.g., `=TODAY()`, `=DATE()`).
  • An active internet connection if using Excel Online (though formulas still work offline).

Step-by-Step

  1. To display the current year in a cell (e.g., cell A1), use the YEAR function. This extracts the year from Excel’s internal date system, which always reflects today’s date.
     =YEAR(TODAY()) 
    Paste this into any cell, and Excel will update automatically when you refresh (e.g., with F9 or by saving the file). Note: In Excel Online, this works identically, though some advanced date functions may behave differently if your system clock is misaligned.
  2. For a static display (not updating), use =YEAR() without an argument, but this will show the year of the last saved file, not today’s date. Example:
     =YEAR() 
    This is only useful for legacy files where you need a fixed year reference.
  3. To pull the year from another cell containing a date, reference that cell with YEAR. For example, if cell B5 holds today’s date, use:
     =YEAR(B5) 
  4. If you’re working with a date string (e.g., "2024-12-31"), Excel’s YEAR function still works, but you must first convert it to a date format. Use:
     =YEAR(DATEVALUE("2024-12-31")) 
    or
     =YEAR(DATE(2024, 12, 31)) 
    This ensures accuracy even if the input is a text format.

Common Mistakes

  • Using =YEAR() without arguments: This returns the file’s year, not today’s date. Always include a date function like TODAY() or a cell reference.
  • Forgetting to save the file: Excel Online may cache the year from the last saved state if no dynamic trigger (like F9) is used. To force an update, press Ctrl+Shift+F9 or refresh the spreadsheet.
  • Mixing date formats in calculations: If your data uses YYYY-MM-DD but Excel interprets it as MM-DD-YYYY, the year might appear off by one. Use DATEVALUE to normalize formats.
  • Ignoring Excel Online limitations: While TODAY() works, some older Excel versions may not update dates in cloud files unless you manually refresh.

Tips

  • Save as a template: If you frequently use this formula, create a template file with the formula pre-loaded. Double-click the icon to open it and it will reflect today’s year automatically.
  • Combine with TEXT function: To format the year as text (e.g., "2024" instead of 2024), use:
     =TEXT(YEAR(TODAY()), "0000") 
    This ensures 4-digit output even if Excel’s internal year is stored differently.
  • Avoid Excel’s "Year" dropdown: The contextual menu’s "Year" option only shows the last saved year—it doesn’t update dynamically.
  • Use in conditional formatting: Apply the YEAR function to a cell and set conditional formatting rules (e.g., highlight years > 2023) for dashboards.

Troubleshooting

  1. The year shows wrong or doesn’t update: Check your system date/time in Excel’s settings: 1. Go to File > Options > Advanced. 2. Under "Edit settings for my computer," verify the date/time is correct. 3. Restart Excel or refresh the file (F9). Excel Online: Ensure your browser’s date settings align with your device clock. If offline, the year will default to the last saved date.
  2. Formula errors (e.g., #VALUE!): This occurs if the input cell contains non-date data (e.g., text). Convert it first:
     =YEAR(IF(A1="", TODAY(), A1)) 
    This checks if the cell is empty before applying the function.
  3. Excel Online not updating: Clear browser cache or try a different tab/window. In Excel Desktop, use Ctrl+Shift+F9 to force a refresh.
  4. Year appears as 1904 (or older): This happens if your file is corrupted or the date system is misconfigured. Repair the file by: 1. Opening in a new workbook. 2. Copying the formula you need and pasting it into a fresh cell. 3. Saving as a new file (avoid overwriting the original).

Frequently Asked Questions

Why does Excel sometimes show 1904 instead of 2024?

This is Excel’s internal date system quirk. Dates before January 1, 1900 are offset by 138 years (so 1900 appears as 1904–1900 + 138). To force Excel to use the correct year, add 138 to your formula:
 =YEAR(TODAY()) + 138 

Can I use this formula in Google Sheets?

No. Google Sheets uses a different date system (1970 as reference) and requires:
 =YEAR(TODAY()) 
to work, but it may not update in real-time. For static years, `YEAR` alone suffices.

How do I get the current year in a pivot table?

Add a calculated field in the pivot table: 1. Right-click the field > "Values" > "Calculated Field." 2. Set the formula to =YEAR(TODAY()) and label it "Current Year." 3. Group by this field to filter data by year.

What if Excel Online shows a different year than my computer?

This happens if: - Your browser’s date isn’t synced with your device. - Excel Online caches the last saved date (no refresh). Fix: Use Ctrl+Shift+F9 to force a refresh or check your browser’s date settings.

Can I use this for a report that needs the fiscal year?

Yes, but adjust for fiscal year rules (e.g., July–June). In Excel, fiscal year starts in cell B1:
 =YEAR(TODAY()) + MOD(YEAR(TODAY()) - 1900, 100) 
For 2024 fiscal year (July 2023–June 2024), use:
 =YEAR(TODAY()) + 3 
(Subtract 1 for January–December, add 3 for July–June.)

Why does my formula show 2024 but the date is actually 2023?

This happens if: - The cell contains a static date (e.g., "2023-12-31") but your formula uses TODAY(). - The file was saved in a time zone where it appears as 2023 (e.g., UTC–8). Fix: Use a cell containing today’s date (e.g., `=TODAY()`) or adjust the time zone.