Formula to calculate an average using 12 most recent form submissions that meet certain criteria
Hello Community! I have a database where 11 different units submit data on a monthly basis related to filled FTEs vs. open FTEs so we can determine the monthly vacancy data. I have built out a form that the managers from each unit use each month to submit their filled FTEs for the previous month. Smartsheet then uses INDEX/MATCH to look across a different database determine how many FTEs that unit is budgeted for the year, and then, based on how many they report having filled, automatically calculates how many FTEs remain open, and therefore what the vacancy rate is for that month.
What I want next is a formula that calculates a 12-month rolling average vacancy rate for each line item submission as well, BUT I am getting stuck on how to tell Smartsheet to base the average off of only the previous 12 entries from that specific department.
I imagine I will need to use AVERAGE(COLLECT, but this is all I've been able to write:
=AVERAGE(COLLECT([Monthly Vacancy Rate]:[Monthly Vacancy Rate], [Helper-Unit]@row, CONTAINS([Unit]@row, @cell)…
Thoughts from the class, please?
If this comment helped you, please help me and help others by using the buttons below if you found it 💡 Insightful or ❤️ Awesome!
Answers
-
Do you have an auto-number column in your sheet?
-
@Paul Newcome I do not but I could add one!
If this comment helped you, please help me and help others by using the buttons below if you found it 💡 Insightful or ❤️ Awesome!
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Customer Resources
- 65.1K Get Help
- 443 Global Discussions
- 140 Industry Talk
- 472 Announcements
- 5K Ideas & Feature Requests
- 129 Brandfolder
- 150 Just for fun
- 71 Community Job Board
- 497 Show & Tell
- 33 Member Spotlight
- 2 SmartStories
- 300 Events
- 35 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!