checkbox formula for last 30 days
Hi,
I have a date column which lists down all the dates in the year and a checkbox formula. In the checkbox column, I would like to insert a formula that would perform the following function for me:
If the date in the date column (row@cell) is in the last 30 days then checkbox.
Best Answer
-
@95766 Try something like this:
=IF(AND([Date Column]@row >= TODAY(), [Date Column]@row <= TODAY(30)), 1)
Answers
-
Try something along the lines of...
=IF(AND([Date Column]@row >= TODAY(-30), [Date Column]@row <= TODAY()), 1)
This is assuming there will be dates that are also in the future.
If ALL dates are in the past and you want to just grab the past 30 days, you could remove the AND and the second argument.
=IF([Date Column]@row >= TODAY(-30), 1)
-
@Paul Newcome That worked like a charm. Thank you as always!
-
Happy to help. 👍️
-
I need the opposite.... Check the box IF the date is WITHIN the next 30 days. I can't seem to reverse engineer the formula.
-
@95766 Try something like this:
=IF(AND([Date Column]@row >= TODAY(), [Date Column]@row <= TODAY(30)), 1)
-
@Paul Newcome Thank you!!!!!
-
Happy to help. 👍️
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- 10.8K Get Help
- 65 Global Discussions
- 69 Industry Talk
- 385 Announcements
- 3.5K Ideas & Feature Requests
- 55 Brandfolder
- 125 Just for fun
- 50 Community Job Board
- 464 Show & Tell
- 40 Member Spotlight
- 44 Power Your Process
- 28 Sponsor X
- 234 Events
- 7.3K Forum Archives
Check out the Formula Handbook template!