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
- 67.8K Get Help
- 474 Global Discussions
- 205 Use Cases
- 517 Announcements
- 5.5K Ideas & Feature Requests
- 87 Brandfolder
- 157 Just for fun
- 83 Community Job Board
- 521 Show & Tell
- 36 Member Spotlight
- 3 SmartStories
- 309 Events
- 37 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!