AVERAGEIF EXLUDING BOTH ZEROS AND OTHER CELL DATA (OUTLIERS)

Benjamin Repsold

New Member
Joined
Dec 18, 2020
Messages
2
Office Version
  1. 2010
Platform
  1. Windows
Good day

Hope this mail finds you well.

I'm struggling a bit with my biostatistical data.

First =AVERAGEIF(B6:B36,"<>0")
But now, in each situation there are cells (e.g., B34, B18) that must be excluded (outliers).

How do I go about it without setting ranges and just click on the outliers ?

My sincere gratitude for your time and effort.

Dr. Benjamin P. Repsold
 

Excel Facts

Excel Joke
Why can't spreadsheets drive cars? They crash too often!
It probably would have been better to start a new thread, instead of adding to such an old one.
See if the example below works for you. I'm calculating an outlier as (interquartile range * 1.5 )+ quartile 3 for upper limit and (interquartile range * 1.5 ) - quartile 1 for the lower in this example.
The formulas in D6 and E6 are array formulas that must be entered with CTRL-SHIFT_ENTER.

Book1
ABCDEFGH
3
4OutlierOutlier
5DataQuart. 1Quart 3InterQuartLowerUpper
6484862142783
744
862Average54.77778
964
1049
1161
120
1356
1456
1562
1664
1738
1842
1965
2046
210
2265
2358
2449
25100
2647
2760
2860
2954
3045
3159
3239
3398
3465
3559
3662
Sheet1
Cell Formulas
RangeFormula
D6D6=QUARTILE(IF(B6:B36<>0,B6:B36),1)
E6E6=QUARTILE(IF(B6:B36<>0,B6:B36),3)
F6F6=E6-D6
G6G6=D6-(1.5*F6)
H6H6=E6+(1.5*F6)
E8E8=AVERAGEIFS($B$6:$B$36,$B$6:$B$36,"<>0",$B$6:$B$36,">"&$G$6,$B$6:$B$36,"<"&$H$6)
Press CTRL+SHIFT+ENTER to enter array formulas.
 
Upvote 0
Good day



Hope this mail finds you well.



I'm struggling a bit with my biostatistical data.



Please find attached file "Ermelo (Daily outliers)



First B37 =AVERAGEIF(B6:B36,"<>0")

But now, in each situation there are cells (e.g.,B35) that must be excluded (outliers).



Basically:



B37 equation must contain exclusions of 0 as well as exclusions of a few outliers



How do I go about it without setting ranges and just click on the outliers ?



CAN YOU PLEASE REWRITE EQUATION FOR B37, AND IF POSSIBLE E37 ?



There are =SUM(....)COUNT(.......)

My sincere gratitude for your time and effort, and please stay safe.



Dr. Benjamin P. Repsold
 
Upvote 0
@Benjamin Repsold
In future please do not make duplicate posts, especially after you have already had a response.
Thanks
 
Upvote 0
You could do something like =AVERAGEIFS(B6:B36,B6:B36,">"&PERCENTILE.EXE(B6:B36,.1),,B6:B36,"<"&PERCENTILE.EXE(B6:B36,.9))
 
Upvote 0

Forum statistics

Threads
1,215,029
Messages
6,122,755
Members
449,094
Latest member
dsharae57

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