+ Reply to Thread
Results 1 to 4 of 4

Excell - Getting the average without taking into account zero and DIV/0

  1. #1
    Registered User
    Join Date
    01-20-2015
    Location
    Germany
    MS-Off Ver
    2010
    Posts
    4

    Excell - Getting the average without taking into account zero and DIV/0

    Hi,
    I posted this about a week ago in a German forum and so far havent received any answers to my question. So lets find our if you guys can help me which would be very appreciated.
    I have put all my students test results into the excel form attached and have put all necessary formulas into the table so that I (and the students) can see very easily who is doing fine and who does need some extra grinds. The problem is that from C29:C49 I try to have the table calculate the average of all results for each individual student. All together we will have about thirty tests this year so that since we dont have all these results yet i have a lot of zeros (the student didnt take the test) or DIV/O results (nobody has sat the test so far) in some of these boxes. When I try to have the table calculate the average for each student (in per cent) (with student no 1 this would be No.1 D29:AG29) it doesnt work because of the zeros and the div/o results. Does anyone know the formula I have to put into C29:C49 so that it'll work? If you can help this would be very much appreciated and if you ever happen to be in freiburg, germany I#ll take you to the beergarden and the beer is on me.
    Vielen Dank und Grüße
    Daniel
    Attached Files Attached Files

  2. #2
    Forum Expert Ron Coderre's Avatar
    Join Date
    03-22-2005
    Location
    Boston, Massachusetts
    MS-Off Ver
    2013, 2016, O365
    Posts
    6,996

    Re: Excell - Getting the average without taking into account zero and DIV/0

    Using your posted workbook...Here's what I'd do

    • Use this formula to calculate individual scores
    Please Login or Register  to view this content.
    Copy that formula across and down through AG49

    • Use this regular formula to calculate each average
    Please Login or Register  to view this content.
    Copy that formula down through C49

    Is that something you can work with?
    Ron
    Former Microsoft MVP - Excel (2006 - 2015)
    Click here to see the Forum Rules

  3. #3
    Registered User
    Join Date
    01-20-2015
    Location
    Germany
    MS-Off Ver
    2010
    Posts
    4

    Re: Excell - Getting the average without taking into account zero and DIV/0

    Hi Ron,
    thank you very much for your quick reply. unfortunately I dont seem to get it. I am really sorry but maybe I didnt describe the problem accurately enough in the first place.
    In order to get the first student's average (in percent) I need a formula for C29 that calculates the average from D30:AG29. This formula must be set up in a way that it doesn't take into account 0 (student didnt take the test) or DIV/O report (the test hasnt been written yet). once i have a formula that works for one student i would just use that for the column C29:C49.
    Thanks again for your help!
    dan

  4. #4
    Forum Expert Ron Coderre's Avatar
    Join Date
    03-22-2005
    Location
    Boston, Massachusetts
    MS-Off Ver
    2013, 2016, O365
    Posts
    6,996

    Re: Excell - Getting the average without taking into account zero and DIV/0

    Dan

    In my first post, the first formula needs a bit of editing.
    It should be this:
    Please Login or Register  to view this content.
    only calculates a value if D2 AND D6 are non-zero...otherwise it returns this text: n/a

    Copy that formula across and down through AG49
    Now, D29:AG49 will contain either a legitimate weighted value or text.

    Next, use this formula, copied down, to calculate the averages
    Please Login or Register  to view this content.
    Since the AVERAGE formula ignores text, it will calculate the correct averages.

    Is that something you can work with?

+ 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. using Countif but also taking into account multiplier values
    By rezarf26 in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 08-13-2014, 03:01 PM
  2. [SOLVED] Countif not taking entire cell into account.
    By Phixer in forum Excel Formulas & Functions
    Replies: 15
    Last Post: 05-27-2014, 01:31 PM
  3. Taking into account lead times ...
    By Turvy86 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 12-30-2009, 02:25 PM
  4. Paste without taking into account the hidden rows
    By chibouki in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 09-03-2008, 07:32 AM
  5. Taking in account additional rows
    By JB12 in forum Excel General
    Replies: 3
    Last Post: 12-27-2005, 02:10 PM

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