Average Formulas with 3 ranges to average as data is added weekly

PMRetired2012

Board Regular
Joined
Aug 6, 2019
Messages
123
What I need to do is have a Formula in the cell that says "Kids YTD adverag" that will show the average of ranges B4:AL4 and B6:AL6 and B8:AL8 as data is placed in the cells for each week.
Another words what is want is as we move thru the dates (10-3 thru 6-22) we get a adverage YTD for all those ranges. The answer will show up in the Kids YTD average or Cell AE24.

Thanks

1634004573416.png
 

Excel Facts

Format cells as date
Select range and press Ctrl+Shift+3 to format cells as date. (Shift 3 is the # sign which sort of looks like a small calendar).
How about
Excel Formula:
=AVERAGE(B4:AL4,B6:AL6,B8:AL8)
 
Upvote 0
How about
Excel Formula:
=AVERAGE(B4:AL4,B6:AL6,B8:AL8)
Fluff that didnt work either. what i think people are forgetting is as the the weeks go accross and data is being put in that you have to average by the number of weeks data is entered. Example: 3 weeks of data would be divided be 3 4 weeks by 4. and also all ranges would have to be added up and then averaged. i belive that is how you would find the average attendance of all 3 ranges.
 
Upvote 0
To me the average is the sum of all numbers, divided by how many numbers there are. If that is not you want, then you need to explain, along with some sample data, showing more than one column (preferably not an image).

Also please update your account details to show which version of Excel you are using.
 
Upvote 0
To me the average is the sum of all numbers, divided by how many numbers there are. If that is not you want, then you need to explain, along with some sample data, showing more than one column (preferably not an image).

Also please update your account details to show which version of Excel you are using.
To me the average is the sum of all numbers, divided by how many numbers there are. If that is not you want, then you need to explain, along with some sample data, showing more than one column (preferably not an image).

Also please update your account details to show which version of Excel you are using

That image has all the data you need !!! Average in this case needs to show a running average total for each week and will be divided by the number of weeks the way i see it. The first week 10-13 average should be 27 because you have only one week to figure on. that is the way i see it.
also how do i add a sheet with sample data on it?
im using excel 365.
 
Upvote 0
The image has one weeks worth of data, so we cannot see what you expect for more than one week & the formula I suggested returns the same number as your image for AE24, which is what you asked for. So no ,That image does not have all the data I need.
You can post sample data to the board with the XL2BB add-in. Instructions on using this tool can be found here: XL2BB Add-in

Note that there is also a "Test Here” forum on this board. This is a place where you can test using this tool (or any other posting techniques that you want to test) before trying to use those tools in your actual posts.
 
Upvote 0
The image has one weeks worth of data, so we cannot see what you expect for more than one week & the formula I suggested returns the same number as your image for AE24, which is what you asked for. So no ,That image does not have all the data I need.
You can post sample data to the board with the XL2BB add-in. Instructions on using this tool can be found here: XL2BB Add-in

Note that there is also a "Test Here” forum on this board. This is a place where you can test using this tool (or any other posting techniques that you want to test) before trying to use those tools in your actual posts.

Fluff,. I Think i did this right.
The cell that has the wrong formula is AE24. what i want to happen is the same type formula that is used in cell AH24. If you will notice Cell AH24 only uses 1 row to average. that is (35+24+2) and the = 51 and the answer is based on 3 weeks entries.
What is want to do is use 3 rows totals (all data entries) and divide them by 3 weeks to come up with a average only on the the rows. (Rows: B6:AL6, B8:AL8, B10:AL10)

Thanks


Cell Formulas
RangeFormula
B1B1='BUTTON PAGE'!F34
C1:AL1C1=B1+7
B4:AL4B4=SUM(NURSERY!B33)
B6:AL6B6=SUM('PRE K & K:5TH & 6TH GIRLS'!B33)
B8B8=SUM('7TH & 8TH'!B33)
B10:AL10B10=SUM('9TH - 12TH'!B33)
B14:AL14B14=SUM('NURSERY:9TH - 12TH'!B40)
B16:AL16B16=SUM(WORKERS!B40)
B18:AL18B18=SUM(VISITORS!B40)
B20:AL20B20=SUM(B3:B19)
AE24AE24=IF(ISNUMBER(AVERAGEIF(B4:B8,">0")),AVERAGEIF(B4:B8,">0"),"0")
AH24AH24=IF(ISNUMBER(AVERAGEIF(B20:AL20,">0")),AVERAGEIF(B20:AL20,">0"),"0")
B24B24=IFERROR(AVERAGEIF(B4:E4,">0"),"0")
B25B25=IFERROR(AVERAGEIF(B6:E6,">0"),"0")
B26B26=IFERROR(AVERAGEIF(B8:E8,">0"),"0")
B27B27=IFERROR(AVERAGEIF(B10:D10,">0"),"0")
B28B28=IFERROR(AVERAGEIF(B12:E12,">0"),"0")
B29B29=IFERROR(AVERAGEIF(B14:E14,">0"),"0")
B30B30=IFERROR(AVERAGEIF(B16:E16,">0"),"0")
E24E24=IFERROR(AVERAGEIF(F4:I4,">0"),"0")
E25E25=IFERROR(AVERAGEIF(F6:I6,">0"),"0")
E26E26=IFERROR(AVERAGEIF(F8:I8,">0"),"0")
E27E27=IFERROR(AVERAGEIF(F10:I10,">0"),"0")
E28E28=IFERROR(AVERAGEIF(F12:I12,">0"),"0")
E29E29=IFERROR(AVERAGEIF(F14:I14,">0"),"0")
E30E30=IFERROR(AVERAGEIF(F16:I16,">0"),"0")
H24H24=IFERROR(AVERAGEIF(J4:N4,">0"),"0")
H25H25=IFERROR(AVERAGEIF(J6:N6,">0"),"0")
H26H26=IFERROR(AVERAGEIF(J8:N8,">0"),"0")
H27H27=IFERROR(AVERAGEIF(J10:N10,">0"),"0")
H28H28=IFERROR(AVERAGEIF(J12:N12,">0"),"0")
H29H29=IFERROR(AVERAGEIF(J14:N14,">0"),"0")
H30H30=IFERROR(AVERAGEIF(J16:N16,">0"),"0")
K24K24=IFERROR(AVERAGEIF(O4:R4,">0"),"0")
K25K25=IFERROR(AVERAGEIF(O6:R6,">0"),"0")
K26K26=IFERROR(AVERAGEIF(O8:R8,">0"),"0")
K27K27=IFERROR(AVERAGEIF(O10:R10,">0"),"0")
K28K28=IFERROR(AVERAGEIF(O12:R12,">0"),"0")
K29K29=IFERROR(AVERAGEIF(O14:R14,">0"),"0")
K30K30=IFERROR(AVERAGEIF(O16:R16,">0"),"0")
N24N24=IFERROR(AVERAGEIF(S4:V4,">0"),"0")
N25N25=IFERROR(AVERAGEIF(S6:V6,">0"),"0")
N26N26=IFERROR(AVERAGEIF(S8:V8,">0"),"0")
N27N27=IFERROR(AVERAGEIF(S10:V10,">0"),"0")
N28N28=IFERROR(AVERAGEIF(S12:V12,">0"),"0")
N29N29=IFERROR(AVERAGEIF(S14:V14,">0"),"0")
N30N30=IFERROR(AVERAGEIF(S16:V16,">0"),"0")
Q24Q24=IFERROR(AVERAGEIF(W4:AA4,">0"),"0")
Q25Q25=IFERROR(AVERAGEIF(W6:AA6,">0"),"0")
Q26Q26=IFERROR(AVERAGEIF(W8:AA8,">0"),"0")
Q27Q27=IFERROR(AVERAGEIF(W10:AA10,">0"),"0")
Q28Q28=IFERROR(AVERAGEIF(W12:AA12,">0"),"0")
Q29Q29=IFERROR(AVERAGEIF(W14:AA14,">0"),"0")
Q30,T30Q30=IFERROR(AVERAGEIF(X16:AA16,">0"),"0")
T24T24=IFERROR(AVERAGEIF(AB4:AE4,">0"),"0")
T25T25=IFERROR(AVERAGEIF(AB6:AE6,">0"),"0")
T26T26=IFERROR(AVERAGEIF(AB8:AE8,">0"),"0")
T27T27=IFERROR(AVERAGEIF(AB10:AE10,">0"),"0")
T28T28=IFERROR(AVERAGEIF(AB12:AE12,">0"),"0")
T29T29=IFERROR(AVERAGEIF(AB14:AE14,">0"),"0")
W24W24=IFERROR(AVERAGEIF(AF4:AI4,">0"),"0")
W25W25=IFERROR(AVERAGEIF(AF6:AI6,">0"),"0")
W26W26=IFERROR(AVERAGEIF(AF8:AI8,">0"),"0")
W27W27=IFERROR(AVERAGEIF(AF10:AI10,">0"),"0")
W28W28=IFERROR(AVERAGEIF(AF12:AI12,">0"),"0")
W29W29=IFERROR(AVERAGEIF(AF14:AI14,">0"),"0")
W30W30=IFERROR(AVERAGEIF(AF16:AI16,">0"),"0")
Z24Z24=IFERROR(AVERAGEIF(AJ4:AL4,">0"),"0")
Z25Z25=IFERROR(AVERAGEIF(AJ6:AL6,">0"),"0")
Z26Z26=IFERROR(AVERAGEIF(AJ8:AL8,">0"),"0")
Z27Z27=IFERROR(AVERAGEIF(AJ10:AL10,">0"),"0")
Z28Z28=IFERROR(AVERAGEIF(AJ12:AL12,">0"),"0")
Z29:Z30Z29=IFERROR(AVERAGEIF(AJ14:AL14,">0"),"0")
AC24AC24=IF(ISNUMBER(AVERAGEIF(B4:AL4,">0")),AVERAGEIF(B4:AL4,">0"),"0")
AC25AC25=IF(ISNUMBER(AVERAGEIF(B6:AL6,">0")),AVERAGEIF(B6:AL6,">0"),"0")
AC26AC26=IF(ISNUMBER(AVERAGEIF(B8:AL8,">0")),AVERAGEIF(B8:AL8,">0"),"0")
AC27AC27=IF(ISNUMBER(AVERAGEIF(B10:AL10,">0")),AVERAGEIF(B10:AL10,">0"),"0")
AC28AC28=IF(ISNUMBER(AVERAGEIF(B12:AL12,">0")),AVERAGEIF(B12:AL12,">0"),"0")
AC29AC29=IF(ISNUMBER(AVERAGEIF(B14:AL14,">0")),AVERAGEIF(B14:AL14,">0"),"0")
AC30AC30=IF(ISNUMBER(AVERAGEIF(B16:AL16,">0")),AVERAGEIF(B16:AL16,">0"),"0")
 
Upvote 0
Thanks for that, from your original image we had no way of knowing the the "blank" cells actually contain a 0.
Will the odd numbered rows be empty, or do they have something in them?
 
Upvote 0

Forum statistics

Threads
1,214,585
Messages
6,120,391
Members
448,957
Latest member
Hat4Life

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