To get the end-of-year date in Excel, the most reliable formula is =DATE(YEAR(A1),12,31), where A1 is the cell containing the date you are referencing. This formula extracts the year from your source date and manually assigns December 31st as the day, ensuring you always land on the final day of that specific calendar year.
What You'll Need
- A computer with Microsoft Excel installed (all versions).
- A cell containing a valid date (e.g., 05/12/2026) to use as your reference point.
- Basic familiarity with entering formulas into the formula bar.
Step-by-Step
- Set up your reference date: Enter a date in a cell. For this example, let's assume your date is in cell A2.
- Select the target cell: Click on the cell where you want the end-of-year date to appear (e.g., cell B2).
- Enter the DATE and YEAR functions: Type the following formula exactly:
=DATE(YEAR(A2),12,31). - Press Enter: Once you hit Enter, Excel will calculate the date. If the reference date in A2 is in 2026, the result will be 12/31/2026.
- Format the cell: If the result appears as a five-digit number (like 46388), it is because the cell is formatted as a "General" number. Go to the Home tab, find the Number group, and change the dropdown menu from "General" to Short Date.
- Apply to multiple rows: If you have a column of dates, click the small green square (fill handle) at the bottom-right corner of cell B2 and drag it down to apply the formula to the rest of your list.
Common Mistakes
- Using the wrong cell reference: Ensure the cell inside the
YEAR()function matches the cell where your date is stored. If your date is in C5, the formula must be=DATE(YEAR(C5),12,31). - Typing the date as text: If your reference date is typed as "December 2026" (text) rather than a proper Excel date format, the
YEAR()function will return a#VALUE!error. - Confusing the DATE function order: The
DATEfunction requires arguments in the order of(Year, Month, Day). Swapping the month and day (e.g., 31, 12) will result in an error or an incorrect date.
Tips
- Dynamic Current Year: If you want the formula to always show the end of the current calendar year regardless of a reference cell, use
=DATE(YEAR(TODAY()),12,31). - Calculating the End of the Fiscal Year: If your fiscal year ends in a different month (e.g., March), simply change the "12" in the formula to "3" and the "31" to "31".
- Using EOMONTH: For a slightly different approach, you can use
=EOMONTH(DATE(YEAR(A2),12,1),0). This tells Excel to find the end of the month for December 1st of that year.
Troubleshooting
If the formula does not produce the expected result, try these steps in order:
- Check for #VALUE! errors: This usually means the reference cell is not recognized as a date. Select the reference cell and check the Number format. If it is "Text," convert it to "Date" and re-enter the date.
- Check for #NAME? errors: This happens if the function name is misspelled. Ensure there are no typos in
DATEorYEAR. - Verify Date Settings: If the date looks correct but the month and day are swapped, check your computer's regional settings. Excel follows the system's date format (MM/DD/YYYY vs DD/MM/YYYY).
- Check for Circular References: Ensure you aren't placing the formula in the same cell that the formula is referencing (e.g., putting the formula in A2 while referencing A2).
Frequently Asked Questions
Can I use this to find the end of the next year?
Yes. Simply add 1 to the year part of the formula: =DATE(YEAR(A2)+1,12,31).
Does this work in Google Sheets?
Yes, the DATE and YEAR functions are standard across both Microsoft Excel and Google Sheets and work identically.
What happens if the reference cell is empty?
If the reference cell is empty, Excel treats it as day 0 (January 0, 1900). The formula will likely return 12/31/1900. To avoid this, use an IF statement: =IF(A2="","",DATE(YEAR(A2),12,31)).
Is there a way to do this without a formula?
If you only need to do this once, you can manually type the date. However, formulas are recommended for datasets that change or for templates that will be reused in future years.
Will this work for leap years?
Yes. Since the end of the year is always December 31st regardless of whether it is a leap year, this formula remains accurate for every year.