Start networking and exchanging professional insights

Register now or log in to join your professional community.

Follow

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

user-image
Question added by Hassan Mohsen Ibrahim , advisor , ministry of tourism
Date Posted: 2018/04/07
Firas Shahadi
by Firas Shahadi , Training And Development Director , Muhayal Assir National Hospital

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
by ALI MURTAZA , Senior Human Resources Executive , SIDDIQSONS LIMITED

=DATEDIF(STARTDDATE,ENDDATE,"Y")

Firdaus Ahmed Siddiqui
by 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
by 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
by 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

Do you need help in adding the right keywords to your CV? Let our CV writing experts help you.