Quick, clean, and to the point

Get days between dates ignoring years

Excel formula: Get days between dates ignoring years
Generic formula 

To calculate days between two dates, ignoring year values, use the DATEDIF function. In the example shown, the formula in D6 is:


The DATEDIF function can handle a variety of "date difference" calculations to calculate the difference between two dates in years, months, and days. DATEDIF takes 3 arguments: start date, end_date, and "unit", which controls which result is returned.

In this case, we want days ignoring years so we supply "yd" for unit. (For the full list of options, see the DATEDIF page).

Once configured, the function is fully automatic and returns a result in the unit requested.

Dave Bruns

Excel Formula Training

Formulas are the key to getting things done in Excel. In this accelerated training, you'll learn how to use formulas to manipulate text, work with dates and times, lookup values with VLOOKUP and INDEX & MATCH, count and sum with criteria, dynamically rank values, and create dynamic ranges. You'll also learn how to troubleshoot, trace errors, and fix problems. Instant access. See details here.

Download 100+ Important Excel Functions

Get over 100 Excel Functions you should know in one handy PDF.