Change Cell Value Average As Weeks Progress

alexfooty

Board Regular
Joined
Dec 30, 2018
Messages
97
Office Version
  1. 2016
Platform
  1. Windows
Hi

From the images below this is what I am trying to do - with either VBA or formula.

The value for Week 1 in cell AJ42 to equal the Week 1 average in cell AV40
Similarly, Weeks 2 & 3 in cells AJ44 & AJ46 to equal the averages in cells AV41 & AV42 respectively.

However, as in the second image, when the next Week 1 in cell AN43 becomes populated, I would like cell AJ42 to equal
the average in cell AV43. The same would apply to Weeks 2 & 3 as the weeks progress.

The table covers rows 40 through to row 73.

Hope someone can understand this - any help would be greatly appreciated.

Image 1.png



Image 2.png
 

Excel Facts

Create a chart in one keystroke
Select the data and press Alt+F1 to insert a default chart. You can change the default chart to any chart type
How about
+Fluff New.xlsm
HIJKLMNOPQRSTUV
1
2
3Week 103/08/20201011121314151613
4Week 140Week 210/08/20202021222324252623
5Week 317/08/20203031323334353633
6Week 223Week 124/08/20204040
7Week 231/08/2020 
8Week 333Week 307/09/2020 
9Week 114/09/2020 
10Week 221/09/2020 
11Week 328/09/2020 
Master
Cell Formulas
RangeFormula
J4J4=LOOKUP(2,1/(N3:N11<>"")/(L3:L11=I4),V3:V11)
J6J6=LOOKUP(2,1/(N3:N11<>"")/(L3:L11=I6),V3:V11)
J8J8=LOOKUP(2,1/(N3:N11<>"")/(L3:L11=I8),V3:V11)
V3:V11V3=IF(N3="","",AVERAGE(N3:T3))
 
Upvote 0
Fluff - What a star performer you are. Works admirably - just what I needed again. Many thanks
 
Upvote 0
You're welcome & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,214,593
Messages
6,120,434
Members
448,961
Latest member
nzskater

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