Return Text based on a date

04/08/19 Edited 12/09/19

I am trying to write a formula that will return the text "Current" or Expired in the INS status Column based on whether the dates in the GL, AUTO and WC dates are past today's date.  Hitting a wall.  Attached snip of the sheet

Thank you in advance for any help!

Capture.PNG

Comments

  • Nic LarsenNic Larsen ✭✭✭✭✭
    edited 04/08/19

    Try this... I wasn't sure if there was different criteria for a Current vs a Expired result but maybe you can get what you need from format:

    =IF(AND([GL EXP Date]@row < TODAY(), [AL EXP Date]@row < TODAY(), [WC EXP Date]@row < TODAY()), "Expired", "Current")

  • THANK YOU!!!  That's perfect and works like a charm!

     

  • Just ran in to one instance where it did not work.  2 of the dates (GL and AUTO) are in June, but the WC was in February and it's returning a Current instead of the Expired.  I'm playing with it but if you know of the top of your head!  Thanks!

  • Nic LarsenNic Larsen ✭✭✭✭✭

    Hmm, I double checked mine and it seems to be working. 

    -If all three are in the Future = "Current"

    -If one or more of them are Less than Today = "Expired"

    Is that the logic you are looking for? If not, if you give a bit more detail I can revise the formula. 

     

  • Paul NewcomePaul Newcome ✭✭✭✭✭

    It seems like replacing the AND with OR should do the trick as it sounds like you are looking to flag as "Expired" if any of the dates are in the past.

    thinkspi.com

Sign In or Register to comment.