+ Reply to Thread
Results 1 to 3 of 3

calculating average in cells, not including zeros

  1. #1
    Registered User
    Join Date
    06-17-2008
    Posts
    11

    Angry calculating average in cells, not including zeros

    Hi guys

    Haven't posted on here before so excuse my ignorance.

    I am need of calculating the average of different cells (not in a line) that doesn't include zero values in working out the average.

    I am aware of the AVERAGEIF function but I still cannot get this function to work. Please see screen clip below while I explain.

    Capture.PNG

    I am trying to calculate grades for senior HPE students. The problem I am having is with Liam. as you can see he has been given scores for each criteria of his badminton assessment (numbers represent grades) but he missed his exam which results in a N (or not rated) grade for each criteria which in turn returns a zero score. In this instance I am trying to work out the average of his first term Acquire grades (13 for badminton and 0 for essay).

    I have used the formula =ROUND(+AVERAGEIF(C39,F39),"<>0") but I keep gettin DIV/0! as the response.

    Obviously for some students they wont have zeros and some will have zeros in the first value and a number as the second.

    I have set up the spreadsheet that will
    - calculate separate criteria i.e. separate Acquire, separate Apply and separate Evaluate grades.
    - I also intend to do this cumulative by just working out term 1 averages first (two values) then working out term 1 and 2 averages next (4 values), term 1,2 and 3 averages nest (6 values)


    My question to you all is what formula can I use that will
    - allow me to calculate averages of a number of values (not running cells) that may include zero values (that I don't want included in avg)
    - will also round up the average to the nearest whole number


    I have tried for hours to try and work this one out!!

    any help would be awesome.

    thanks

  2. #2
    Forum Guru sktneer's Avatar
    Join Date
    04-30-2011
    Location
    Kanpur, India
    MS-Off Ver
    Office 365
    Posts
    9,655

    Re: calculating average in cells, not including zeros

    It should be like this.....

    Please Login or Register  to view this content.
    Regards
    sktneer


    Treat people the way you want to be treated. Talk to people the way you want to be talked to.
    Respect is earned NOT given.

  3. #3
    Forum Expert Ace_XL's Avatar
    Join Date
    06-04-2012
    Location
    UAE
    MS-Off Ver
    2016
    Posts
    6,074

    Re: calculating average in cells, not including zeros

    You need AVERAGEIFS since you intend to calculate separate criteria i.e. separate Acquire, separate Apply and separate Evaluate grades.

    =ROUND(AVERAGEIFS(C39:H39,C37:H37,"Acquire",C39:H39,"<>0"),2)

    If this does not help, please upload a sample worksheet with desired results
    Life's a spreadsheet, Excel!
    Say thanks, Click *

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] Average for non-consecutive cells excluding zeros (even when they all contain zeros)
    By pao13 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 11-05-2012, 04:32 PM
  2. Calculating an Average excluding Zeros across a workbook
    By KeiranMac in forum Excel General
    Replies: 8
    Last Post: 09-09-2009, 08:18 AM
  3. Calculating the Average of Every Nth Value, Excluding Zeros
    By tsaravan in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 08-31-2006, 06:24 AM
  4. [SOLVED] in excel, how do i get an average without including the zeros?
    By Season in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 01-27-2006, 06:40 PM
  5. [SOLVED] How do I average a column without including zeros
    By KMHarpe in forum Excel General
    Replies: 3
    Last Post: 08-11-2005, 11:21 AM

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