No AVERAGEIFS so I tried AVG(COLLECT) but can't get it to work with multiple criteria
Hi, I'm trying to calculate the average of the operational speed [plants/h] only if the [job type] is "Grafting TOM" (cells highlighted in yellow) and also IF [week NO] is a certain value: so basically the average speed for each week for each job type.
This formula will be on a different Metrics sheet on the same folder (sheet attached below), I'm working on generating on this sheet the average of each specific job type (on the column [tasks]) for each week listed on this metric sheet.
I've tried AVG(COLLECT) formula as well for few hours but it seems that I'm missing something here, can't get it working.
Anyone could help giving me some hints to get over this?
TIA😊
Pietro
Answers
-
I'm testing this formula but not sure if it's correct:
-
Since you have two criteria (the week number and also the Task name), then yes! AVG(COLLECT is the way to go.
I would suggest replacing your row number (in this case, row 11) with the @row function so you can drag-fill this formula, and adding in an Absolute Reference for the Current Week cell so it doesn't move as you drag the formula around:
=AVG(COLLECT({Range to Average}, {Job Type}, Task@row, {Week no.}, $[Current Week]$9))
It actually looks like you have built the formula correctly, although it's hard to tell without seeing each of the Ranges. I presume that the one called Range 4 is the Plants/ column that you're looking to average, and Range 2 is the Job Type column, is that correct?
I tried to replicate receiving this error when trying to average 0s and it worked fine, without returning this error. How is that Plants column being populated? Are there any instances of errors in that column?
Need more help? 👀 | Help and Learning Center
こんにちは (Konnichiwa), Hallo, Hola, Bonjour, Olá, Ciao! 👋 | Global Discussions
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Customer Resources
- 64.9K Get Help
- 441 Global Discussions
- 139 Industry Talk
- 471 Announcements
- 4.9K Ideas & Feature Requests
- 129 Brandfolder
- 148 Just for fun
- 68 Community Job Board
- 496 Show & Tell
- 33 Member Spotlight
- 2 SmartStories
- 300 Events
- 36 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!