Insert Formula within Workday "num_days" string
Hey,
This may be super simple & this feature is available in excel, so I think i am just missing something in front of the "-1" for Smartsheet to pick up a formula. I am trying to calculate the day for a "test" shipment to arrive, based on 3 factors - 1. workday (with holidays), 2. Scheduled delivery date of devices, and # of transit days, depending on the state. For the "num_days" portion of the formula, I am trying to multiply it by "X # of ship days".
Here is my formula .... I don't have the holiday portion in yet, because I received "invalid data type." I tried changing the column properties to date and text. Any help would be great! Thanks!
=WORKDAY($[Device Delivery Date]1, -1 * [Mobile Device Ship Transit Days-Average]1)
Test info
Device Delivery Date: 8/26/20
Transit Time/Days: 1.2
Test Shipment date: Output
Best Answer
-
You need to make sure you are outputting a whole number, so you may need to incorporate a ROUND function.
=WORKDAY($[Device Delivery Date]1, ROUND(-1 * [Mobile Device Ship Transit Days-Average]1))
Or possibly a ROUNDUP or ROUNDDOWN or some similar function.
Answers
-
You need to make sure you are outputting a whole number, so you may need to incorporate a ROUND function.
=WORKDAY($[Device Delivery Date]1, ROUND(-1 * [Mobile Device Ship Transit Days-Average]1))
Or possibly a ROUNDUP or ROUNDDOWN or some similar function.
-
Thank you Paul this worked!
Final output if anyone needs :)
=IFERROR(WORKDAY(WORKDAY($[Device Delivery Date]1, ROUNDUP($[Mobile Device Ship Transit Days-Average]1 * -1), {Mobile Ship/Holiday Key - Holiday Dates}), -3, {Mobile Ship/Holiday Key - Holiday Dates}), "TBD")
{Mobile Ship/Holiday Key - Holiday Dates} = My alternate sheet source to holidays
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Customer Resources
- 64.9K Get Help
- 439 Global Discussions
- 138 Industry Talk
- 471 Announcements
- 4.9K Ideas & Feature Requests
- 129 Brandfolder
- 148 Just for fun
- 68 Community Job Board
- 488 Show & Tell
- 33 Member Spotlight
- 2 SmartStories
- 300 Events
- 36 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!