In this tutorial, you will learn how to calculate Dates in Excel.
The DAYS, DATEDIF, and NETWORKDAYS functions in Excel can be used to count the number of days that pass between two dates. While NETWORKDAYS doesn’t include Saturday and Sunday, DAYS and DATEDIF count all days.
Once ready, we’ll get started by utilizing real-world examples to show you how to calculate Dates in Excel.
Table of Contents
Calculate Dates
Before we begin we will need a group of data to calculate Dates in Excel.
Method 1 : DAYS Function
First, you need to have a clean and tidy group of data to work with.
To count the days between two dates, you can use the DAYS function. You can simply insert this formula =DAYS(A2,B2).
Once you press ‘Enter’, the formula will return the number of days.
Method 2 : DATEIF Function
To count the days between two dates, you can use the DATEIF function. THE DATEIF function is similar to DAYS function. The difference is that with the DATEIF function, you can specify if you want to calculate the days, months, or years between two dates. You can simply insert this formula =DATEDIF(A3,B3,”D”).
Once you press ‘Enter’, the formula will return the number of days.
Method 3 : NETWORKDAYS Function
The NETWORKDAYS function is also similar to the DAYS and DATEIF functions. The only difference is that it will exclude the Saturdays and Sundays that are in between the dates, and only return the number of days that are working days. You can simply insert this formula =NETWORKDAYS(A4,B4).
Once you press ‘Enter’, the formula will return the number of days.