Solved

How do I calculate average Cycletime?

Posted on 2011-09-16
8
785 Views
Last Modified: 2012-05-12
Hello experts:

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.  

Help?

Gary
Cycletime-Avg-per-Zone-EE-2.xls
0
Comment
Question by:garyrobbins
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
8 Comments
 
LVL 7

Expert Comment

by:BusyMama
ID: 36551565
That is providing the average.

You are adding up the cycle time for each zone in the formulas below (with the SUMIF).
0
 
LVL 7

Expert Comment

by:BusyMama
ID: 36551605
Disregard my last comment.  :P

I will look more later, unless somebody else posts before I do, which is fine.
0
 
LVL 7

Expert Comment

by:BusyMama
ID: 36551694
I think there's something funky with the original averaging ...

Here I used AVERAGEIF and AVERAGE instead, and it seems reasonable to me.
Cycletime-Avg-per-Zone-EE-2-1-.xls
0
Online Training Solution

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action. Forget about retraining and skyrocket knowledge retention rates.

 

Author Comment

by:garyrobbins
ID: 36551780
Hi, BusyMama.

This looks like the right answer.  I like AVERAGEIF (never used it before).  What is the prefix (_xlfn.)??

Gary
0
 

Author Comment

by:garyrobbins
ID: 36552060
Experts:

This AVERAGEIF doesn't work in Excel 2003.  Creates #NAME? errors.

What would?

Gary
0
 
LVL 50

Accepted Solution

by:
barry houdini earned 500 total points
ID: 36552343
Hello Gary,

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

=SUMIF(B$2:B$8,B16,C$2:C$8)/MAX(1,COUNTIF(B$2:B$8,B16))

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

=AVERAGE(IF($A$3:$A$10037=A10045,IF($B$3:$B$10037<>"",$B$3:$B$10037)))

confirmed with CTRL+SHIFT+ENTER

or this ordinary formula

=SUMIF($A$3:$A$10037,A10045,$B$3:$B$10037)/SUMPRODUCT(($A$3:$A$10037=A10045)*($B$3:$B$10037<>""))

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

regards, barry


27312687.xls
0
 
LVL 93

Expert Comment

by:Patrick Matthews
ID: 36552353
AVERAGEIF debuted in Excel 2007.  You need an array formula for earlier versions of Excel.  Assuming this goes into B10045:

{=AVERAGE(IF($A$3:$A$10037=A10045,$B$3:$B$10037,""))}

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
 

Author Closing Comment

by:garyrobbins
ID: 36552395
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

On Demand Webinar - Networking for the Cloud Era

This webinar discusses:
-Common barriers companies experience when moving to the cloud
-How SD-WAN changes the way we look at networks
-Best practices customers should employ moving forward with cloud migration
-What happens behind the scenes of SteelConnect’s one-click button

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This tutorial explains how to create a series of drop-down lists that are dependent upon prior selections to guide (“force”) the user to make the correct selection and reduce data errors within Microsoft Excel. Excel 2010 was used for this tutorial;…
Excel can be a tricky bit of software to get your head around. Whilst you’ll be able to eventually get to grips with the basic understanding of how to get by, there are a few Excel tips that not everybody will even know about let alone know how to d…
This Micro Tutorial will demonstrate how to use longer labels with horizontal bar charts instead of the vertical column chart.
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

627 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question