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

Is there a shortcut key for strikethrough?
Ctrl+S is used for Save. Ctrl+5 is used for Strikethrough. Why Ctrl+5? When you use hashmarks to count |||| is 4, strike through to mean 5.
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,223,893
Messages
6,175,240
Members
452,621
Latest member
Laura_PinksBTHFT

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