+ Reply to Thread
Results 1 to 9 of 9

Average Weighted Grades with Blank Cells

  1. #1
    Registered User
    Join Date
    10-08-2012
    Location
    NC
    MS-Off Ver
    Excel 2013
    Posts
    39

    Average Weighted Grades with Blank Cells

    Hi, all! I'm trying to create a spreadsheet for my wife to easily average her 3rd grade class scores. As you can see from my example (below) students might miss a test due to an excused absence, etc., and these are simply left blank and not to be averaged into the overall score (although some test WILL be made up). Also, she typically drops the lowest score for a given semester by just "deleting" that score. So--I need for excel to ignore any blank cells and not include them in the average. Typically, this wouldn't be very much of a problem by just using the excel "average" command since it ignore blank cells. However...

    My wife is now using weighted test scores (as you can see, designated 1, 2 or 3), where a "1" counts the score one time in the average, "2" is counted twice in the overall average, and so-on. I found the "sumproduct" command for weighted averages, and it works great... if there are no blanks. The bad thing is, even if it ignored a blank score cell it still counts the "weight" column and thus lowers the score even more. The formula I was using was :

    =SUMPRODUCT(D4:R4,D$3:R$3)/SUM(D$3:R$3)

    I could go very basic and just enter each score the number of times it is counted, and get rid of the "weight" column. I did this initially, but since my wife isn't very fond of excel in the first place she felt it to be cumbersome.

    In short, I would like for the spreadsheet to be set up exactly as shown, but when creating the average I would like for it to ignore any blank cell when calculating the average of the scores. Any help would be greatly appreciated!!!

    Below is the screen capture:

    Capture2.jpg

  2. #2
    Forum Moderator vlady's Avatar
    Join Date
    09-22-2011
    Location
    Philippines - OLSHCO -Guimba-Nueva Ecija
    MS-Off Ver
    2021
    Posts
    4,361

    Re: Average Weighted Grades with Blank Cells

    Welcome to the forum. It is better to post a rela workbook than pictures.

    To Attach a File:

    1. Click on Go Advanced
    2. In the frame Attach Files you will see the button Manage Attachments
    3. Click the button.
    4. A new window will open titled Manage Attachments - Excel Forum.
    5. Click the Browse... button to locate your file for uploading.
    6. This will open a new window File Upload.
    7. Once you have located the file to upload click the Open button. This window will close.
    8. You are now back in the Manage Attachments - Excel Forum window.
    9. Click the Upload button and wait until the file has uploaded.
    10. Close the window and then click Submit.

    Regards,
    Vladimir
    I think people forget the word "THANK YOU!!!!" Do you still know it???

    There is a little star ( ADD REPUTATION ) below those person who helped you. Click it to say your "PRIVATE APPRECIATION TO THEIR EFFORT ON THEIR CONTRIBUTIONS "

    Regards,
    Vladimir

  3. #3
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,933

    Re: Average Weighted Grades with Blank Cells

    like vlady says a workbook would be better than a picture, you may just gat a picture back showing your answer.

    having said that maybe try playing around with averageif() ?

    =averageif(D4:R4,"<>"&0)
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  4. #4
    Registered User
    Join Date
    10-08-2012
    Location
    NC
    MS-Off Ver
    Excel 2013
    Posts
    39

    Re: Average Weighted Grades with Blank Cells

    I didn't think to upload the file... it seems most forums I'm on only allow pics!

    I can upload the file, but thus-far I have only two sets of student's grades in there. I'll just delete the names for privacy.

    Question, can you do weighted averages with the "averageif" command? That's the thing that is giving me heartburn. If I didn't have to average (weighted) the blank cells then I would have any problems...

    I'll work on getting the file uploaded, but feel free to post anything you find useful in the meantime. Thanks for the replies thus-far!
    Attached Files Attached Files
    Last edited by JonathanEngr; 10-09-2012 at 07:58 AM.

  5. #5
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    2016
    Posts
    14,675

    Re: Average Weighted Grades with Blank Cells

    Try using SUMIF as the divisor to sum the weights only when there's a score, i.e.

    =SUMPRODUCT(D4:R4,D$3:R$3)/SUMIF(D4:R4,"<>",D$3:R$3)
    Audere est facere

  6. #6
    Registered User
    Join Date
    10-08-2012
    Location
    NC
    MS-Off Ver
    Excel 2013
    Posts
    39

    Re: Average Weighted Grades with Blank Cells

    Daddylonglegs--

    Wow! I can't believe it was that simple. Thanks so much!!!

  7. #7
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,933

    Re: Average Weighted Grades with Blank Cells

    it wasnt...he is just the forum genius

  8. #8
    Registered User
    Join Date
    08-13-2010
    Location
    Toronto, Canada
    MS-Off Ver
    Excel 2007
    Posts
    6

    Re: Average Weighted Grades with Blank Cells

    First off, I found this thread really helpful. So thank you!
    Also I should probably be creating this question as a new thread, but all of the right people are involved in this one, and the question remains the same.
    I have run into a slightly more complicated situation that I would like some advice for. It is a scoring grid for community proposals.
    I have a similar grid, but instead of being rated out of 100, each category is ranked out of five (shown in blue). On top of this, within one of the weightings there is the possibility of varying the sub-weighting based on the number of activities included.

    I have used what I have taken from daddylonglegs in this thread and altered it minimally to try to meet the situation. It seems to be working. And I have no idea why! ) Or if it is just giving the appearance of working. Any advice is appreciated.
    Attached Files Attached Files

  9. #9
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,933

    Re: Average Weighted Grades with Blank Cells

    HI thomas, you were correct - you should have started you're own question it's against rule 2 to post a question in the thread of another member -- start your own thread. If you feel it's particularly relevant, provide a link to the other thread. It makes sense to have a new thread for your question because a thread with numerous replies can be off putting & difficult to pick out relevant replies.

    Thanks for you're understanding

+ 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