+ Reply to Thread
Results 1 to 2 of 2

Average calculation

Hybrid View

  1. #1
    Registered User
    Join Date
    04-12-2006
    Posts
    3

    Question Average calculation

    In a spreadsheet I am working with, I am trying to come up with a formula to calculate an average, based on several variables. I want to know how many times any data (the data contained isn't important for this average) appears in row #21, then average it against the total number of rows containing any data. To give a little substance to this calculation, I am looking at employee evaluations. I want to know how often an employee, during their training phase, takes initiative on their own (reflected by a given evaluation in row #21 labeled, "self inititation") versus the total number of opportunities to do so (as reflected by the total number of rows containing any evaluation in all categories). For example, an employee comes to work and without being told to do so acts on a certain task, but then the very next task, they do because their supervisor tells them to. So in their evaluation, they would be given a rating in the "self initiation" category on the first task, but not on their second, therefore there would be no rating in that category but possibly other categories. So this employee's average in self initiation so far is 50%.

    Can someone help? I was previously working with the following formula when the total number of tasks completed was manually input in a particular cell of the worksheet (L2). I want to have a formular count the total, so it doesn't have to be manually done.

    =IF(ISERROR(AVERAGE(COUNT(B21:M21))/L2),"0%",AVERAGE(COUNT(B21:M21)/L2))

    Thanks in advance!

  2. #2
    Forum Contributor
    Join Date
    11-29-2003
    Posts
    1,203
    If I understand correctly, all you really need is a way to count the number of rows that are not blank, right?

    I do not know a way to do that without using another column. (But, you can hide the column if you don't want it messing with peoples' minds.)

    For argument's sake, make it Column Z. In that column, you would put this formula in each row that might contain data:
    =(COUNTBLANK(A1:M1)=COLUMNS(A1:M1))

    Then, this formula will tell you the number of non-blank rows:
    =COUNTIF(Z:Z,FALSE)

    Then, your average becomes:
    =IF(COUNTIF(Z:Z,FALSE)=0,"0%",AVERAGE(COUNT(B21:M21)/COUNTIF(Z:Z,FALSE)))

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1