E-mail:

# How Do I Calculate Outliers In Excel?

Is there a way for excel to automatically determine outliers in a given data
set and exclude them from future calculations?

## Similar Excel Tutorials

Calculate Someone's Age in Excel
How to automatically calculate someone's age using Excel.  This method is simple and will update every year so tha ...
Stop Formula Calculation in Excel - Increase Worksheet Performance
I'll show you how to stop formulas and functions from performing their calculations and updating in Excel. This ma ...
Calculate the Future Value (FV) of Compound Interest in Excel - UDF Macro
This UDF (user defined function) calculates the Future Value of Compound Interest in Excel. The mathematical formu ...
Calculate the Difference Between Time Greater than 24 Hours in Excel
Ill show you how to calculate the difference between two times in Excel when that difference will add up to more t ...

Calculate the Future Value (FV) of Compound Interest in Excel - UDF Macro
- This UDF (user defined function) calculates the Future Value of Compound Interest in Excel. The mathematical formula th
Filter Data to Show the Bottom X Percent of the Data Set in Excel - AutoFilter
- This free Excel macro filters data to display the bottom X percent of the data set in Excel. This is a great macro to u
Complete Guide to Printing in Excel Macros - PrintOut Method in Excel
- This free Excel macro illustrates all of the possible parameters and arguments that you can include in the PrintOut Meth
Filter Data in Excel to Show Only the Top X Percent of that Data Set - AutoFilter
- This Excel macro filters a set of data in Excel and displays only the top X percent of that data. This means the highes
Automatically Run a Macro at a Certain Time - i.e. Run a Macro at 4:30PM every day
- Automatically run an Excel macro at a certain time. This allows you to not have to worry about running a macro every da

## Similar Topics

hi,

i have a scatter plot for which i want to insert a best fit line. however, there are some outliers within the data. i have manually identified these outliers and coloured them differently from the non-outliers, but what i would like to do now is to insert a best-fit straight line for the remaining good data, while still keeping the outliers on the scatter plot. is there a way to do that?

i found this post:
http://thedailyreviewer.com/office/v...iers-110140914
but do not understand how to "fit the trend line based on the new set of points, but graph the old set".

thanks for any help.

I've been racking my brain over this all weekend. Can you help me determine the best minimum time excluding outliers?

For example:

Dave 15
Jim 10
Mike 12
John 5
Jill 12
Kim 13
Joey 21
Ralph 6
Sue 20

I would consider 5, 6, 20, and 21 outliers. I need to remove them to show the minimum (or best time) which in this case would be 10.

Thanks,

does anyone know if I can get outliers from a histogram, or do I need to do a

I have lots of data, mostly triplicate results, with some outliers. I would
appreciate help on applying Thompson tau or other outlier removal technique
in Excel.
Thanks!

Hi!! I've been trying with no luck to come up with a way to:

a) find all the outliers in a range of a 1000 rows. The criteria is simply +/- average*2. The outlier can either be above or below.
b) colour the background of these outliers.
c) repeat a&b in the next column.

So in essence, I'm trying to find all values in a table that are twice (positive or negative) that of the average and highlight them.

Example:
A, B
4, 1
4, 1
4, 1
4, 4
4, 1
4, 1
4, 1
12, 1

In this case the outlier for A is 12 and the outlier for B is 4.

Any help, be it in a formula for a given cell, or VBA, is deeply appreciated.

Sincerely
Kurifodo

Using the averaging approach and descriptive statistics can anyone tell me how do i find outliers? i know how to do it using the 5-number summary but cant figure out how to do it this way

thanks.

hi all,

i have a range of numbers in C5:AL5
Not all of the cells are filled in, and some that are filled in are blank.

In AM5 I calculate the average of the data
and in AN5 the standard deviation where the value in the cells in the range are >0

Is it possible to calculate a standard deviation in another cell which excludes those values in the range which are 3 standard deviations away from the value in cell AN5.
Therefore, the standard deviation with the outliers.

If there is another way of doing this, i would be grateful for your help.
Luce

Hello,

