Averaging Invoice Totals

I am trying to AVG invoice totals by "Invoice Description" and "Packaging Description". So, I am trying to determine the average Invoice Total for "Plates" and "Body", "Plates" and "Lid", etc. Here's an example of my columns I am using to determine the averages:
My formula is as follows but is not calculating properly:
=AVG({Packaging Invoices Range 1}, "Plates", {Packaging Invoices Range 3}, "Body", {Packaging Invoices Range 2})
Range 1= Invoice Description
Range 2 = Invoice Total
Range 3 = Packaging Description
Thanks for your help!
Best Answer
-
I think a COLLECT will fix this for you. So something like:
=AVG(COLLECT({Packaging Invoices Range 2}, {Packaging Invoices Range 1}, "Plates", {Packaging Invoices Range 3}, "Body"))
Here there the Collect asks for the range to be collected (the invoice total) and then follows by asking the Criteria Range then the Criteria to match to.
I think this should work.
Answers
-
I think a COLLECT will fix this for you. So something like:
=AVG(COLLECT({Packaging Invoices Range 2}, {Packaging Invoices Range 1}, "Plates", {Packaging Invoices Range 3}, "Body"))
Here there the Collect asks for the range to be collected (the invoice total) and then follows by asking the Criteria Range then the Criteria to match to.
I think this should work.
-
That did the trick! Thanks David!
-
Awesome! Glad it is working.
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Customer Resources
- 68K Get Help
- 474 Global Discussions
- 209 Use Cases
- 517 Announcements
- 5.6K Ideas & Feature Requests
- 87 Brandfolder
- 157 Just for fun
- 85 Community Job Board
- 521 Show & Tell
- 36 Member Spotlight
- 3 SmartStories
- 309 Events
- 37 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!