Weighted Avg excluding outliers

MattTom

New Member
Joined
Mar 29, 2018
Messages
8
Greetings,
I have two columns of data:
A) Stock P/E
B) Port Weight

The data is susceptible to outliers so I'm using TRIMMEAN to calculate the average P/E. Now I'd like to calculate a weighted average that also excludes outlier values. Assuming I can't simply delete the outliers from the data set, is it possible to arrive at a weighted average using TRIMMEAN or some other excel function?

Thanks!
 

Excel Facts

When did Power Query debut in Excel?
Although it was an add-in in Excel 2010 & Excel 2013, Power Query became a part of Excel in 2016, in Data, Get & Transform Data.
What about this approach? Note this is not my field of expertise. I've kept it simple but maybe you could improve it if it works.

one cell with the % to exclude at each end. Like 5%. Then formulas
=PERCENTILE.INC(the 5% cell, the range of stock P/E values)
=PERCENTILE.INC(1 - the 5% cell, the range of stock p/E values)

now add a helper column
=AND(p/e cell > the first new formula, p/e cell < the second new formula)*1
this will give 0 for the data to exclude & 1 for those to include

now sumproduct for the result,
=SUMPRODUCT(all three columns)/SUMPRODUCT(port column & new column)

HTH
 
Upvote 0

Forum statistics

Threads
1,216,084
Messages
6,128,730
Members
449,465
Latest member
TAKLAM

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