Excel’s simplest way to return the current year is the YEAR function, which extracts the last two digits of today’s date. If you need the full four-digit year (e.g., 2023), combine it with TEXT or use YEAR + manual formatting. No extra setup is needed—just type the formula into any cell, and it updates automatically when you refresh the sheet. This works in all Excel versions (desktop/mobile) and handles dates from 1900 onward. Skip to the steps to see how it’s done in practice.
What You'll Need
- A working version of Microsoft Excel (Excel for desktop, Excel Online, or Excel for Office 365)
- A cell where you want the current year displayed (e.g., A1)
- Basic familiarity with Excel formulas (you can copy/paste the formula if unsure)
Step-by-Step
-
Open your Excel spreadsheet. Ensure you’re in the desktop app version (mobile or tablet steps are identical but use a smaller keyboard). Select the cell where you want the year displayed (e.g., A1) and type
=YEAR(TODAY()). Press Enter.If Excel shows an error like "#VALUE!", you may need to enable date functions. Try these fixes first:
- Press
Ctrl + Shift + F11to toggle dates off/on. - If that doesn’t work, sign out of Excel Online or restart your PC.
- Press
-
The result will show as two digits (e.g., 23 for 2023). To display the full four-digit year (e.g., 2023), use this formula instead:
=YEAR(TODAY())in a new cell, then right-click the number and chooseFormat Cells>Custom. Enteryyyyin the "Type" box and click OK.
Common Mistakes
-
Using a static date instead of TODAY(): If you type
=YEAR(4/1/2023), it returns 2023 but won’t update. Always useTODAY()to force Excel to check the live date.DATE(without arguments) also works. -
Forgetting to refresh the sheet: Excel updates formulas when you press
F9(Windows) or tap the sheet tab (mobile). No refresh needed in Excel Online, but add=FILTER(...) if you want dynamic updates without manual steps. - Off-by-one errors: Excel’s year calculations may seem inconsistent (e.g., 2024 returns 24). To verify, compare with a real calendar year. The formula is mathematically correct; misalignment comes from Excel’s internal date system (year 1 = 1900).
Tips
-
Need a specific year format? Use
TEXT(YEAR(TODAY()), "yyyy")to force four digits. Replace "yyyy" with "0000" for two digits (e.g.,03instead of2023) or "000" for three digits. - For Excel Online: The formula works identically, but results appear as two digits. To fix, edit the cell as a custom format (see Step 2 above).
- Bulk update years: Paste the formula into multiple cells (e.g., B1:B10) to get the current year in every cell. Drag the fill handle (small square at bottom-right) to copy the formula down.
-
Combine with other functions: Use
=YEAR(TODAY()) + 5to project the year five years ahead, or=IF(YEAR(TODAY()) >= 2024, "Current Year", "Past")to label years. -
Mobile/Tablet: Use the same formula, but tap and hold the cell to edit. The keyboard will show formulas instead of text, so press
Enterto confirm.
Troubleshooting
-
Formula returns #VALUE! but TODAY() works:
- Restart Excel (close all tabs).
- Update Excel to the latest version from Microsoft’s site.
- Sign out and back into Excel Online.
-
Excel refuses to update:
- Press
F9(Windows) or tap the sheet tab on mobile to refresh. - Check if
TODAY()is visible in the formula bar. If not, tryDATEwithout arguments.
- Press
-
Year shows as N/A:
- Ensure the cell is empty or typed as a date (not text).
- If the sheet contains text (e.g., "2023"), replace it with a blank cell before running the formula.
Frequently Asked Questions
Why does Excel sometimes show 2023 as 03?
Excel displays years as two digits when the formula returns a value less than 100. For example, =YEAR(TODAY()) - 2000 returns 3 for 2023. To force four digits, use the TEXT function as shown in Step 2.
Can I use YEAR(TODAY()) in Google Sheets?
No, Google Sheets uses =YEAR() (without TODAY()) to return the current year as two digits. Replace TODAY() with TODAY() in Excel formulas for Google Sheets, but test carefully—Google Sheets treats dates differently.
How do I get the year from a specific date?
Use =YEAR("date_in_format") (e.g., =YEAR("4/1/2023")). For dynamic dates, extract the year from a cell with =YEAR(A1).
Will YEAR(TODAY()) work in Excel for Mac?
Yes, the formula is identical. Mac Excel displays the same results, but the "Format Cells" menu path is slightly different:
- Right-click the cell > Format > Number.
- Select Custom > Enter "yyyy" in the "Type" field.
Why does Excel sometimes show 1900 as 00?
Excel’s date system treats 1900 as year 1, and dates before 1900 are invalid. If you encounter this, verify your sheet contains valid dates (Excel assumes dates are correct unless formatted as text or invalid). For historical data, use a custom range or external data source.
How can I make the year update automatically without pressing F9?
Excel Online and recent desktop versions auto-update when you edit cells. For full automation, use VBA (macro) or add a manual refresh button in your ribbon. For dynamic reports, combine with FILTER:
=FILTER(A:A, YEAR(TODAY()) = YEAR(A:A), "No Data")