Average Formulas
Hi all,
Need help with trying to get a formula for Averaging Transit Days for certain criterias in Carrier and Origin. Ultimately I'm trying to build a dashboard of transit days for each origin location. Below if formula I am trying, but I'm not getting any output.
=AVG(COLLECT([Transit Days]:[Transit Days], Carrier:Carrier, "DM", Origin:Origin, "HKG"))
Best Answer
-
Ok. Start by checking your [Freight received] and [Delivery Date columns. Are there any errors or missing dates? If so, that would cause an error in your NETWORKDAY formula which would be pulled through into your average formula.
Answers
-
When you say you are "not getting any output" do you mean that the formula is returning a blank or are you getting an error, or...?
-
Hi Paul,
Sorry it's giving me error "#Invalid Data Type". Any information is greatly appreiated :).
-
Do you have that error in any of the columns being referenced? How is the data in the [Transit Days] column being populated?
-
Yes, i do have that in the [transit day] column which is calculating the below formula. Please note that's just one sample with correct data.
Transit Days formula below
=NETWORKDAY([Freight received]24, [Delivery Date]24)
-
Ok. Start by checking your [Freight received] and [Delivery Date columns. Are there any errors or missing dates? If so, that would cause an error in your NETWORKDAY formula which would be pulled through into your average formula.
-
Thanks Paul for the assistance. I was able to fix the issues with your help. Much appreciated.
-
Happy to help. 👍️
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Smartsheet Customer Resources
- 64.2K Get Help
- 419 Global Discussions
- 221 Industry Talk
- 461 Announcements
- 4.8K Ideas & Feature Requests
- 143 Brandfolder
- 142 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!