At the time of this writing, the date is May 20, 2023.

In Excel’s date system, this is the number 45066.

The due date of March 30, 2023, is the number 45015.

Excel formula: Nested IF function example

We do this by checking the Paid column for an “x” as seen below.

At this point, we have not provided anything for the value if false.

This means the IF function will return FALSE when F5 is empty.

Excel formula: If this AND that

It will look like an empty cell.

IF overdue

The remaining task is to check the age of the invoice.

Notice the value 31 is a number and, therefore, not enclosed in quotes.

Excel formula: If cell is this OR that

This number can be customized as desired.

The final step in the problem is to combine the two IF formulas above.

Else if E5 is less than 31, return “OK”, else return “Overdue”.

Excel formula: If NOT this or that

More than one condition can be tested by nesting IF functions.

The TODAY function takes no arguments.

you’re able to format the value returned by TODAY with a datenumber format.

Excel formula: Subtotal invoices by age

If you need current date and time, use…

The IF function

Excel IF function

Excel TODAY function

Article image