Excel date functions with formula examples
Excel date functions with formula examples
Microsoft Excel provides a ton of functions to work with dates and times. Each function
performs a simple operation and by combining several functions within one formula you can
solve more complex and challenging tasks.
In the previous 12 parts of our Excel dates tutorial, we have studied the main Excel date
functions in detail. In this final part, we are going to summarize the gained knowledge and
provide links to a variety the formula examples to help you find the function best suited for
calculating your dates.
DATE function
Calculate workdays:
When it comes to working with dates in Excel, DATE is the most essential function to
understand. The point is that other Excel date functions not always can recognize dates
entered in the text format. So, when performing date calculations in Excel, you'd better
supply dates using the DATE function to ensure the correct results.
=DATE(YEAR(TODAY()), MONTH(TODAY()), 1) - returns the first day of the current year and
month.
At first sight, the Excel DATE function looks very simple, however, it does have a number of
specificities pointed out in the Excel DATE tutorial.
Below you will find a few more examples where the Excel DATE function is part of bigger
formulas:
TODAY is arguably one of the easiest Excel functions to use because it has no arguments at
all. Whenever you need to get today's date in Excel, enter the following formula is a cell:
=TODAY()
Apart from this obvious use, the Excel TODAY function can be part of more complex
formulas and calculations based on today's date. For example, to add 7 days to the current
date, enter the following formula in a cell:
=TODAY()+7
To add 30 weekdays to today's date excluding weekend days, use this one:
=WORKDAY(TODAY(), 30)
Note. The date returned by the TODAY function in Excel updates automatically when your
worksheet is recalculated to reflect the current date.
For more formula examples demonstrating the use of the TODAY function in Excel, please
check out the following tutorials:
=NOW()
Note. As well as TODAY, Excel NOW is a volatile function that refreshes the returned value
every time the worksheet is recalculated. Please note, the cell with the NOW() formula does
not auto update in real-time, only when the workbook is reopened or the worksheet is
recalculated. To force the spreadsheet to recalculate, and consequently get your NOW
formula to update its value, press either Shift+F9 to recalculate only the active worksheet or
F9 to recalculate all open workbooks.
For more details, please see How to use NOW function in Excel.
=DATEVALUE("20-may-2015")
=DATEVALUE("5/20/2015")
And the following examples demonstrate how the DATEVALUE function can help with
solving real-life tasks: