Help on a Average fomula

PMRetired2012

Board Regular
Joined
Aug 6, 2019
Messages
123
Lets try this again. What i have is a sheet setup with weekly amount entered in each cell. Going to give you a example.
J6:M6 equals the month of Novenber (4 weeks) im entering weekly attendance
in J6 & K6 i have 45 and 47..L6,M6 i have no numbers entered yet because we havent got to those weeks yet
What i want to have is a average of attendance based on each week and all the totals be put in Cell H32
Ehample: week 1 the averave to date would be 45 (in cell H32)
week 2 the average to date would be 46...(45+47=92..92/2=46) Cell H32 would change to 46
week 3 hasnt got here yet. but if we had 56 on week 3 the average would be 49..(45+47+56=148..148/3=49) Cell H32 would change to 49

so what i need is a formula that figures the running average for each week as i add attendences in cells J6:K6 and the answer show up in cell H32.

Home i made since on the post. i have tried this a couple times

Dennis
 

Excel Facts

Add Bullets to Range
Select range. Press Ctrl+1. On Number tab, choose Custom. Type Alt+7 then space then @ sign (using 7 on numeric keypad)
As long as later weeks are empty then AVERAGE will do this. (NOTE: The decimals can either be ignored with a format or you can wrap INT() around the formula).

Book1
HIJKLM
5November
6454756
7
8
31Average
3249.33333333
Sheet1
Cell Formulas
RangeFormula
H32H32=AVERAGE(J6:M6)
 
Upvote 0
Why when i put this formula in the cell H32 i show a answer of 37. Someting is not right with my excel or somthing .
That fromula does work for me not sure why. any ideas

Dennis
 
Upvote 0
What mine is doing is dividing it by 4 i think. what i need is it to divide by what week we are on...1,2,3,4

You must have null in M6 so it ignores week 4 but I suspect you have a zero

If you must have zero for as yet unused weeks then try:
=AVERAGEIF(J6:M6,">0")
 
Upvote 0
Toadstool,
The formula that you game me (=AVERAGEIF(J6:M6,">0")works great with the exception of when i put that formula in the december totals where there hasnt been any numbers for week 1-4 i get a error message.
Then error message is: Divide by 0 error. and i have ##### in Cells.
Is there any way you can fix that in the Formula?

Dennis
 
Upvote 0
If there are no entries for November then yes, you will get a divide by zero error.

The easiest way to stop this would be by trapping the error:
=IFERROR(AVERAGEIF(J6:M6,">0"),"")
 
Upvote 0

Forum statistics

Threads
1,215,032
Messages
6,122,772
Members
449,095
Latest member
m_smith_solihull

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