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
- 65K Get Help
- 441 Global Discussions
- 140 Industry Talk
- 472 Announcements
- 4.9K Ideas & Feature Requests
- 129 Brandfolder
- 148 Just for fun
- 69 Community Job Board
- 497 Show & Tell
- 33 Member Spotlight
- 2 SmartStories
- 300 Events
- 36 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!