true

Learn MS Office Software Training from the Best Tutors

• Affordable fees
• 1-1 or Group class
• Flexible Timings
• Verified Tutors

Search in

# Datedif() Function

Saburudeen MA
08/06/2017 0 0

## Purpose:

This function calculates difference between two dates. it can show the result in days, months and years.

## Syntax:

=datedif(start_date,end_date,"unit")

 start_date This is earliest of the two dates end_date This is the most recent of the two dates Unit The type of information that you want returned

 Unit Returns "Y" The number of complete years in the period. "M" The number of complete months in the period. "D" The number of days in the period. "MD" The difference between the days in start_date and end_date. The months and years of the dates are ignored. "YM" The difference between the months in start_date and end_date. The days and years of the dates are ignored "YD" The difference between the days of start_date and end_date. The years of the dates are ignored.

## Example

 Start_date End_date Unit Result Notes 21-Aug-15 6-Jul-17 Y 1 Difference in complete years 21-Aug-15 6-Jul-17 M 22 Difference in complete months 21-Aug-15 6-Jul-17 D 685 Difference in days 21-Aug-15 6-Jul-17 MD 15 Difference in days, ignoring months and years 21-Aug-15 6-Jul-17 YM 10 Difference in months, ignoring days and years 21-Aug-15 6-Jul-17 YD 320 Difference in days, ignoring years

## Remarks:

• Dates are stored as sequential serial numbers so they can be used in calculations. By default, December 31, 1899 is serial number 1, and January 1, 2008 is serial number 39448 because it is 39,448 days after January 1, 1900.
• The DATEDIF function is useful in formulas where you need to calculate an age.
0 Dislike

## Other Lessons for You

Learning Pivot Table Part-1
You all must have watched movie based on War. One thing you all might have noticed, in most of the movies, armies fought with their enemies hiding inside the bunkers, an army fighting war in open obviously...

VBA Function - INSTR
INSTR works similar to FIND function in Excel. INSTR search for specific text in a given text and returns the position number of what you are searching for. Syntax: InStr( , string, searchingfor, ) Sub...

Importance of dash board in Business/org
A business intelligence (BI) dashboard is a data visualization tool that consolidates and displays the current status of metrics and key performance indicators (KPIs) for an organization, department or...

MS Excel Tips
If you want to do a save as on MS Excel Workbook, use the shortcut key F12 and then select the location and click save
R

Cell Properties
G

Gagan G.

### Looking for MS Office Software Training ?

Learn from Best Tutors on UrbanPro.

Are you a Tutor or Training Institute?

Join UrbanPro Today to find students near you
X

### Looking for MS Office Software Training Classes?

The best tutors for MS Office Software Training Classes are on UrbanPro

• Select the best Tutor
• Book & Attend a Free Demo
• Pay and start Learning

### Learn MS Office Software Training with the Best Tutors

The best Tutors for MS Office Software Training Classes are on UrbanPro