Excel Formula: Count Days Between Two Dates Ignore Year
Generally, we count the number of days between two dates by later date-earlier date in Excel. However, if you want to count the days between two dates ignoring the year, what formula can you use?
If you want to follow along with this tutorial, please download the example spreadsheet.
Generic formula:
DATEDIF(start_date,end_date,”yd”) |
Syntaxt and Arguments
Start_date, end_date: the two dates that you want to count the number of days between. The start_date must be smaller than the end_date, otherwise, the formula returns #NUM! |
Return Value
This formula returns a numeric value.
How this formula works
To count days between the dates in cell B3 and C3 ignoring year, please use the formula as below:
=DATEDIF(B3,C3,"yd") |
Press Enter key, and then drag auto fill handle down to the cells that need this formula.
Explanation
DATEDIF function: returns the years, months or days between two dates.
Relative Formulas
- Count days of month
This tutorial provides formulas to count the total days of the month based on given date. - Count days until expiration date
To count the days between today and each expiration date in Excel by formula - Display current date or time
This tutorial provides formulas to show the current date or time in Excel. - Create weekly date range
In this tutorial, it provides a formula to quickly get the weekly date range in Excel.
Relative Functions
- Excel WEEKNUM Function
Returns the week number of the given date in a year - Excel WORKDAY Function
Adds workdays to the given start date and returns a workday - Excel MONTH Function
The MONTH is used to get the month as integer number (1 to 12) from date - Excel DAY Function
DAY function gets the day as a number (1 to 31) from a date - Excel NOW Function
Get the current time and date
The Best Office Productivity Tools
Kutools for Excel - Helps You To Stand Out From Crowd
Kutools for Excel Boasts Over 300 Features, Ensuring That What You Need is Just A Click Away...
Office Tab - Enable Tabbed Reading and Editing in Microsoft Office (include Excel)
- One second to switch between dozens of open documents!
- Reduce hundreds of mouse clicks for you every day, say goodbye to mouse hand.
- Increases your productivity by 50% when viewing and editing multiple documents.
- Brings Efficient Tabs to Office (include Excel), Just Like Chrome, Edge and Firefox.