Trimmean, averageifs, and countifs

stwp86

New Member
Joined
Jun 28, 2012
Messages
19
Hey Everyone . . .

I have the following AVERAGEIFS formula in my workbook: =IFERROR(AVERAGEIFS(Data!$A:$A,Data!$J:$J,"="&CONCATENATE(TRIM($B$3)," - ",TRIM(Orders!$C3)),Data!$K:$K,">="&Orders!$H$1,Data!$K:$K,"<="&Orders!$I$1),0)

The purpose is to average a number set if a string matches and the specified column date falls between another given date.

What I would like to do, is integrate the TRIMMEAN function into the AVERAGEIFS function, if possible. Or, do something similar where the top 5% and/or the bottom 5% are removed from the average calculation.

I also would need to do something similar to this function: =COUNTIFS(Data!$J:$J,CONCATENATE(TRIM($B$3)," - ",TRIM(Orders!$C3)),Data!$K:$K,">="&Orders!$H$1,Data!$K:$K,"<="&Orders!$I$1)

This function gives me the transaction count for the matching string between the same date.

Basically, I have some outliers at the top and bottom, and we have concluded that hacking 5% from the top and bottom cleans the data enough for our purposes, so we dont want to do the IQR method.

Any help would be greatly appreciated.

Thanks!
 

Excel Facts

Which came first: VisiCalc or Lotus 1-2-3?
Dan Bricklin and Bob Frankston debuted VisiCalc in 1979 as a Visible Calculator. Lotus 1-2-3 debuted in the early 1980's, from Mitch Kapor.
Thoughts on this anyone? Been wracking my brain over it for a while . . .

Hey Everyone . . .

I have the following AVERAGEIFS formula in my workbook: =IFERROR(AVERAGEIFS(Data!$A:$A,Data!$J:$J,"="&CONCATENATE(TRIM($B$3)," - ",TRIM(Orders!$C3)),Data!$K:$K,">="&Orders!$H$1,Data!$K:$K,"<="&Orders!$I$1),0)

The purpose is to average a number set if a string matches and the specified column date falls between another given date.

What I would like to do, is integrate the TRIMMEAN function into the AVERAGEIFS function, if possible. Or, do something similar where the top 5% and/or the bottom 5% are removed from the average calculation.

I also would need to do something similar to this function: =COUNTIFS(Data!$J:$J,CONCATENATE(TRIM($B$3)," - ",TRIM(Orders!$C3)),Data!$K:$K,">="&Orders!$H$1,Data!$K:$K,"<="&Orders!$I$1)

This function gives me the transaction count for the matching string between the same date.

Basically, I have some outliers at the top and bottom, and we have concluded that hacking 5% from the top and bottom cleans the data enough for our purposes, so we dont want to do the IQR method.

Any help would be greatly appreciated.

Thanks!
 
Upvote 0

Forum statistics

Threads
1,215,067
Messages
6,122,949
Members
449,095
Latest member
nmaske

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