How do I return the oldest date from one column based on criteria from another?
I have been trying to use the min(collect) formula to return the oldest date if another column has Yes in it.
=MIN(COLLECT({New Daily Reports to Process Range 1}, {New Daily Reports to Process Range 1}, {New Daily Reports to Process Range 4} = "Yes"), TODAY())
I am referencing below and if there is a "yes" in the column I want it to return the oldest date that is yes. If there isn't a yes then return today. Any suggestion? I thought I had it figured out until value1 had a "yes" and it still turns today.
Answers
-
I think I figured it out.
=MIN(COLLECT({New Daily Reports to Process Range 26}, {New Daily Reports to Process Range 2}, CONTAINS("Yes", @cell)), TODAY())
First range is the Date column, second range is the column that has the yes that I am looking for.
-
Hi @blmccue,
Assuming range 1 refers to the date column and range 4 as per your picture:
=MIN(COLLECT({New Daily Reports to Process Range 1}, {New Daily Reports to Process Range 4}, "Yes"), TODAY())
Will give you the oldest date where CDL Serious Offenses is "Yes".
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Customer Resources
- 64.8K Get Help
- 434 Global Discussions
- 138 Industry Talk
- 470 Announcements
- 4.9K Ideas & Feature Requests
- 129 Brandfolder
- 148 Just for fun
- 65 Community Job Board
- 486 Show & Tell
- 33 Member Spotlight
- 2 SmartStories
- 300 Events
- 36 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!