Skip to content

Using Excel’s TODAY Function to Return the Current Date

    The TODAY function returns the current date – but will update itself when you open your worksheet on another day.  This is great news if you need a formula to work out whether an invoice is overdue or if you need to know the number of days left until a deadline.

    Watch the video, read the tutorial and download the featured file

    In our example we are working on an invoice spreadsheet where we need to first of all calculate the number of days until an invoice is due.

    1 Using the Today Function

    We can use the TODAY function to perform this calculation; =C2-today()

    Initially Excel returns the answer as a date.

    We need to format the cell to show a number and the copy the formula down the rest of the column.

    4 How it looks

    We could also use the TODAY function to conditionally format the due dates that are overdue.  To do this we need to select the dates and then on the Ribbon’s Home tab, the Styles group click on the Conditional Formatting menu.

    From the menu select Highlight Cells Rules and then Less Than…

    5 apply condtional formatting

    In the Less Than dialog enter =today() as your criteria and then click on OK.

    6 Using the Today Function in condtional formatting

    Here’s what you dates will look like.  The great thing about using the TODAY function is that conditional formatting is always going to be based on the current date – so it will always format the dates in the past.

    7 How the formatting looks

    Finally we could use the TODAY function in an IF statement to tell us whether the invoice is overdue or not.  The formula would be =IF(C2<TODAY(),”OVERDUE”, “OK”)

    8 Using an IF statement with the Today function

    Here’s how our spreadsheet now looks…

    9 Our IF statement outputs

    Leave a Reply