Using Index, Match, Min, If, and Today in one formula
Hi All,
I'm new to Smartsheets but not new to Microsoft Excel and I'm struggling with trying to get this to work. Basically I'm trying to grab a text field after evaluating a date field. I got this to work using a basic index match.
=INDEX([Summary]1:[Summary]13, MATCH(TODAY(), [Status Date]1:[Status Date]13, 0))
But this doesn't cut the mustard. I want it to do the equivalent of this:
=INDEX(SummaryColumn,MATCH(MIN(IF(DateColumn>TODAY(),DateColumn)),DateColumn,0))
This way it grabs the closest (future) date to today. But I'm getting a #Invalid Operation or Parsing error when trying to use:
=INDEX([Summary]1:[Summary]13, MATCH(MIN(IF([Status Date]1:[Status Date]13 > TODAY(), [Status Date]1:[Status Date]13)),[Status Date]1:[Status Date]13, 0))
This might not be the correct syntax as I can't even remember how many variations I have used (removing parenthesis, adding commas, etc).
Any help is much appreciated.
Answers
-
You would need a MIN/COLLECT instead of a MIN/IF.
MIN(COLLECT([Status Date]1:[Status Date]13, [Status Date]1:[Status Date]13, @cell> TODAY()))
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Customer Resources
- 64.9K Get Help
- 441 Global Discussions
- 139 Industry Talk
- 471 Announcements
- 4.9K Ideas & Feature Requests
- 129 Brandfolder
- 148 Just for fun
- 68 Community Job Board
- 495 Show & Tell
- 33 Member Spotlight
- 2 SmartStories
- 300 Events
- 36 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!