AVERAGEIFS or AVG(COLLECT)
Fairly new to Smartsheet but well versed in Excel. There has been a learning curve, but I have overcome it until now.
I need to write a formula that will average the "Days Off" Column if the "Actual Delivery Date" Column is within a certain date range.
For this example, we can use a date range in the "Actual Delivery Date" column of 1/3/22 - 1/7/22.
Any help the community can provide would be Greatly Appreciated!
Answers
-
Create a helper column called helper:
=AND([Actually Delivery Date]@row > DATE(2022, 1, 3), [Actually Delivery Date]@row < DATE(2022, 1, 7))
Then use:
=AVG(COLLECT([Days Off]:[Days Off], Helper:Helper, true))
-
This actually returned an @row error. I tried identifying row types to make sure that everything matched and everything looks good.
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Customer Resources
- 67.3K Get Help
- 462 Global Discussions
- 156 Industry Talk
- 506 Announcements
- 5.4K Ideas & Feature Requests
- 85 Brandfolder
- 156 Just for fun
- 81 Community Job Board
- 517 Show & Tell
- 35 Member Spotlight
- 3 SmartStories
- 308 Events
- 36 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!