Conditional formula - if a date is less than 30 days from today
I'm trying to create a conditional formula to flag if less than 30 days from today. I create a separate column to calculate but I am getting an error on the formula.
=IF(AND([Event Date] > TODAY(), [Event Date] <= TODAY() + 30), "Less than 30 days from today", "More than 30 days from today")
Help?
Best Answer
-
Try this:
=IF(ISDATE([Event Date]@row), IF(AND([Event Date]@row > TODAY(), [Event Date]@row <= TODAY(30)), "Less than 30 days from today", "More than 30 days from today"), "")
Answers
-
=IF(AND([Event Date]@row > TODAY(), [Event Date]@row <= TODAY(30)), "Less than 30 days from today", "More than 30 days from today")
-
Thank you so much! H
How do I add if it blank to leave the cell blank??
-
Try this:
=IF(ISDATE([Event Date]@row), IF(AND([Event Date]@row > TODAY(), [Event Date]@row <= TODAY(30)), "Less than 30 days from today", "More than 30 days from today"), "")
-
Thank you!
-
You were so incredably helpful with this. I have an additional ask... if instead of TODAY i wanted it to look at the "Created" date instead, how would I write that? I tried the following but getting an error
=IF(ISDATE([Event Date]@row), IF(AND([Event Date]@row > [Created]@row (), [Event Date]@row <= [Created]@row(30)), "Less than 30 days from today", "More than 30 days from today"), "")
-
Nevermind, I got it :)
=IF(ISDATE([Event Date]@row), IF(AND([Event Date]@row > [Created]@row, [Event Date]@row <= [Created]@row + 30), "Less than 30 days from today", "More than 30 days from today"), "")
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Customer Resources
- 65.5K Get Help
- 448 Global Discussions
- 145 Industry Talk
- 481 Announcements
- 5.1K Ideas & Feature Requests
- 85 Brandfolder
- 152 Just for fun
- 73 Community Job Board
- 492 Show & Tell
- 33 Member Spotlight
- 2 SmartStories
- 304 Events
- 37 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!