Collect a Value from a Column if Today's Date Falls Between Two Dates

I am attempting what I thought was a simple formula to collect a value from the 'Week" column if today's date falls between a Start Date and an End Date. Here's what I have so far which returns an #INVALID OPERATION result:
=COLLECT(Week:Week, Week:Week, AND(TODAY() >= [Start Date]:[Start Date], TODAY() <= [End Date]:[End Date]))
Here is a screenshot of the column layout:
If the formula was working correctly with today being 03/06/25, the value that I would expect to be returned is '03/10/25'. Is COLLECT the appropriate function to use to achieve this result?
I've tested out the 'Criterion1' portion of the formula and it appears to be correct:
AND(TODAY() >= [Start Date]:[Start Date], TODAY() <= [End Date]:[End Date])
but I must be missing something on the remaining portion.
Best Answer
-
@GMichal The issue is that the COLLECT function can not be used alone and must be used within another function. Adding JOIN should fix it.
=JOIN(COLLECT(Week:Week, [Start Date]:[Start Date], <=TODAY(), [End Date]:[End Date], >=TODAY()))
Isis Taylor
🎓️ Core App and Project Management Certified 🏅
🌟Peer Connect, Mobilizer, and Early Adopter Program
Business Analyst Senior
Answers
-
@GMichal The issue is that the COLLECT function can not be used alone and must be used within another function. Adding JOIN should fix it.
=JOIN(COLLECT(Week:Week, [Start Date]:[Start Date], <=TODAY(), [End Date]:[End Date], >=TODAY()))
Isis Taylor
🎓️ Core App and Project Management Certified 🏅
🌟Peer Connect, Mobilizer, and Early Adopter Program
Business Analyst Senior
-
That was it. Thank you, Isis. Just when I think I am progressing to intermediate knowledge of Smartsheet, I am humbled to know that there is so much more I don't know!
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Customer Resources
- 67.3K Get Help
- 462 Global Discussions
- 156 Industry Talk
- 508 Announcements
- 5.4K Ideas & Feature Requests
- 85 Brandfolder
- 156 Just for fun
- 81 Community Job Board
- 517 Show & Tell
- 35 Member Spotlight
- 3 SmartStories
- 307 Events
- 35 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!