Exclude April from 3 month moving average

jwalkerday

New Member
Joined
May 1, 2018
Messages
18
I calculate a three-month moving average in hundreds of sheets using the formula below.

April (4) is always an anomaly so I want to exclude it from any affected averages. For example- for may's average, I want to use May, March and February. I looked at trimmean but I don't think that works in this instance.

Any ideas on how I could do this please?

Book1
ABCDEFGHIJKL
2MOVING AV3
3
4123456789101112
55456006501000625605617629641653665677
6
7545600598.3333750758.3333743.333333615.6667617629641653665
Sheet1
Cell Formulas
RangeFormula
A7:L7A7=IF(COLUMNS($A5:A5)<$B$2,A5,AVERAGE(OFFSET(A5,0,0,1,-$B$2)))
 

Excel Facts

Create a Pivot Table on a Map
If your data has zip codes, postal codes, or city names, select the data and use Insert, 3D Map. (Found to right of chart icons).

Forum statistics

Threads
1,136,632
Messages
5,676,888
Members
419,657
Latest member
ExcelAl1

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
Top