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. Then type a formula like one of the following. : If the Start_date is greater than the End_date, the result will be #NUM!. In this example, the start date is in cell D9, and the end date is in E9. More @Wikipedia
Hover over any link to get a description of the article. Please note that search keywords are sometimes hidden within the full article and don't appear in the description or title.