Communiquez avec les autres et partagez vos connaissances professionnelles

Inscrivez-vous ou connectez-vous pour rejoindre votre communauté professionnelle.

Suivre

What is the function used to calculate number of days , months or years between two given dates ?

user-image
Question ajoutée par Hassan Mohsen Ibrahim , advisor , ministry of tourism
Date de publication: 2018/04/07
Firas Shahadi
par Firas Shahadi , Human Resources Director , SAUDI UNION

if you want to get the days:

you just simply subtract the newest date from the older date.

 

if you want the difference in months after days:

you can use the DateDif(StartDate, EndDate,"md")

 

done.

ALI MURTAZA
par ALI MURTAZA , Deputy Manager Analytics (Power BI, Analytics, Reporting) , Chase Up

=DATEDIF(STARTDDATE,ENDDATE,"Y")

Firdaus Ahmed Siddiqui
par Firdaus Ahmed Siddiqui , Senior Analyzer Technician , EQUATE Petrochemical Plan

Use the DATEDIF function when you want to calculate the difference between two dates. First put a start date in a cell, and an end date in another. 

Daulet Manapov
par Daulet Manapov , Business Intelligence Analyst , Guidant Financial Group Inc

DATEDIF function will calculate difference between two dates and depending on which unit you choose at the end of the formula (years, months, days) it will calculate the one you specified. 

Leah Galvez
par Leah Galvez , Facilities Administrator , Qatar Academy Sidra thru Al Mukhtar Contracting and Trading Co.

The function used to calculate number of days, months or years between two given dates is DATEDIF