VBAthat does a sort of index-match to find all the count numbers of an address across a range, and find the trimmed mean of those prices

Oraekene

New Member
Joined
Sep 20, 2022
Messages
46
Office Version
  1. 2013
Platform
  1. Windows
Good day. I have a datasheet that has addresses (eg. 10023) and a set of row number values in columns beside each address across a range (eg. 10023 occurs eight times with these row numbers 3, 12, 13, 15, 18, 20, 22, 23). I would like the vba for a trimmean that for each address finds all those row numbers, sort them from least to most, trim off outlier data (eg. removes 12.5% of bottom and top values, for 10023 would be 3 and 23) and then find the average of the remaining data (eg. for 10023 would be 23.33), and to do thid across a unique list of the addresses. Attached is a sample file showing the intended outcome Sample data sheet for the Trimmean vba
 

Excel Facts

Back into an answer in Excel
Use Data, What-If Analysis, Goal Seek to find the correct input cell value to reach a desired result

Forum statistics

Threads
1,224,823
Messages
6,181,181
Members
453,022
Latest member
Mohamed Magdi Tawfiq Emam

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