See attached sample file. I used a good formula to calculate average cycletime based on one condition. The results suggest that the furmula I'm using for overall cycletime is inaccurate.
The original formula I suggested for the linked question is valid and worked OK for the sample data you showed because you didn't have any blanks, so in that formula
You sum all the rows that match a specific criteria and divide by the count of rows that match that specific criteria, that gives the average - technically that's still correct for your new data.....but it doesn't account for blank rows - if you want to ignore blanks then you need to sum all the rows that match the criteria but divide by a different number - all the rows that match the criteria but aren't blank - AVERAGEIF does that automatically as BusyMama demonstrates....but in Excel 2003 you need to either use an array formula with AVERAGE or a longer version of the formula I suggested previously, i.e. either this formula
both will give the same result as shown in the attached in columns D and E
I note that you are using SUBTOTAL to get the overall average - a simple AVERAGE function is easier - also I'm not sure why you are using those OFFSET functions - it's simpler to just refer to the ranges directly
To enter an array formula, do not enter the curly braces, and hit Ctrl+Shift+Enter instead of Enter to finish it off. Excel will then display those braces to indicate that it's an array formula.
Copy that down through B10051.
For "All", you can simply use:
=AVERAGE(B3:B10037)
0
garyrobbinsAuthor Commented:
Barry - thank you again for the "ordinary" formula and your thorough explanation, as usual. I'm sorry my first example was missleading.
I'm always learning new formulas. I like how EE saves previous questions for reference.
Thank you to others who attempted a solution.
Have a great weekend, wherever you are.
Gary
0
Featured Post
We value your feedback.
Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!
You are adding up the cycle time for each zone in the formulas below (with the SUMIF).