Hi,
I have a challenge of creating a weighted average with multiple criteria. I have data that is similar to this.
[TABLE="width: 320"]
<colgroup><col width="64" span="5" style="width:48pt"> </colgroup><tbody>[TR]
[TD="width: 64"]Region[/TD]
[TD="width: 64"]Location[/TD]
[TD="width: 64"]PN[/TD]
[TD="width: 64"]Qty[/TD]
[TD="width: 64"]Sales[/TD]
[/TR]
[TR]
[TD]USA[/TD]
[TD]Dallas[/TD]
[TD="align: right"]1234[/TD]
[TD="align: right"]1[/TD]
[TD="align: right"]100[/TD]
[/TR]
[TR]
[TD]USA[/TD]
[TD]Dallas[/TD]
[TD="align: right"]5678[/TD]
[TD="align: right"]100[/TD]
[TD="align: right"]10000[/TD]
[/TR]
[TR]
[TD]USA[/TD]
[TD]NY[/TD]
[TD="align: right"]1234[/TD]
[TD="align: right"]100[/TD]
[TD="align: right"]10000[/TD]
[/TR]
[TR]
[TD]USA[/TD]
[TD]LA[/TD]
[TD="align: right"]1234[/TD]
[TD="align: right"]10[/TD]
[TD="align: right"]100[/TD]
[/TR]
[TR]
[TD]USA[/TD]
[TD]LA[/TD]
[TD="align: right"]1234[/TD]
[TD="align: right"]100[/TD]
[TD="align: right"]10000[/TD]
[/TR]
[TR]
[TD]USA[/TD]
[TD]NY[/TD]
[TD="align: right"]5678[/TD]
[TD="align: right"]10[/TD]
[TD="align: right"]1000[/TD]
[/TR]
[TR]
[TD]UK[/TD]
[TD]England[/TD]
[TD="align: right"]1234[/TD]
[TD="align: right"]2[/TD]
[TD="align: right"]200[/TD]
[/TR]
[TR]
[TD]UK[/TD]
[TD]Ireland[/TD]
[TD="align: right"]5678[/TD]
[TD="align: right"]200[/TD]
[TD="align: right"]20000[/TD]
[/TR]
[TR]
[TD]UK[/TD]
[TD]Ireland[/TD]
[TD="align: right"]1234[/TD]
[TD="align: right"]200[/TD]
[TD="align: right"]20000[/TD]
[/TR]
[TR]
[TD]UK[/TD]
[TD]Ireland[/TD]
[TD="align: right"]1234[/TD]
[TD="align: right"]20[/TD]
[TD="align: right"]2000[/TD]
[/TR]
[TR]
[TD]UK[/TD]
[TD]Scotland[/TD]
[TD="align: right"]1234[/TD]
[TD="align: right"]200[/TD]
[TD="align: right"]20000[/TD]
[/TR]
[TR]
[TD]UK[/TD]
[TD]Scotland[/TD]
[TD="align: right"]5678[/TD]
[TD="align: right"]20[/TD]
[TD="align: right"]2000[/TD]
[/TR]
</tbody>[/TABLE]
I need to find the weighted average of Sales based on quantity but where a certain combination of criteria is defined. I need the weighted Average of PN 1234 in the USA region in the LA location.
I know how to do this with one criteria but not multiple. Sumproduct formulas are not my strong suit.
thanks!!
I have a challenge of creating a weighted average with multiple criteria. I have data that is similar to this.
[TABLE="width: 320"]
<colgroup><col width="64" span="5" style="width:48pt"> </colgroup><tbody>[TR]
[TD="width: 64"]Region[/TD]
[TD="width: 64"]Location[/TD]
[TD="width: 64"]PN[/TD]
[TD="width: 64"]Qty[/TD]
[TD="width: 64"]Sales[/TD]
[/TR]
[TR]
[TD]USA[/TD]
[TD]Dallas[/TD]
[TD="align: right"]1234[/TD]
[TD="align: right"]1[/TD]
[TD="align: right"]100[/TD]
[/TR]
[TR]
[TD]USA[/TD]
[TD]Dallas[/TD]
[TD="align: right"]5678[/TD]
[TD="align: right"]100[/TD]
[TD="align: right"]10000[/TD]
[/TR]
[TR]
[TD]USA[/TD]
[TD]NY[/TD]
[TD="align: right"]1234[/TD]
[TD="align: right"]100[/TD]
[TD="align: right"]10000[/TD]
[/TR]
[TR]
[TD]USA[/TD]
[TD]LA[/TD]
[TD="align: right"]1234[/TD]
[TD="align: right"]10[/TD]
[TD="align: right"]100[/TD]
[/TR]
[TR]
[TD]USA[/TD]
[TD]LA[/TD]
[TD="align: right"]1234[/TD]
[TD="align: right"]100[/TD]
[TD="align: right"]10000[/TD]
[/TR]
[TR]
[TD]USA[/TD]
[TD]NY[/TD]
[TD="align: right"]5678[/TD]
[TD="align: right"]10[/TD]
[TD="align: right"]1000[/TD]
[/TR]
[TR]
[TD]UK[/TD]
[TD]England[/TD]
[TD="align: right"]1234[/TD]
[TD="align: right"]2[/TD]
[TD="align: right"]200[/TD]
[/TR]
[TR]
[TD]UK[/TD]
[TD]Ireland[/TD]
[TD="align: right"]5678[/TD]
[TD="align: right"]200[/TD]
[TD="align: right"]20000[/TD]
[/TR]
[TR]
[TD]UK[/TD]
[TD]Ireland[/TD]
[TD="align: right"]1234[/TD]
[TD="align: right"]200[/TD]
[TD="align: right"]20000[/TD]
[/TR]
[TR]
[TD]UK[/TD]
[TD]Ireland[/TD]
[TD="align: right"]1234[/TD]
[TD="align: right"]20[/TD]
[TD="align: right"]2000[/TD]
[/TR]
[TR]
[TD]UK[/TD]
[TD]Scotland[/TD]
[TD="align: right"]1234[/TD]
[TD="align: right"]200[/TD]
[TD="align: right"]20000[/TD]
[/TR]
[TR]
[TD]UK[/TD]
[TD]Scotland[/TD]
[TD="align: right"]5678[/TD]
[TD="align: right"]20[/TD]
[TD="align: right"]2000[/TD]
[/TR]
</tbody>[/TABLE]
I need to find the weighted average of Sales based on quantity but where a certain combination of criteria is defined. I need the weighted Average of PN 1234 in the USA region in the LA location.
I know how to do this with one criteria but not multiple. Sumproduct formulas are not my strong suit.
thanks!!