Dates are important parts of many spreadsheets. They can be used to simply add the current date to a spreadsheet or they can be used to calculate the number of days between two dates.
DATEDIF
The DATEDIF function can be used to calculate the number of days between two dates in versions of Excel from 97 to 2007.
To use the function you must type it manually into a cell on the worksheet rather than using the dialog box method available for other functions.
The syntax for the DATEDIF function is:
= DATEDIF ( start_date , end_date , unit )
The function has three arguments that need to be entered as part of the function:
* start_date - the first or starting date.
* end_date - the second or last date.
* unit - tells the function to find the number of days ("D"), months ("M"), or years ("Y") between the two dates.
NETWORKDAYS
The NETWORKDAYS function, one of Excel's Date and Time functions, can be used to count the number of working days between two dates. The function automatically removes weekend days from the total. Specific holidays can also be omitted.
The syntax for the NETWORKDAYS function is:
= NETWORKDAYS ( Start_date , End_date , Holidays )
Start_date - the start date of the chosen time period.
End_date - the end date of the chosen time period.
Holidays - can be used to exclude one or more dates from the total number of working days (optional).
DAYS360
The DAYS360 function, one of Excel's Date and Time functions, can be used in accounting systems to calculate the number of days between two dates based on a 360-day year (twelve 30-day months).
The syntax for the DAYS360 function is:
= DAYS360 ( Start_date , End_date , Method )
Start_date - the start date of the chosen time period.
End_date - the end date of the chosen time period.
Method - A Boolean value (TRUE or FALSE).
* If TRUE -- the function uses the U.S. method of calculating start and end dates.
* If FALSE -- the function uses the European method of calculating start and end dates.
Note: The Method can be omitted.