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

Will the fill handle fill 1, 2, 3?
Yes! Type 1 in a cell. Hold down Ctrl while you drag the fill handle.

Forum statistics

Threads
1,223,877
Messages
6,175,138
Members
452,614
Latest member
MRSWIN2709

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