Average Collect Formula
Answers
-
Can you share some more details and perhaps a screenshot to help understand the formula? Also, what are the issues/errors you are facing?
Itai Perez
Reporting and Project Manager
If you found my comment helpful any reaction, Insightful, Awsome etc... would be appreciated🙂
https://www.linkedin.com/in/itai-perez/
-
I have a capacity for example 100. I want to average how much that 100 capacity costs with a rolling month by month.
-
=AVG(COLLECT( [ColToAvg]:[ColToAvg], [Range1]:[Range1], "Criteria1", [Range2]:[Range2], "Criteria2", … … … ))
You can follow the format above to set up your formula.
Here are some similar posts, https://community.smartsheet.com/discussion/110049/average-collect-w-3-criteria
...
-
Give this a try:
=AVG(COLLECT({Formal Total}, {Formal Capacity}, >=10, {Formal Capacity}, <=269, {Date Budget Formal}, IFERROR(YEAR(@cell), 0) = 2021))
-
It comes up with #DIVIDE BY ZERO
-
That means you do not have any rows matching the range/criteria sets. What does this output:
=COUNTIFS({Formal Capacity}, >=10, {Formal Capacity}, <=269, {Date Budget Formal}, IFERROR(YEAR(@cell), 0) = 2021)
-
Hi Paul,
I sorted it out thanks, next bit of it. i want to be able to add this so it counts it as a rolling 12 month period and averages out for each month, do you know why this formula does not work?
=AVG(COLLECT({Formal Total}, {Formal Capacity}, >=10, {Formal Capacity}, <=269, {Date Budget Formal}, AND(IFERROR(MONTH(@cell ), 0) = 2, IFERROR(YEAR(@cell ), 0) = IF(TODAY() >= DATE(YEAR(TODAY()), 2, 1), YEAR(TODAY()), YEAR(TODAY()) - 1))))@cell
-
What happens if you delete the "@cell" from the end?
-
It says Divide By Zero but when i go back to the other formula where it calculates it by year it comes back with an average.
-
Do you have any rows in the source data where the capacity is between 10 and 269 and the date is in February 2024?
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Smartsheet Customer Resources
- 63.5K Get Help
- 402 Global Discussions
- 213 Industry Talk
- 450 Announcements
- 4.7K Ideas & Feature Requests
- 141 Brandfolder
- 135 Just for fun
- 56 Community Job Board
- 454 Show & Tell
- 31 Member Spotlight
- 1 SmartStories
- 296 Events
- 36 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!