Average percentage of Assessments in a date range
We do progress assessments on a monthly basis and the assessments are given a score as a percentage.
I can write the formula to give the average score for all of the assessments on the sheet but I am struggling to write the formula that allows me to find the average score in a date period.
The formula I have tried is
=AVERAGEIF({MOS Assessment Total %}, {MOS Assessment Date}, >=$[Start Date]$1, {MOS Assessment Date}, <=$[End Date]$1)
Best Answer
-
When you have multiple criteria to include in your Average formula (such as looking at two different dates), you'll actually want to use an AVG(COLLECT formula instead. The COLLECT function will filter down the initial range to Average based on your multiple criteria.
For example:
=AVG(COLLECT({Range to Average}, {Criteria range 1}, criteria 1, {Criteria range 2}, criteria 2, ...) etc
So in your instance, try something like this:
=AVG(COLLECT({MOS Assessment Total %}, {MOS Assessment Date}, >=$[Start Date]$1, {MOS Assessment Date}, <=$[End Date]$1))
Let me know if this works for you!
Cheers,
Genevieve
Join us at Smartsheet ENGAGE 2024 🎉
October 8 - 10, Seattle, WA | Register now
Answers
-
When you have multiple criteria to include in your Average formula (such as looking at two different dates), you'll actually want to use an AVG(COLLECT formula instead. The COLLECT function will filter down the initial range to Average based on your multiple criteria.
For example:
=AVG(COLLECT({Range to Average}, {Criteria range 1}, criteria 1, {Criteria range 2}, criteria 2, ...) etc
So in your instance, try something like this:
=AVG(COLLECT({MOS Assessment Total %}, {MOS Assessment Date}, >=$[Start Date]$1, {MOS Assessment Date}, <=$[End Date]$1))
Let me know if this works for you!
Cheers,
Genevieve
Join us at Smartsheet ENGAGE 2024 🎉
October 8 - 10, Seattle, WA | Register now -
-
Hi Dave,
I'm glad that worked for you! Hope you have a good weekend.
Genevieve
Join us at Smartsheet ENGAGE 2024 🎉
October 8 - 10, Seattle, WA | Register now
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Smartsheet Customer Resources
- 62.3K Get Help
- 364 Global Discussions
- 199 Industry Talk
- 428 Announcements
- 4.4K Ideas & Feature Requests
- 136 Brandfolder
- 127 Just for fun
- 128 Community Job Board
- 445 Show & Tell
- 28 Member Spotlight
- 1 SmartStories
- 283 Events
- 35 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!