• sumproduct: 0 vs valid value (Excel 2010)

    Home » Forums » AskWoody support » Productivity software by function » MS Excel and spreadsheet help » sumproduct: 0 vs valid value (Excel 2010)

    • This topic has 3 replies, 4 voices, and was last updated 10 years ago.
    Author
    Topic
    #499901

    Hi All,

    Attached is a workbook that attempts to calculate a final letter grade.

    Before getting the letter grade, however, I need to take the letters associated with the individual assignments (cols B-G in row 1) and convert those to numbers. This should go in col N and then col N would be used in a lookup to get the final letter for col O. (The tables for going back and forth are in the sheet “Grade Conversion Tables.”)

    However, the formula in col N is not working. The first part makes sure that valid grades have been entered for the 6 assignments. That is working. Given that, the 2nd half starting with the SUMPRODUCT (and I’ve tried many variations including SUM) is supposed to compute the numerical value of the weighted assignment grades. That is not working.

    To isolate the 2nd half, I copied/pasted the formula (w/o an equal sign) to cell Q4, deleted the first part of the formula checking for valid grades, and just left the SUMPRODUCT. Still got 0 (answer should be 83.55).

    However when I copied/pasted the formula from Q4 to R4, and then converted each “array” (Array 1 is the OFFSET argument to get the numerical equivalents of the letters from the “Grade Conversion Table” sheet; Array 2 is the weights from B2:G2 of the Grades sheet) to numbers using F9 and not hitting ESC to convert back to arguments, I get a valid result.

    Moreover, I can see these 2 arrays of values if I highlight the part of the formula in Q4 and hit F9. So Q4 seems to be equivalent to R4 but the results are different.

    There are macros in the workbook, which work fine, that will calculate the final grade for col O but I wanted to see if I could do this w/o a macro.

    Suggestions?

    TIA

    Fred

    Viewing 2 reply threads
    Author
    Replies
    • #1504116

      Try this ARRAY entered formla if all grades are in CAPS

      =IF(COUNTA(B3:G3)<6,"more grades",CHAR(INT(SUM(IF(B3:G3″”,CODE(B3:G3))/COUNTA(B3:G3)))))

    • #1504117

      I expect/thought/wanted INDEXing to work for this, but I couldn’t get it to handle the array formula. SIGH.
      Maybe I did something wrong and will keep looking at it.

      I used this solution (attached) by a 2-row process and then sum the 2nd calculated row for the N3 cell.

      40572-Clip0001

    • #1504147

      Hi Fred,

      You can alter the formula to:

      =IF(SUM(1*ISNA(MATCH(B3:G3,tbl_valid_grades,0)))>0,”>= 1 bad”, SUMPRODUCT(N(OFFSET(tbl_ltr_to_nbr,MATCH(B3:G3,tbl_valid_grades,0)-1,1,1,1)),B$2:G$2))
      and it should work.

    Viewing 2 reply threads
    Reply To: sumproduct: 0 vs valid value (Excel 2010)

    You can use BBCodes to format your content.
    Your account can't use all available BBCodes, they will be stripped before saving.

    Your information: