Skip to content
xlsoffice. All Rights Reserved
  • Home
  • Excel For Beginners
  • Excel Intermediate
  • Advanced Excel For Experts

Lookup and Reference Examples

  • Get nth match with INDEX / MATCH in Excel
  • How to get address of last cell in range in Excel
  • MATCH function: Description, Usage, Syntax, Examples and Explanation
  • To count total rows in a range in Excel
  • Convert text string to valid reference in Excel using Indirect function

Data Analysis Examples

  • Error Bars in Excel
  • How to Sort by Color in Excel
  • Everything about Charts in Excel
  • Subtotal function in Excel
  • Conditional Formatting New Rule with Formulas in Excel

Data Validation Examples

  • How To Create Drop-down List in Excel
  • Excel Data validation allow uppercase only
  • Excel Data validation with conditional list
  • Prevent invalid data entering in specific cells
  • Excel Data validation don’t exceed total

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.

Worked Example:   How to calculate number of Days until Birthday

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

Worked Example:   Get days, months, and years between dates in Excel

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

Worked Example:   How to get number of days, weeks, months or years between two dates in Excel

Post navigation

Previous Post:

Get days before a date in Excel

Next Post:

Get first day of month in Excel

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
  • How to pad text to match equal length in Excel
  • Join Text Strings Using Concatenate or ‘& Operator’ in Excel
  • Split dimensions into two parts in Excel Worksheet
  • How to extract multiple lines from a cell in Excel
  • Remove file extension from filename in Excel
  • DAYS function: Description, Usage, Syntax, Examples and Explanation
  • Calculate retirement date in Excel
  • EOMONTH function: Description, Usage, Syntax, Examples and Explanation
  • NETWORKDAYS function: Description, Usage, Syntax, Examples and Explanation
  • Custom weekday abbreviation in Excel
  • YIELD function: Description, Usage, Syntax, Examples and Explanation
  • TBILLPRICE function: Description, Usage, Syntax, Examples and Explanation
  • How to set check register balance in Excel
  • CUMPRINC function: Description, Usage, Syntax, Examples and Explanation
  • Tax rate calculation with fixed base in Excel
Acronyms, Abbreviations, Initialism & What They Stand For
© 2022 xlsoffice . All Right Reserved. | Teal Smiles