Find oldest value where certain conditions exist
Hi,
I'd love some advice on building a formula. My data includes a column for DATE, a column for STATUS (either "Current" or "Archived"), and a column for TYPE ("Red", "Yellow", or "Blue").
I need a formula that returns the oldest date where both STATUS and TYPE meet the selected criteria, i.e. What is the MIN date for all records that are both "Current" and "Red"?
Thanks!
Best Answers
-
Try this one...
=MIN(COLLECT(Date:Date, Status:Status, "Current", Type:Type, "Red"))
-
That works well, thanks. Since my color column was actually a multi select dropdown, I ended up using this:
=MIN(COLLECT(Date:Date, Status:Status, "Current", Type:Type, CONTAINS("Red",@cell)))
Answers
-
Try this one...
=MIN(COLLECT(Date:Date, Status:Status, "Current", Type:Type, "Red"))
-
That works well, thanks. Since my color column was actually a multi select dropdown, I ended up using this:
=MIN(COLLECT(Date:Date, Status:Status, "Current", Type:Type, CONTAINS("Red",@cell)))
-
Happy to help. 👍️
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!