+ Reply to Thread
Results 1 to 5 of 5

Sumproduct using blank cells

Hybrid View

Wskip49 Sumproduct using blank cells 12-18-2008, 10:49 AM
Ron Coderre Calc Cumulative Pct 12-18-2008, 11:03 AM
Wskip49 That gives me the same raw... 12-18-2008, 11:26 AM
Ron Coderre Effective Wgt Pcts 12-18-2008, 12:01 PM
Wskip49 Those Work Great. Thank you... 12-18-2008, 03:52 PM
  1. #1
    Forum Expert Ron Coderre's Avatar
    Join Date
    03-22-2005
    Location
    Boston, Massachusetts
    MS-Off Ver
    2013, 2016, O365
    Posts
    6,996

    Calc Cumulative Pct

    Looking at your posted workbook....
    I believe the problem is in cell AU9
    Try this:

    AU9: =SUMPRODUCT((0&F9:AT9)*(F12:AT12<>""))*100
    or...an alternative structure:
    AU9: =SUMPRODUCT(F9:AT9,--(F12:AT12<>""))*100
    Does that help?
    Last edited by Ron Coderre; 12-18-2008 at 11:06 AM. Reason: add an alternative formula
    Ron
    Former Microsoft MVP - Excel (2006 - 2015)
    Click here to see the Forum Rules

  2. #2
    Forum Contributor
    Join Date
    03-08-2007
    Location
    St. Augustine, Fl
    MS-Off Ver
    Excel 2021 for Mac
    Posts
    398
    That gives me the same raw score for B12 but for all the rest it want work. I think the variable in AU9 has to apply to all students. In the original file I have over 20 students listed.

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

    Effective Wgt Pcts

    I think I understand....

    IF...The Cumulative Weight Pct can be different for each student (based on
    whether they have a score for a particular item), then try this:

    Raw Score
    B12: =IF(COUNT(F12:AT12),ROUND(SUMPRODUCT($F$9:$AT$9,F12:AT12),2),"")
    
    Grade%
    C12: =IF(B12="","",B12/SUMIF(F12:AT12,"<>"&"",$F$9:$AT$9)/100)
    
    Ltr Grade
    D12: =IF(B12<>"",HLOOKUP(B12/SUMIF(F12:AT12,"<>"&"",$F$9:$AT$9)/100,
    GradeTable,2),"")
    
    GPA
    E12: =IF(B12<>"",HLOOKUP(B12/SUMIF(F12:AT12,"<>"&"",$F$9:$AT$9)/100,
    GradeTable,3),"")
    Copy those formulas down for each student.

    HOWEVER...if the Cumulative Weight Pct is static for ALL students and
    each pct is only used when ANY student has a score for that category,
    then: I'd put Effective Weight Pct formulas under each Weight Pct to
    determine if it's used or not:
    F10: =F9*(COUNTIF(F12:F13,"<>"&"")>0)
    Copy that formula across.
    AU10: =SUM(F10:AT10)*100
    Then you can use your original formulas, but reference $AU$10, instead of $AU$9.

    Does that help?

  4. #4
    Forum Contributor
    Join Date
    03-08-2007
    Location
    St. Augustine, Fl
    MS-Off Ver
    Excel 2021 for Mac
    Posts
    398
    Those Work Great. Thank you so much.

+ 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