Site hosted by Angelfire.com: Build your free website today!

Date Functions

Function Basics Insert Function AutoSum IF Function
PMT Function Date Functions DATEDIF Function Lookup Functions
New 07 Functions Time Functions Text Functions Rounding Functions
Stat Functions Other Functions SUBTOTAL (.xls) SUMPRODUCT (.xls)

Dates in Excel are actually stored as values, making it easy to do calculations with dates when all you are doing is adding or subtracting number of days.  For the other things you might want to do with dates, there are a variety of functions available to help. Here are a few you might find useful.

EDATE*
The EDATE function will add a number of months to a date.
Syntax: EDATE(start date, months)
Start date should be a valid Excel date format.
Months is the number of months to add to the start date.
edate

EOMONTH*
Gives the end of month date for a date plus a given number of months.
Syntax: EOMONTH(start date, months)
Start date should be a valid Excel date format.
Months is the number of months to add to the start date.
eomonth

NETWORKDAYS*
Returns the number of full workdays between two dates.
Syntax: NETWORKDAYS(start date, end date, holidays)
Start and end dates should be valid Excel date format.
Holiday is an optional range of cells containing dates to exclude from work days.
networkdays

WORKDAY*
Returns a date that is the given number of working days before or after a date.
Syntax: WORKDAY(start date, days, holidays)
Start and end dates should be valid Excel date format.
Holiday is an optional range of cells containing dates to exclude from work days.
workday

*These functions are not available in Excel 2003 unless you have the Analysis ToolPak functions available:  Tools > Add-Ins > Analysis ToolPak must be checked.

DAY
Returns the day of a date, a number between 1 and 31.
Syntax: DAY(valid date)
MONTH
Returns the month from a date, a number between 1 and 12.
Syntax: MONTH(valid date)
YEAR
Returns the year of a date, a number between 1900 and 9999.
Syntax: YEAR(valid date)
TODAY
Returns the current date.
Syntax: =TODAY()
datefunctions

Download the sample workbook functionsamples.xls or for 2007 users functionsamples07.xls.

Return to the Top