UrbanPro
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
Follow 0

Please Enter a comment

Submit

Other Lessons for You

INITIAL STEP FOR EXCEL
IT BECOME ITSELF LOOK LIKE A TABLE, THERE HAVE MANY CELL IN ROWWISE OR COLUMNWISE. FIRST YOU THOUGHT THAT WHAT TYPE OF DATA IS AND HOW YOU DESIGN.

Data Consolidation In Excel
Before you begin consolidating the data, make sure that there is consistency across the data sources. This means that the data is arranged as follows: Each range of data is on a separate worksheet. Each...

Workbook Security In Excel
i. Workbook Security: We can apply security to the workbook by the concept of protection available in the Review Tab of ribbon. MS Excel's protection-related features fall into three categories. Worksheet...

Create A Time Sheet In Ms Excel
The following tutorial is about creating a Time-Sheet using MS Excel. Steps: Arranging data, Formulas to analyze data points.
P

Pranav T.

0 0
0

HERE TODAY WE WILL USE THE SUMIF FUNCTION
A B C 1 PRODUCT NAME TOTAL AMOUNT 2 WASHING MACHINE 3616 3 MI PHONE 4978 4 SAMSUNG MOBILE 3825 5 NOKIA PHONE 3902 6 T.V 3759 6 L.G REFRIGERATOR 3693 7 BOTTLE 4191 ...

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

This website uses cookies

We use cookies to improve user experience. Choose what cookies you allow us to use. You can read more about our Cookie Policy in our Privacy Policy

Accept All
Decline All

UrbanPro.com is India's largest network of most trusted tutors and institutes. Over 55 lakh students rely on UrbanPro.com, to fulfill their learning requirements across 1,000+ categories. Using UrbanPro.com, parents, and students can compare multiple Tutors and Institutes and choose the one that best suits their requirements. More than 7.5 lakh verified Tutors and Institutes are helping millions of students every day and growing their tutoring business on UrbanPro.com. Whether you are looking for a tutor to learn mathematics, a German language trainer to brush up your German language skills or an institute to upgrade your IT skills, we have got the best selection of Tutors and Training Institutes for you. Read more