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
Need more help? 👀 | Help and Learning Center
こんにちは (Konnichiwa), Hallo, Hola, Bonjour, Olá, Ciao! 👋 | Global Discussions
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!