Rolling average

ssh99

New Member
Joined
Oct 25, 2020
Messages
30
Office Version
  1. 2010
Platform
  1. Windows
  2. MacOS
I need a rolling average in cell AA4-AA6 for data from the last 6 months covering columns C to Z.

Each month data may be added to the next column which is why I have specified a range.

There are some months where there is no data available.

The spreadsheet can be accessed on the following link: Template.xlsx

Any help would be grately appreciated! I've been searching for a solution using the OFFSET formula for hours but it is not working,
 
I tested the code again on the Template you provided (saved as macro-enabled file) and the code from post #2 works fine for me. I've attached a link to the file for you to try.

Template.xlsm

I only typed the function into the first 2 cells. Please try typing the formula:
Excel Formula:
=AVG6M()
into cell AA6 and let me know if it works for you.
 
Upvote 0

Excel Facts

Select a hidden cell
Somehide hide payroll data in column G? Press F5. Type G1. Enter. Look in formula bar while you arrow down through G.
I tested the code again on the Template you provided (saved as macro-enabled file) and the code from post #2 works fine for me. I've attached a link to the file for you to try.

Template.xlsm

I only typed the function into the first 2 cells. Please try typing the formula:
Excel Formula:
=AVG6M()
into cell AA6 and let me know if it works for you.
That worked, thank you!!!
 
Upvote 0

Forum statistics

Threads
1,215,128
Messages
6,123,206
Members
449,090
Latest member
bes000

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