Forum Discussion
Weighted Average with multiple criteria and looking for specific name
- Sep 07, 2018
Hi Blake,
Please try this formula:
=AVERAGE(AVERAGEIFS(D2:D8, A2:A8,{"Coke","VanillaCoke","CherryCoke"}))
With this formula, you don't have to manually calculate the Qty.
But the best way is to create another column in the table to hold the class for each product.
This will make the calculation easier so that you don't have to hard-code each product in the formula.
This can be done as follows:
Please find the attached workbook
Hope that helps
Hi Blake,
Please try this formula:
=AVERAGE(AVERAGEIFS(D2:D8, A2:A8,{"Coke","VanillaCoke","CherryCoke"}))
With this formula, you don't have to manually calculate the Qty.
But the best way is to create another column in the table to hold the class for each product.
This will make the calculation easier so that you don't have to hard-code each product in the formula.
This can be done as follows:
Please find the attached workbook
Hope that helps
This example/solution is just the simple average and not the weighted average. The calc for weighted average is as attached and would need a column with total cost per item calculated (cost per unit X units). This column can then be hidden for presentation purposes if desired.