Smoothing Data

rcarmichael

New Member
Joined
Aug 10, 2012
Messages
29
Office Version
  1. 2016
Platform
  1. Windows
Good evening,
I am trying to remove outliers from a list of values, replacing them with a smooth transition from those values which are not outliers.
Is there an Excel Formula or Power Query method I can use to achieve this?
Example:
Original ValueSmoothed Result (apx.)
2828
3030
2727
2929
11531
3232
4040
11938
13239
3737
2727
3030

Any help is greatly appreciated.
Sincere regards,
 

Excel Facts

What does custom number format of ;;; mean?
Three semi-colons will hide the value in the cell. Although most people use white font instead.
This almost gives you what you want in 365.
Book1
AB
1
22828
33030
42727
52929
611530.5
73232
84040
911938.5
1013238.5
113737
122727
133030
Sheet3
Cell Formulas
RangeFormula
B2:B13B2=LET( n,$A$2:$A$13,m,A2,x,XMATCH(m,n), out,1.5*(QUARTILE.INC(n, 3)-QUARTILE.INC(n, 1)), t,TAKE(n,x-1),a,XLOOKUP(TRUE,t<out,t,,,-1), d,DROP(n,x),b,XLOOKUP(TRUE,d<out,d), IF(m>out,AVERAGE(a,b),m) )
 
Upvote 1
Solution
You're welcome. Minot changes and this gives you exactly what is shown in the OP.
Book1
AB
22828
33030
42727
52929
611531
73232
84040
911939
1013238
113737
122727
133030
Sheet3
Cell Formulas
RangeFormula
B2:B13B2=LET( n,$A$2:$A$13,m,A2,a,B1, out,1.5*(QUARTILE.INC(n, 3)-QUARTILE.INC(n, 1)), d,DROP(n,XMATCH(m,n)),b,XLOOKUP(TRUE,d<out,d), IF(m>out,ROUND(AVERAGE(a,b),0),m) )
 
Upvote 0

Forum statistics

Threads
1,221,814
Messages
6,162,135
Members
451,744
Latest member
outis_

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