Returning a value with Dates

Occasional Visitor

Please could you advise how I use the If function or something similar to return a value relating to dates? 


So the formula is if a date is the same or later than another date then a cell shows a value of "-", otherwise (i.e. if false) it shows a value of "DUE!!".


When I used the "If" function and ">", this did not return the correct value - for example, 28.2.19>4.3.19 does not yield a "DUE!!" value. 

1 Reply

Hi Philip,


If dd.mm.yy is your system date format and you use date constant, not reference on the cell with the date, when ("4.3.19"+0)  or --"4.3.19" could work (it converts text with the date representation into number). In general better to use the function, e.g. DATE().


If you use reference on the cell be sure you have real dates, not texts.  If in A1 is 28.2.19 you may check if =A1+1 returns March 01.

Related Conversations
Tabs and Dark Mode
cjc2112 in Discussions on
46 Replies
Extentions Synchronization
Deleted in Discussions on
3 Replies
Stable version of Edge insider browser
HotCakeX in Discussions on
35 Replies
flashing a white screen while open new tab
Deleted in Discussions on
14 Replies
How to Prevent Teams from Auto-Launch
chenrylee in Microsoft Teams on
29 Replies
Security Community Webinars
Valon_Kolica in Security, Privacy & Compliance on
13 Replies