Formula
'm trying to create a formula for the below information:
find if in a range of start dates and end dates of a specific job, one or more of these dates correspond to the current week date
if that's happen the guy is not available otherwise is available for this week
thanks
Answers
-
Hi @Filippo01
Assuming this is looking across sheets, the way I would do this is to use a COUNTIFS Function to count how many rows in your first sheet have a row that passes over your current date:
COUNTIFS({Start Date Range}, <=[Current Week Date]@row, {Finish Dates}, >=[Current Week Date]@row)
Then if the COUNT returned is greater than 0 (meaning at least one row has that date associated with it), you can use an IF statement to return text or a number, etc.
=IF(COUNTIFS({Start Date Range}, <=[Current Week Date]@row, {Finish Dates}, >=[Current Week Date]@row) > 0, "Not Available", "Available")
Let me know if this makes sense and will work for you!
Cheers,
Genevieve
Join us at Smartsheet ENGAGE 2024 🎉
October 8 - 10, Seattle, WA | Register now
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Smartsheet Customer Resources
- 62.3K Get Help
- 364 Global Discussions
- 199 Industry Talk
- 428 Announcements
- 4.4K Ideas & Feature Requests
- 136 Brandfolder
- 127 Just for fun
- 128 Community Job Board
- 444 Show & Tell
- 28 Member Spotlight
- 1 SmartStories
- 283 Events
- 35 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!