formulating dates excluding weekends
I have 3 columns with different dates. My goal is to enter 1 date, and have the other 2 dates formulated based off the 1st date. I created a formula to satisfy this need, but I am ending up with some dates falling on weekends, which I cannot have. Is there a way to correct this issue without enabling dependencies and predecessors?
Answers
-
What is your current formula? You may want to try (if you aren't already) a NETWORKDAY or a NETWORKDAYS function.
-
Hi Paul
i want to generate a list of dates excluding
do you know how i can do this please?
-
Here is a bit of a Frankenstein workaround
Let's start with a basic Equation such as
=[Start Date]@row + [Days Duration]@row
- Now let's introduce the weekday function which will tell me if it is a Sunday (1) or a Saturday (7).
- Lets then create a nested if so if it is a Sunday then we add one more day pushing it to the Monday and if it is a Saturday then we add two more days pushing it to the Monday
=IF( WEEKDAY([Start Date]@row + [Days Duration]@row)=1, [Start Date]@row + [Days Duration]@row+1, IF( WEEKDAY([Start Date]@row + [Days Duration]@row)=7, [Start Date]@row + [Days Duration]@row+2, [Start Date]@row + [Days Duration]@row))
Which would result in this
Let me know if that helps
Brent C. Wilson, P.Eng, PMP, Prince2
Facilityy Professional Services Inc.
http://www.facilityy.com
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!