If date is less than, greater than, or blank formula.

I am creating a formula that will display Completed, Upcoming, or Prerecorded based on the dates in Column 2021 Session Dates. When I use the formula below, any row with no date comes back as Completed even though I have added the IF ISBLANK formula to output Prerecorded. I don't get an error in the field, just not getting the desired output. Any assistance is appreciated.
=IF(TODAY(0) > [2021 Session Date]@row, "Completed", IF(TODAY(0) < [2021 Session Date]@row, "Upcoming", IF(ISBLANK([2021 Session Date]@row), "Prerecorded")))
Best Answer
-
Hi @Cristina Ayala
Hope you are fine, please try the following formula and convert it to column format formula:
=IFERROR(IF(ISBLANK([2021 Session Date]@row), "Prerecorded", IF(AND(ISDATE([2021 Session Date]@row), TODAY() > [2021 Session Date]@row), "Completed", IF(AND(ISDATE([2021 Session Date]@row), TODAY() < [2021 Session Date]@row), "Upcoming"))), "")
the following screenshot shows the result:
bassam.khalil2009@gmail.com
☑️ Are you satisfied with my answer to your question? Please help the Community by marking it as an ( Accepted Answer), and I will be grateful for your "Vote Up" or "Insightful"
Answers
-
Hi @Cristina Ayala
Hope you are fine, please try the following formula and convert it to column format formula:
=IFERROR(IF(ISBLANK([2021 Session Date]@row), "Prerecorded", IF(AND(ISDATE([2021 Session Date]@row), TODAY() > [2021 Session Date]@row), "Completed", IF(AND(ISDATE([2021 Session Date]@row), TODAY() < [2021 Session Date]@row), "Upcoming"))), "")
the following screenshot shows the result:
bassam.khalil2009@gmail.com
☑️ Are you satisfied with my answer to your question? Please help the Community by marking it as an ( Accepted Answer), and I will be grateful for your "Vote Up" or "Insightful"
-
This worked! Thank you so much, Bassam! Seems like I need to brush up on IFERROR function.
-
Excellent, Have a nice weekend 😀
bassam.khalil2009@gmail.com
☑️ Are you satisfied with my answer to your question? Please help the Community by marking it as an ( Accepted Answer), and I will be grateful for your "Vote Up" or "Insightful"
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Customer Resources
- 66.2K Get Help
- 431 Global Discussions
- 152 Industry Talk
- 490 Announcements
- 5.2K Ideas & Feature Requests
- 85 Brandfolder
- 155 Just for fun
- 74 Community Job Board
- 501 Show & Tell
- 33 Member Spotlight
- 2 SmartStories
- 306 Events
- 36 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!