+ Reply to Thread
Results 1 to 9 of 9

Ignore blanks for weighted grades

  1. #1
    Registered User
    Join Date
    11-16-2017
    Location
    Canada
    MS-Off Ver
    2013
    Posts
    9

    Question Ignore blanks for weighted grades

    Hello,

    I am relatively new to several functions in Excel and need some guidance on how to create a formula to calculate my students' weighted average even when some of the cells are blank (i.e. some grades are missing). I am currently using an old gradebook I created but it doesn't show actual grades until I populate all cells. The formula I have for the section in the picture below is:

    =(C6*100/$C$5)*$C$4+(D6*100/$D$5)*$D$4+(E6*100/$E$5)*$E$4+(F6*100/$F$5)*$F$4+(G6*100/$G$5)*$G$4+(H6*100/$H$5)*$H$4+(I6*100/$I$5)*$I$4+(J6*100/$J$5)*$J$4+(K6*100/$K$5)*$K$4+(L6*100/$L$5)*$L$4

    My goal is to use a function to calculate real grades even when not all cells contain data. You will notice in the picture that I have different weights and also not all projects are calculated out of 100. Any chance I can use a function to do what I want?

    Thanks in advance for any help you can provide!

    Projects.JPG
    Last edited by MSExcelLnr; 11-17-2017 at 12:00 AM.

  2. #2
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,420

    Re: Ignore blanks for weighted grades

    Please post a sample worbook, not a picture.
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  3. #3
    Registered User
    Join Date
    11-16-2017
    Location
    Canada
    MS-Off Ver
    2013
    Posts
    9

    Re: Ignore blanks for weighted grades

    Hi Trevor,

    Every time I click on the Attachment button nothing happens. Not sure if I'm doing anything wrong or missing something...

  4. #4
    Registered User
    Join Date
    11-16-2017
    Location
    Canada
    MS-Off Ver
    2013
    Posts
    9

    Re: Ignore blanks for weighted grades

    Let's see if this works, I am trying to attach the workbook.

    Names are fictitious for privacy reasons.
    Attached Files Attached Files

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

    Re: Ignore blanks for weighted grades

    Quote Originally Posted by MSExcelLnr View Post
    =(C6*100/$C$5)*$C$4+(D6*100/$D$5)*$D$4+(E6*100/$E$5)*$E$4+(F6*100/$F$5)*$F$4+(G6*100/$G$5)*$G$4+(H6*100/$H$5)*$H$4+(I6*100/$I$5)*$I$4+(J6*100/$J$5)*$J$4+(K6*100/$K$5)*$K$4+(L6*100/$L$5)*$L$4
    You could simplify that formula to this:

    =SUMPRODUCT(C6:L6/C$5:L$5,C$4:L$4)*100

    ....but what results do you expect when some cells are not populated - can you give an example for row 6?
    Audere est facere

  6. #6
    Registered User
    Join Date
    11-16-2017
    Location
    Canada
    MS-Off Ver
    2013
    Posts
    9

    Re: Ignore blanks for weighted grades

    Wow, that is so much better than my super long formula! Thank you

    As for your question, I want grades to be averaged based on what data is entered. If there are blank cells, they should be ignored from the average so the grade is the "real" grade as opposed to based on all projects. Does that make sense? Sorry I can't explain it better

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

    Re: Ignore blanks for weighted grades

    OK, just for the projects part you could try this formula in M6 copied down

    =IFERROR(SUMPRODUCT(C6:L6/C$5:L$5,C$4:L$4)*100*M$5/SUMIF(C6:L6,"<>",C$4:L$4),0)

    That will leave the results unchanged when all cells are populated, but if some projects are blank it will just calculate based on results so far, so if you only have 1 project completed but get 100 out of 100 then your score so far will be the maximum 15.00

    Is that what you need?

  8. #8
    Registered User
    Join Date
    11-16-2017
    Location
    Canada
    MS-Off Ver
    2013
    Posts
    9

    Re: Ignore blanks for weighted grades

    Yes, that is exactly what I needed thank you very much!

  9. #9
    Registered User
    Join Date
    11-16-2017
    Location
    Canada
    MS-Off Ver
    2013
    Posts
    9

    Re: Ignore blanks for weighted grades

    Hi there,

    I transferred the formula to a gradebook with more columns and weights but the problem now is I am not getting the correct grade for each category (Projects, Assignments, Tests). For example, in cell BN6 I should be getting 19.15 but the result is 17.82 and in cell BR6 the result should be 20.88 and I'm getting 25.06. The only row giving the correct grade is BW. I've been trying to figure out the problem for days and can't pin point the issue. Help, please!
    Attached Files Attached Files

+ 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. ignore blanks
    By Patcheen in forum Excel General
    Replies: 7
    Last Post: 07-21-2017, 08:53 AM
  2. Ignore the blanks
    By ailismanzoni in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 01-19-2017, 08:41 AM
  3. VBA code finds blanks, but how to write VBA to ignore non blanks?
    By hopegriffin in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-20-2016, 10:51 AM
  4. [SOLVED] Weighted Average of non-empty grades?
    By XLOOKUP in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 04-05-2016, 12:47 AM
  5. Weighted Average without blanks
    By zvot in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 08-06-2014, 12:28 PM
  6. [SOLVED] Weighted Average formula / SUMPRODUCT to ignore blank cells
    By macrorookie in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 07-17-2014, 08:05 PM
  7. [SOLVED] Average Weighted Grades with Blank Cells
    By JonathanEngr in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 01-14-2013, 02:25 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