When evaluating a set of items for their popularity, I pull popularity metrics from two different sources, aggregating each score into an average. While I am satisfied with this metric (Let's call it the 'popularity score'), I'd like to create a simplified, more meaningful score.

My initial though was to create an index using the following formula:

Code:

```(D3/MAX(\$D:\$D))*100)
```

Where D3 is the individual popularity score and D represents all popularity scores.

I discovered, however, that outliers would have a disruptive effect on the data. For instance, if there where several VERY popular items, other items with acceptable popularity scores would appear very low in relative terms.

Any ideas on how to account for the Outliers while still retaining the meaning in an easy to understand way?

Here is part of the data:

Here is my data (D3:D29):

0.00
0.00
0.00
42.56
0.00
680.99
0.00
0.00
60.80
0.00
18.24
0.00
85.12
170.24
0.00
0.00
297.92
103.36
0.00
0.00
0.00
30.40
18.24
30.40
72.96
0.00

A colleague suggest that I take the lognormal distribution and then take the antilog. Any idea how to implement, or if this is a sound approach?

Hello All,

I'm new to the forum and have not needed to do anything like this before but assume that excel can do this kind of thing.

I have tried to search for a solution everywhere.

OK, I have a large data set of triplicates in column F (example below):

B C D E
F 1
121
INT#6 SYBR Unknown
25.944914 2 122 INT#6 SYBR Unknown 25.577063 3 123 INT#6 SYBR Unknown 24.799803 4 124 INT#6 SYBR Unknown 27.107956 5 125 INT#6 SYBR Unknown 26.962341 6 126 INT#6 SYBR Unknown 27.189684 7 127 INT#6 SYBR Unknown 26.185757 8 128 INT#6 SYBR Unknown 26.0001 9 129 INT#6 SYBR Unknown 26.207401 10 130 INT#6 SYBR Unknown 25.44769 11 131 INT#6 SYBR Unknown 25.850075 12 132 INT#6 SYBR Unknown 26.147488 13 133 INT#6 SYBR Unknown 24.232754 14 134 INT#6 SYBR Unknown 24.747488 15 135 INT#6 SYBR Unknown 24.813463 16 136 INT#6 SYBR Unknown 25.699005 17 137 INT#6 SYBR Unknown 25.42176 18 138 INT#6 SYBR Unknown 25.657625 19 139 INT#6 SYBR Unknown 25.596703 20 140 INT#6 SYBR Unknown 24.756275 21 141 INT#6 SYBR Unknown 24.952007 22 142 INT#6 SYBR Unknown 25.594326 23 143 INT#6 SYBR Unknown 26.192163 24 144 INT#6 SYBR Unknown 24.788391
so one triplicate is 121 to 123 (data in F1:F3) then the next set is 124 to 126 (data in F4:F6).
What I want to do is compare each number within the triplicate to the others within the same triplicate and determine which are +/- 0.5 from the others and label them as outliers.
I have come up with a poor solution that works for most instances but not when two values are 0.5 from each other, neither is marked as an outlier. In this case I would like to the formula to choose the value furthest from the median as the outlier.
I would also ideally like to mark the outliers by somehow highlighting in red.

my poor solution occupies the next 3 columns G,H and I and is very clunky:

G H I 1 =IF(OR(\$F2(\$F3+0.5)),1,0) =IF(OR(\$F2(\$F4+0.5)),1,0) =SUM(I2:J2) 2 =IF(OR(\$F3(\$F2+0.5)),1,0) =IF(OR(\$F3(\$F4+0.5)),1,0) =SUM(I3:J3) 3 =IF(OR(\$F4(\$F2+0.5)),1,0) =IF(OR(\$F4(\$F3+0.5)),1,0) =SUM(I4:J4) 4 =IF(OR(\$F5(\$F6+0.5)),1,0) =IF(OR(\$F5(\$F7+0.5)),1,0) =SUM(I5:J5) 5 =IF(OR(\$F6(\$F5+0.5)),1,0) =IF(OR(\$F6(\$F7+0.5)),1,0) =SUM(I6:J6) 6 =IF(OR(\$F7(\$F5+0.5)),1,0) =IF(OR(\$F7(\$F6+0.5)),1,0) =SUM(I7:J7)
The if the result in column I is 2 then the corresponding value in the data set is an outlier.

Can anyone help?
I hope my explanation of the problem is understandable.

This is really bugging me. If I can get the formula to work then It will save me days of trawling through data picking outliers by eye.

I eagerly await a solution and will try things of my own in the mean time but as you can see I am far from an excel master.

Cheers

Hi everyone...

here is the situation...i need a formula for median to exclude the min and the max value ..that are above 0!!!

i tried this formula ...(ARRAY!) but i get Num error! ..any ideas?

suppose H28:H32 is the data range!

{=+MEDIAN(IF(H28:H32>0,IF(H28:H32>MIN(H28:H32),IF(H28:H32<MAX(H28:H32),H28:H32))))}

Is there a good way of excluding an outlier in an average calculation. In the example below will I exclude 1000 from the average-calculation.

The way to decide excluding-values can either be a percent based on the range or everything that is a higher than a user defined value. It can also be more than one outlier.
A user defined function is OK with me, if it is impossible to use the built-in functions. Any suggestion?

Code:

```1
2
3
4
5
6
7
1000
8
9
10
11
12
```

Hi.

I am analyzing sales figures and need some assistance. I have a variety of products and a variety of territories where these products are sold. Additionally I have Gross Profit Margin figures for each product sold and many of the same products have differing GP % due to flexibility of sales agents setting the sale price.

Ideally I would love to find out what products are the most profitable, along with which areas these products sell for the most effectively.

However, after developing a Pivot Table with products in rows and Territories in Columns, I realized some products have "outlier like" GP%. These products have zero revenue as they were given to the customer as a freebie in a large contract which throws off my analysis on how profitable the product category is.

Would you recommend that I remove outliers and solely calculate based on 'normally' priced products? And second, I am also suppose to analyze large order (contain many products), how do you suggest I do that (especially with consideration to question 1)??

Thanks!!

Can anyone help with a box and whisker related graph?
I can do the 50% quartile method of sorting this out but for a piece of research I need to study the middle 75% and exclude the top and bottom 12.5% of outliers only.
I tried the percentile approach to calculate the top and bottom 12.5% but this of course calculates figures that don't match up to actual data points, unlike the quartile method and median which actually do match up to the data points. As i need my box graph to match up to all the data points in my presentation the percentile approach doesn't work for me.
Does anyone have any idea how this can be done?
Thanks

I'm attempting to do my first forecast, but I seem to be failing miserably. When I use the FORECAST function all of the forecasted totals are much too high. I

Is there a way to exclude outliers or use a moving average..... or am I just using the function completely wrong?

Any pointers would be greatly appreciated, when it's all said and done I would love to take the previous 6 months of processed data and use that to forecast the processed amounts for the next 6 months... but as it stands now these numbers won't be nearly accurate enough.

Hello all,

I'm trying to get a standard deviation of data range, excluding the outliers. I'm excluding

I have a set of data containing outliers based on a median and mean. The data is all in one column and the median and mean are each calculated in one cell via the average and mean formulas. in another column, if a value is an outlier i have it marked as "high" "low" or "" depending on whether its high, low, or not an outlier. What i would like to do is have the mean and median functions which currently look like =AVERAGE(A4:A32) exclude data that has "high" or "low" in the same row B column.

Thanks!

I can't see the forest through the trees on this one. My spreadsheet is designed to calculate waiting periods between each step of a multi-step process, i.e. Person A makes an appointment with GP, date of appointment, waiting time? Referral to specialist, date of appointment, waiting time? Diagnosis, date of procedure, waiting time. I am sure you get the drift.

My waiting time calculations utilise the NETWORKDAYS function - 1 and eliminate outliers created by empty cells with =IF(AND(F16

Hi there,
I have a worksheet containing data in columns. For each column, I would like to calculate the standard deviation of the mid-95% of the values i.e. 2.5th percentile to 97.5th percentile (to reduce the effect of "outliers").

So first of all I calculate the values of the 2.5th and 97.5th percentiles:

A102 (2.5th percentile) = PERCENTILE(A1:A100,0.025)
A103 (97.5th percentile) = PERCENTILE(A1:A100,0.975)

Then using an array formula shamelessly plagiarized from this very website, I calculate the standard deviation of the values that lie in that range:

{=STDEV(IF((A1:A100>=A102)*(A1:A100

Does excel have a calculation for Winsorising or Winsorization

It's a statistical calculation to round up or down outliers vs trimming or removing them from the data pool.

Thanks

Hi,
I'm having a problem with my boxplots and they don't seem to show the correct position of the box itself in regard to outliers and Q1 & Q3 etc. Also I would like to narrow them down a bit if possible.

If anyone would also like to critique my other charts ie have I done them properly I would be very grateful to know.

Cheers
John

A lot of times I will have a table of financial ratios wherein there is a median value calculated as the last column. We will sometimes exclude values in the table if they are outliers. Our convention is to bold those items and then exclude that cell from the formula.

What I would like to be able to do is select the median formulas and then run a macro that would take that selection, look at the formulas in the selection and then select all of the cells that the formulas take into consideration when calculating the median values.

I would then be able to very quickly see that all of the formulas were updated properly. You can go down the list of median values manually, but it is cumbersome with a long list.

The code I have now is below. What I am struggling with is a way to determine the range the median formulas reference and then how to select that total range.

Any help with this would be appreciated. Maybe there is an easier way to accomplish the same thing.

Sub ShowRanges()
Dim rngCell As Range
Dim rngFormulaCellsOnly As Range,
Dim rngResults As Range

' Select only cells with formulas.
Set rngFormulaCellsOnly = Selection.SpecialCells(xlCellTypeFormulas)

' Loop through all the currently selected cells that contain formulas.
For Each rngCell In rngFormulaCellsOnly

' Look at formual in current cell and add to rngResults
' This is the part I am struggling with.

Next rngCell

' Select the cells
rngResults.Select

End Sub

I would like to do standard deviation on the results from my chemistry coursework to identify the outliers, but I have no clue how to do it.

1.0M 1.2M 1.4M 1.6M 1.8M 2.0M
0 0 0 0 0 0
8 11 12 19 21 35
15 22 23 37 45 65
21 30 34 52 62 85
26 40 45 68 67 85
34 47 57 81 80 90
39 57 68 83 87 90
45 65 77 84 89 90
51 73 82 84 89 90
66 79 85 84 89 90
62 82 86 84 89 90
67 85 86 84 89 90
76 85 86 84 89 90

0 0 0 0 0 0
5 9 11 9 18 22
10 20 26 26 41 42
19 31 39 44 61 59
25 41 51 55 79 72
32 54 60 66 89 79
39 62 66 74 90 85
45 69 72 80 91 86
51 75 79 86 91 87
59 79 86 90 91 89
62 85 90 94 91 90
67 85 93 94 91 91
71 85 93 94 91 91

0 0 0 0 0 0
7 10 11 14 20 30
14 21 24 32 37 59
20 32 35 46 56 75
27 42 47 60 68 82
35 49 58 71 80 92
39 61 70 78 90 96
44 67 74 82 93 96
50 74 80 86 95 96
57 79 85 91 95 96
62 84 89 90 95 96
66 85 89 90 95 96
73 86 89 90 95 96

As you can see, I did three repeats. I took the data every five seconds upto one minute.

Any help would be greatly appreciated.

Many Thanks,
Tom

Hi.

How can i calculate the future date automatically using word?

I have a mail merge letter asking for the recipients to respond by a certain date How can i get Word to calculate a future date automatically though? I have today's date and all the names and addresses inserted automatically....i am missing this one final piece though!

I have found other strings on the topic, but they have attachments that i don't seem to be able to open.

Greetings.

I need to determine a formula which will allow me to calculate a future date based upon a current date with varying time periods.

For example:

I have a bill which is paid on the 15th and last business day of each month. I would like to be able to see the next due date regardless of what day of the week it is.

I have a bill which is paid every other Tuesday. I would like to know the next due date without having to enter +14 for every due date in the future. In other words, it is preferable to be able to open the spreadsheet and automatically see the next due date, not use autofill to repeatedly add +14 to a previous date which would limit the # of future due dates that could be calculated.

I have a bill which is paid on the last business day of each month, not the last Friday of each month. I would need excel to return a value for the last day of the month which = Monday-Friday, regardless of what day of the week it may be as long as it isn't Saturday or Sunday(holiday exclusion would be nice but not required).