Formula in excluding weekends when adding number of dates in a formula cell.
Hi,
I need help what is the formula for me to be able to create automatically a due date in a cell, based on the automatically created date column but I don't want to include weekends in the count. I wanted to set an automatic due date based on the priority selected in a row.
For example: Date created is October 21(Thursday), then if the assigned priority is Medium, it should add 3 business days on the due date column. Due date should be October 26(Tuesday) instead October 24 which is Sunday. I want to exclude weekends in the count.
Here is my current formula:
=IF(Priority@row = "Business Stoppage", [Date Created]@row + 1, IF(Priority@row = "Medium", [Date Created]@row + 3, IF(Priority@row = "Normal", [Date Created]@row + 5, IF(Priority@row = "High", [Date Created]@row + 2))))
Thanks.
Answers
-
Hi @Choy
You have the hard part of the Nested IF statement completed! Now we can use the WORKDAY Function to add a number of working days to the date instead of just + 1, etc.
For example, instead of:
[Date Created]@row + 1
We can write:
WORKDAY([Date Created]@row, 1)
Try this:
=IF(Priority@row = "Business Stoppage", WORKDAY([Date Created]@row, 1), IF(Priority@row = "Medium", WORKDAY([Date Created]@row, 3), IF(Priority@row = "Normal", WORKDAY([Date Created]@row, 5), IF(Priority@row = "High", WORKDAY([Date Created]@row, 2)))))
Cheers,
Genevieve
Need more information? 👀 | 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
- 67.1K Get Help
- 450 Global Discussions
- 155 Industry Talk
- 505 Announcements
- 5.4K Ideas & Feature Requests
- 85 Brandfolder
- 156 Just for fun
- 80 Community Job Board
- 514 Show & Tell
- 34 Member Spotlight
- 2 SmartStories
- 308 Events
- 36 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!