I'm converting a file from Excel to Smartsheets for Quarterly, Semi-Annual, & Annual inspections. I want to set the first inspection date up and then have formulas in place to auto assign the remaining inspection dates for the next 2-3 years. I'm using WORKDAYS with an if formula which is providing a result but it's not calculating the way I need it to. For example, if my first Annual inspection is 2/25/2022, then my next one should be 2/25/2023 but that date falls on a weekend so I would want to schedule the inspection the 1st day following the weekend. The function I'm using is setting the next inspection date for 7/11/2023 which is 511 days. How do I get the weekends and Holidays to calculate in my total days but not be set as a date for inspection?
Below are the formulas I'm using in Smartsheets as well as Excel. (I know Excel formulas don't work the same in Smartsheets)
Smartsheets: =IFERROR(IF($Package@row = "Quarterly", WORKDAY([Start Date]@row, 90), IF($Package@row = "Semi-Annually", WORKDAY([Start Date]@row, 180), IF($Package@row = "Annually", WORKDAY([Start Date]@row, 365)))), 0)
I have not added a Holiday reference to my formula yet but will be
Excel: =WORKDAY(J2+IF($H2="Semi-Annually",180,IF($H2="Annually",365,IF($H2="Quarterly",90)))-1,1,'DATA VALIDATION'!$E4:$E43)
**J2 is my start date - H2 is my package type - Data Validation houses my Holidays to exclude