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
- Smartsheet Customer Resources
- 64.2K Get Help
- 419 Global Discussions
- 221 Industry Talk
- 461 Announcements
- 4.8K Ideas & Feature Requests
- 143 Brandfolder
- 142 Just for fun
- 58 Community Job Board
- 462 Show & Tell
- 32 Member Spotlight
- 1 SmartStories
- 299 Events
- 38 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!