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
- Smartsheet Customer Resources
- 64.1K Get Help
- 414 Global Discussions
- 221 Industry Talk
- 461 Announcements
- 4.8K Ideas & Feature Requests
- 143 Brandfolder
- 141 Just for fun
- 58 Community Job Board
- 462 Show & Tell
- 32 Member Spotlight
- 1 SmartStories
- 299 Events
- 38 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!