IF formula to compare a date with current date and return result

calendar_today Asked Sep 7, 2012
thumb_up 10 upvotes
history Updated April 16, 2026

Question posted 2012 · +5 upvotes

I’m looking for a formula which allows me to look at a cell and check if it greater than or equal to today’s date and to return a worded result such as “overdue”. If it is blank to return another word, or nothing.

I have tried copying the result from the source cell (O10) into another cell (Y10) and used an if statement but this seems overly laborious – there must be a way to read the information from the source cell? See below. It also returns overdue when the cell is blank 🙁

=IF(O10>Y10,"OVERDUE","NOT DUE")

Accepted answer +10 upvotes

You can enter the following formula in the cell where you want to see the Overdue or Not due result:

=IF(ISBLANK(O10),"",IF(O10<TODAY(),"Overdue","Not due"))

This formula first tests if the source cell is blank. If it is, then the result cell will be filled with the empty string. If the source is not blank, then the formula tests if the date in the source cell is before the current day. If it is, then the value is set to Overdue, otherwise it is set to Not due.

Top excel Q&A (6)

+10 upvotes ranks this answer #78 out of 167 excel solutions on this site .