Remaining days to New Year from a specific date
This tutorial shows how to calculate the remaining days from a specific date to New Year in Excel
GENERIC FORMULA
=DATE(YEAR(date),12,31)+1-date
ARGUMENTS EXPLANATION This formula uses a combination of the DATE and YEAR function to calculate the number of days left in a year from a specific date, including the end date. At the beginning of the formula we use the DATE function to return the last date for the selected date's year, with the month and day fixed at 12 months (representing the December month number) and 31 days (representing the last day in December). The year of the selected date is derived with the use of the YEAR function.
We add a value of one (1) to the DATE function to include the end date and then subtract the specific date. This will return the number of days remaining until the new year from the selected date, including the end date. |
GENERIC FORMULA
=DATE(YEAR(date),12,31)-date
ARGUMENTS EXPLANATION This formula uses a combination of the DATE and YEAR function to calculate the number of days left in a year from a specific date, excluding the end date. At the beginning of the formula we use the DATE function to return the last date for the selected date's year, with the month and day fixed at 12 months (representing the December month number) and 31 days (representing the last day in December). The year of the selected date is derived with the use of the YEAR function.
The formula then subtracts the specified date. This will return the number of days remaining until the new year from the specified date, excluding the end date. |
RELATED TOPICS
Related Topic | Description | Related Topic and Description |
---|---|---|
Remaining days to New Year from today | How to calculate the remaining days from today to New Year in Excel |
RELATED FUNCTIONS
Related Functions | Description | Related Functions and Description |
---|---|---|
DATE Function | The Excel DATE function returns a date through the use of individual year, month and day parameters | |
YEAR Function | The Excel YEAR function returns the year from a specified date |