Formula help with multiple IF statements using DATE and WORKDAY
I am trying to calculate the date in a [Due Date] column from the [Date Submitted] based on the [Priority Level]. This is what I have and it is only calculating for the [Priority Level} = Routine. The other cells are blank.
=IF([Priority Level]@row = "Routine", WORKDAY([Date Submitted]@row, 5, IF([Priority Level]@row = "Urgent", DATE([Date Submitted]@row + 2, IF([Priority Level]@row = "Critical", DATE([Date Submitted]@row + 1))))))
Answers
-
Hi mgilkessmith
I hope you are doing well,
You can try this formula - =IF([Priority Level]@row = "Routine", WORKDAY([Date Submitted]@row, 5), IF([Priority Level]@row = "Urgent", WORKDAY([Date Submitted]@row, 2), IF([Priority Level]@row = "Critical", WORKDAY([Date Submitted]@row, 1))))
I hope this works for you, please let me know if you need any other help.
Have a Good Day.
Thanks,
Kaveri Vipat
Senior Associate - Smartsheet Development, Ignatiuz Software
2023 Core Product Certified
Did this answer help you? Show some love by marking this answer as "Insightful💡" or "Awesome❤️" and "Vote Up⬆️"
-
@Kaveri Vipat thank you for your input. The issue is that the "Urgent" and "Critical" requests are not by WORKDAY but by DATE. How do I add both into the same formula?
-
Hi mgilkessmith
I hope you are doing well,
In your formula, you have missed closing some brackets and you are using the DATE function that is incorrect syntax because the date function should be a Year, Month, and Day so there is no need to use the DATE function and according to your condition I updated my formula so please try this one- =IF([Priority Level]@row = "Routine", WORKDAY([Date Submitted]@row, 5), IF([Priority Level]@row = "Urgent", [Date Submitted]@row + 2, IF([Priority Level]@row = "Critical", [Date Submitted]@row + 1)))
I hope this is useful to you, please let me know if you need any other help.
Have a Good Day.
Thanks,
Kaveri Vipat
Senior Associate - Smartsheet Development, Ignatiuz Software
2023 Core Product Certified
Did this answer help you? Show some love by marking this answer as "Insightful💡" or "Awesome❤️" and "Vote Up⬆️"
-
@Kaveri Vipat Thank you! This works!
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Customer Resources
- 65.2K Get Help
- 445 Global Discussions
- 143 Industry Talk
- 476 Announcements
- 5K Ideas & Feature Requests
- 84 Brandfolder
- 150 Just for fun
- 71 Community Job Board
- 488 Show & Tell
- 33 Member Spotlight
- 2 SmartStories
- 301 Events
- 36 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!