I need a quick an simple excel formula to get the sum of values for different types of objects as listed below:
Type1 10
Type1 10
Type1 10
Type2 10
Type2 10
Type2 10
Type2 10
Type3 10
Type3 10
Number of items and number of types are unknown (long list), in a different worksheet I would like to get sum of types like:
Sumof Type1: 30
Sumof Type2: 40
Sumof Type3: 20
I need no VBA, just simple excel formula please..
BR
I would set it up like this.
=SUMPRODUCT(--(D1=A:A),--(E1=B:B),B:B)
So, basically . . .
To count Apples sales for North:
=SUMPRODUCT(--(A2:A12="north"), --(B2:B12="apples"))
or
=SUMPRODUCT((A2:A12="north")*(B2:B12="apples"))
To sum Apples sales for North:
=SUMPRODUCT(--(A2:A12="north"), --(B2:B12="apples"), C2:C12)
See the link below for more details.
https://www.ablebits.com/office-addins-blog/2016/08/24/excel-sumproduct-function-formula-examples/
Use a pivot table for this.
You could also use the "Add subtotals" feature for this, but pivot tables are more flexible and powerful.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With