DATES FORMULA
I'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
-
First we have to define the date range for this week. I've done that by first figuring out which day of the week it is.
Day of Week formula:
=WEEKDAY(TODAY())
Start of Week formula:
=TODAY(-[Day of Week]@row) + 1
End of Week formula:
=TODAY(-[Day of Week]@row) + 7
Finally, we can write a formula to checkmark a box if the Start Date or End Date falls within the Start of Week or End of Week days:
=IF(OR(AND([Start Date]@row >= [Start of Week]@row, [Start Date]@row <= [End of Week]@row), AND([End Date]@row >= [Start of Week]@row, [End Date]@row <= [End of Week]@row)), 1, IF(AND([Start Date]@row < [Start of Week]@row, [End Date]@row > [End of Week]@row), 1))
-
thanks for helping @Mike TV
unfortunately i can not have a column representing the current week, indeed i was asking for a formula which contain the current week, like for example weeknumber(TODAY())
is possible to use this formula you just sent me but using weeknumber(TODAY()) instead pf the current week's column??
-
Unfortunately, I do not know of a way to do this with zero helper columns. Maybe someone else can guide you down that direction. I'm not sure that's possible. You know you can hide your helper columns so they're not displayed, right?
-
no actually i did not know that, but is the formula going to update every week by itself in this way?
because i need a formula able to update the weekly availability of the guys
-
Yes it will update automatically because it is using the TODAY() function a lot.
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Customer Resources
- 65.1K Get Help
- 444 Global Discussions
- 142 Industry Talk
- 472 Announcements
- 5K Ideas & Feature Requests
- 83 Brandfolder
- 150 Just for fun
- 71 Community Job Board
- 489 Show & Tell
- 33 Member Spotlight
- 2 SmartStories
- 301 Events
- 36 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!