Conditional Weighted Average using same Data Column

Googsy

New Member
Joined
Jun 4, 2018
Messages
1
Hello!

I try to do a weighted average of data in a single column.

Example:
[TABLE="class: grid, width: 200"]
<tbody>[TR]
[TD]Module[/TD]
[TD]Indicator[/TD]
[TD]Type[/TD]
[TD]Data[/TD]
[/TR]
[TR]
[TD]M1[/TD]
[TD]Ind 1[/TD]
[TD]A[/TD]
[TD]100[/TD]
[/TR]
[TR]
[TD]M1[/TD]
[TD]Ind 1[/TD]
[TD]B[/TD]
[TD]80[/TD]
[/TR]
[TR]
[TD]M1[/TD]
[TD]Ind 2[/TD]
[TD]A[/TD]
[TD]15[/TD]
[/TR]
[TR]
[TD]M1[/TD]
[TD]Ind 2[/TD]
[TD]B[/TD]
[TD]20[/TD]
[/TR]
[TR]
[TD]Mn[/TD]
[TD]Ind n[/TD]
[TD]X[/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]

Simply put, I need to do weighted average per Type for Indicator 2 using Indicator 1.
The Module condition is required as same indicator-type may be in different modules but different unit of measures. so, the consolidation is done per module.

I listed only the conditional columns. The set of modules-indicators-types-data is repeated multiple time for each Location in scope! Therefore this consolidation will show overall result.

Looking forward for the saving net I thank you in advance and I wish you a great day,
Dragos
 

Excel Facts

What is the shortcut key for Format Selection?
Ctrl+1 (the number one) will open the Format dialog for whatever is selected.

Forum statistics

Threads
1,225,730
Messages
6,186,698
Members
453,369
Latest member
positivemind

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top