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
- 64.8K Get Help
- 434 Global Discussions
- 138 Industry Talk
- 470 Announcements
- 4.9K Ideas & Feature Requests
- 129 Brandfolder
- 148 Just for fun
- 65 Community Job Board
- 486 Show & Tell
- 33 Member Spotlight
- 2 SmartStories
- 300 Events
- 36 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!