The quickest way to get the last year end in Excel is =DATE(YEAR(TODAY())-1,12,31), which always returns 31 December of the previous year. If your year end is not December (for example a 31 March financial year), swap the month and day: =DATE(YEAR(TODAY())-1,3,31). If you want the most recent year end on or before today rather than strictly last year, use =DATE(YEAR(TODAY())-IF(DATE(YEAR(TODAY()),MONTH(TODAY()),1)<DATE(YEAR(TODAY()),3,1),1,0),3,31) or the simpler helper approach described below. Everything here works in Excel for Microsoft 365, Excel 2019 and later, and the same functions exist in Google Sheets and LibreOffice Calc.
What You'll Need
- Excel 2016 or later, Microsoft 365, Excel for Mac, Google Sheets, or LibreOffice Calc — the DATE, YEAR, TODAY and IF functions are used in all of them.
- A cell to hold the result, formatted as a date (Home > Number Format > Short Date or Long Date). Some versions and regions label this slightly differently, so look for the date category in the number format dropdown.
- Your company's or country's year-end date, if it is not 31 December.
- Optional: a pasted-in reference date in another cell, if you need the answer as of a specific day rather than today.
Step-by-Step
- Decide which year end you want. There are two common meanings. "Last year end" can mean the year end that has already passed — 31 December of the previous calendar year. It can also mean the most recent financial year end on or before today. Pick one before writing the formula, because they give different answers in the months before your year end.
- Write the basic formula. Click the result cell and type
=DATE(YEAR(TODAY())-1,12,31). Press Enter. If today is in 2026, the result is 31/12/2025. The DATE function always builds a valid date, so there is no risk of a bad month or day argument. - Change the month and day for a non-December year end. For a 31 March year end, use
=DATE(YEAR(TODAY())-1,3,31). For 30 June, use=DATE(YEAR(TODAY())-1,6,30). The final two numbers are simply the month and day of your year end, so you never have to remember which months have 30 or 31 days — DATE handles it. - Format the cell as a date. If the result shows a five-digit number such as 46022, the cell is formatted as General. Select it, open the number format dropdown on the Home tab, and choose Short Date. You can also press Ctrl+1 (Cmd+1 on Mac) and pick Date.
- Get the most recent year end instead of strictly last year. Put today's date in a cell, say A1, using
=TODAY(). Then in B1 use=DATE(YEAR(A1)-(MONTH(A1)<4),3,31)for a 31 March year end. TheMONTH(A1)<4part returns TRUE before April, which Excel counts as 1, so the formula subtracts a year until the year end has passed, then stops. For a 30 June year end useMONTH(A1)<7; for 31 December useMONTH(A1)<1, which is never true, so it always returns the current year's 31 December. - Test it against a known date. Temporarily type a fixed date into the reference cell instead of TODAY(), such as 15/02/2026 and 15/08/2026, and confirm the results step back correctly. Change the reference cell back to
=TODAY()when you are done. - Add labels and a static copy if needed. A formula based on TODAY() recalculates every time the workbook recalculates or reopens the next day. If the value must stay frozen, copy the cell and use Paste Special > Values into the same place or a new column.
Common Mistakes
Using YEAR(TODAY()) without subtracting. That returns the current year's 31 December, which has not happened yet for most of the year. It is not last year end.
Typing the date as text. Writing "31/12/2025" with quotes gives a text string that will not sort, subtract or feed other date functions. Always use DATE() or a real date serial.
Day and month swapped for US settings. DATE takes year, month, day in that order regardless of regional settings, so DATE(2025,12,31) is always 31 December. Typed text dates are the ones that flip.
Hard-coding the year. A formula with 2025 typed inside has to be edited every January. Deriving the year from TODAY() or a reference cell keeps it correct indefinitely.
Expecting EOMONTH to do it. EOMONTH returns the end of a month, not the end of a year. =EOMONTH(DATE(YEAR(TODAY())-1,12,1),0) works, but it is a longer way to say the same thing and can confuse anyone reading the sheet later.
Comparing a date to text. If a formula like =A1>"31/12/2025" returns odd results, the comparison is text-based. Use a real date or DATE() on both sides.
Tips
Name your reference cell. Select the cell, type a name such as AsOf in the Name Box to the left of the formula bar, and write formulas as =DATE(YEAR(AsOf)-(MONTH(AsOf)<4),3,31). It reads better and is easy to change in one place.
Use LET in modern Excel to make the logic readable: =LET(d,AsOf,DATE(YEAR(d)-(MONTH(d)<4),3,31)). This keeps the reference date in one spot.
If you need the last day of the following month or quarter, keep the DATE pattern and change only the month number — DATE(year, month+1, 0) gives the last day of the month before it, which is a handy trick for quarter ends.
Format with a custom format such as dd mmm yyyy when you want the month spelled out, so month and day order cannot be misread in international reports.
For financial models, put the year-end month and day in two input cells and reference them: =DATE(YEAR(TODAY())-1,MonthCell,DayCell). Changing the financial year then needs no formula edits at all.
Keep an eye on TODAY(): it has no time component, but it does update only when the workbook recalculates, so a file left open overnight may show yesterday until you press F9.
Troubleshooting
The cell shows a number like 46022. The formula is fine; the format is General. Apply a date format with Ctrl+1.
You see #VALUE!. One of the arguments is text, often a reference cell holding a date typed as text. Re-enter it as a real date or convert with DATEVALUE, and check there are no stray spaces.
The answer changes when you switch computers. This is usually a text-versus-date issue, or a hard-coded date in the formula. Confirm the formula references TODAY() or a named cell.
The result is a year off. Check the comparison month in the IF-style formula. A March year end needs MONTH(d)<4; a June year end needs MONTH(d)<7. Being off by one in that number shifts the whole answer by a year.
The value was right yesterday and is wrong today. That is expected behaviour with TODAY(). Use Paste Special > Values if the value must be fixed.
Nothing seems to recalculate. Set calculation to Automatic under Formulas > Calculation Options, or press F9 to force a recalculation.
If that did not work, build the date piece by piece in separate cells — YEAR(TODAY()) in one, the year-end month in another, the day in a third — and combine them with DATE. Seeing each part makes the mistake obvious.
Frequently Asked Questions
What is the formula for the last calendar year end?
=DATE(YEAR(TODAY())-1,12,31). It always returns 31 December of the previous year, whatever month you are in.
How do I get the last fiscal year end for a 31 March year?
Use =DATE(YEAR(TODAY())-(MONTH(TODAY())<4),3,31). Before April it returns the March just gone; from April onward it returns the next March.
Can I get the year end as of a specific date instead of today?
Yes. Replace TODAY() with a cell reference such as A1 that holds your date. The formula logic stays the same.
Does this work in Google Sheets and LibreOffice Calc?
Yes. DATE, YEAR, MONTH, TODAY and IF behave the same way in both, and the formulas can be pasted in unchanged.
How do I stop the year end updating every day?
Copy the cell and use Paste Special > Values to replace the formula with a fixed date, or keep the formula and store the static result in a separate column for reporting.
Why does my formula return 31 December of this year instead of last year?
The -1 is missing, or the comparison month is set so the formula thinks this year's year end has already passed. Check both parts.