Formula to return boolean looking at multiple date columns
Hi
I need a formula that will look at three date columns and if any of them are date that isn't in the last 5 days, I want a boolean '1' returned.
This is what I've used:
=IF([Project Health RAG Last Updated]@row <TODAY(-5) OR(IF([Current Position Last Updated]@row <TODAY(-5), OR(IF([Next Actions Last Updated]@row <TODAY(-5), 1)))))
But it doesn't like it.
TIA
Cheryl
Best Answer
-
That's because all three columns are blank so the MIN/COLLECT is not pulling anything in to compare to TODAY(-5).
Try this to get rid of the error on rows where all three are blank...
=IFERROR(IF(MIN(COLLECT([Project Health RAG Last Updated]@row:[Next Actions Last Updated]@row, [Project Health RAG Last Updated]@row:[Next Actions Last Updated]@row, @cell <> "")) < TODAY(-5), 1), "")
Answers
-
Try this:
=IF(MIN(COLLECT([Project Health RAG Last Updated]@row:[Next Actions Last Updated]@row, [Project Health RAG Last Updated]@row:[Next Actions Last Updated]@row, @cell <> "")) < TODAY(-5), 1)
-
Thanks for this. I've added it in but, it's coming back as #UNPARESABLE
I've tried just copying and pasting your formula as well as just re-typing but neither way work.
Thanks
Cheryl
-
In the first range you need to replace the 1 after the column name with @row. Then the second range needs to have the second colon as well as the orange bit removed.
-
-
That's because all three columns are blank so the MIN/COLLECT is not pulling anything in to compare to TODAY(-5).
Try this to get rid of the error on rows where all three are blank...
=IFERROR(IF(MIN(COLLECT([Project Health RAG Last Updated]@row:[Next Actions Last Updated]@row, [Project Health RAG Last Updated]@row:[Next Actions Last Updated]@row, @cell <> "")) < TODAY(-5), 1), "")
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Customer Resources
- 64.5K Get Help
- 430 Global Discussions
- 136 Industry Talk
- 465 Announcements
- 4.8K Ideas & Feature Requests
- 143 Brandfolder
- 146 Just for fun
- 63 Community Job Board
- 466 Show & Tell
- 32 Member Spotlight
- 2 SmartStories
- 298 Events
- 36 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!