• Hi All

    Please note that at the Chandoo.org Forums there is Zero Tolerance to Spam

    Post Spam and you Will Be Deleted as a User

    Hui...

  • When starting a new post, to receive a quicker and more targeted answer, Please include a sample file in the initial post.

IF statement using dates

SharH

New Member
Hello !

I am trying to compare 2 dates and which one is more recent. For example A1= 02/17/15 & A2= 02/16/15

so If(A1>A2, recent, old)

This however is not working. How can I modify the formula for it to work?

Thanks!
 
Welcome to the forum SharH!

I'm guessing you need to put quotation marks around the words. Formula would be:
=IF(A1>A2,"recent","old")
 
Welcome to the forum SharH!

I'm guessing you need to put quotation marks around the words. Formula would be:
=IF(A1>A2,"recent","old")

Thanks for the welcome Luke!

Well that was simpler than expected. Thanks for the help. Appreciate it!
 
Back
Top