Calculate Working days with Multiple If Conditions
I have a scenario to calculate due dates with the following logic.
LOW - Greater than - 7 days
MEDIUM - Greater than - 4 days
HIGH - Greater than - 2 days
CRITICAL - Greater than - 1 day
I have written the formula like this
example - Low 7 days -
Request Created On - 04/01/2024 will achieve the output date as 04/07/2024. But I need to calculate the working days or weekdays.
=IF(Severity@row = "Low", [Request Created On]@row + 7, IF(Severity@row = "Medium", [Request Created On]@row + 4, IF(Severity@row = "High", [Request Created On]@row + 2, IF(Severity@row = "Critical", [Request Created On]@row + 1))))
Best Answers
-
The WORKDAY function calculates workdays.
=IF(Severity@row = "Low", WORKDAY([Request Created On]@row, 7), IF(Severity@row = "Medium", WORKDAY([Request Created On]@row, 4), IF(Severity@row = "High", WORKDAY([Request Created On]@row, 2), IF(Severity@row = "Critical", WORKDAY([Request Created On]@row, 1)))))
Will this work for you?
Kelly
-
Yes it worked. Thank you for the help
Answers
-
The WORKDAY function calculates workdays.
=IF(Severity@row = "Low", WORKDAY([Request Created On]@row, 7), IF(Severity@row = "Medium", WORKDAY([Request Created On]@row, 4), IF(Severity@row = "High", WORKDAY([Request Created On]@row, 2), IF(Severity@row = "Critical", WORKDAY([Request Created On]@row, 1)))))
Will this work for you?
Kelly
-
Yes it worked. Thank you for the help
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!