Skip to content
Free Excel Tutorials
  • Home
  • Excel For Beginners
  • Excel Intermediate
  • Advanced Excel For Experts

Data Analysis

  • How to calculate average last N values in a table in Excel
  • How to calculate current stock or inventory in Excel
  • How to create a Histogram in Excel
  • Managing Conditional Formatting Rules in Excel
  • How to count table columns in Excel

References

  • How to reference named range different sheet in Excel
  • How to get relative row numbers in a range in Excel
  • Offset in Excel
  • Two-column Lookup in Excel
  • How to calculate two-way lookup VLOOKUP in Excel Table

Data Validations

  • Data validation must not exist in list
  • How To Create Drop-down List in Excel
  • Excel Data validation require unique number
  • Excel Data validation must not contain
  • Excel Data validation only dates between

Get days between dates ignoring years in Excel

by

To calculate days between two dates, ignoring year values, use the DATEDIF function.

Formula

=DATEDIF(start_date,end_date,"yd")

In the example shown, the formula in D6 is:

=DATEDIF(B6,C6,"yd")

Explanation

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.

Post navigation

Previous Post:

DECIMAL function: Description, Usage, Syntax, Examples and Explanation

Next Post:

AVERAGE function: Description, Usage, Syntax, Examples and Explanation

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Learn Basic Excel

Ribbon
Workbook
Worksheets
Format Cells
Find & Select
Sort & Filter
Templates
Print
Share
Protect
Keyboard Shortcuts

Categories

  • Charts
  • Data Analysis
  • Data Validation
  • Excel Functions
    • Cube Functions
    • Database Functions
    • Date and Time Functions
    • Engineering Functions
    • Financial Functions
    • Information Functions
    • Logical Functions
    • Lookup and Reference Functions
    • Math and Trig Functions
    • Statistical Functions
    • Text Functions
    • Web Functions
  • Excel VBA
  • Excel Video Tutorials
  • Formatting
  • Grouping
  • Others

Logical Functions

  • Nested IF function example in Excel
  • IF with wildcards in Excel
  • Extract multiple matches into separate rows in Excel
  • IFERROR function: Description, Usage, Syntax, Examples and Explanation
  • OR function: Description, Usage, Syntax, Examples and Explanation

Date Time

  • Get day name from date in Excel
  • Sum through n months in Excel
  • Add months to date in Excel
  • How to show last updated date stamp in Excel
  • Get days before a date in Excel

Grouping

  • How to randomly assign data to groups in Excel
  • Group numbers at uneven intervals in Excel
  • Group times into 3 hour buckets in Excel
  • Calculate conditional mode with criteria in Excel
  • Categorize text with keywords in Excel

General

  • Excel Ribbon Quick Overview For Beginners
  • Select, Insert, Rename, Move, Delete Worksheets in Excel
  • How to calculate total from percentage in Excel
  • 3D SUMIF for multiple worksheets in Excel
  • How to generate random date between two dates in Excel
© 2026 xlsoffice . All Right Reserved. | Teal Smiles | Abbreviations And Their Meaning