+ Reply to Thread
Results 1 to 17 of 17

Summing a Range of Grades

  1. #1
    Registered User
    Join Date
    01-29-2008
    Posts
    68

    Summing a Range of Grades

    I've got grades A+ through F which I've assigned a numerical value in a table. I would like to sum those grades using the table as the reference. I know that I could use a sumproduct but I'm think there has to be a quicker way using a vlookup or index. I've attached a sample sheet. Any help would be greatly appreciated.Grade Calculation Sample.xlsGrade Calculation Sample.xls
    Last edited by kgibson20; 04-26-2012 at 04:21 PM.

  2. #2
    Forum Expert dilipandey's Avatar
    Join Date
    12-05-2011
    Location
    Dubai, UAE
    MS-Off Ver
    1997 - 2016
    Posts
    8,191

    Re: Summing a Range of Grades

    Hi Kgibson,

    Use the below formula in cell P2 and drag towards right... thanks.

    =VLOOKUP(H2,tables!$A:$B,2,0)

    Regards,
    DILIPandey

    <click on below 'star' if this helps>
    DILIPandey, Excel rMVP
    +919810929744 (India), +971528225509 (Dubai), [email protected]

  3. #3
    Registered User
    Join Date
    01-29-2008
    Posts
    68

    Re: Summing a Range of Grades

    Unfortunately space will be a consideration and I need for the process to take up on cell. I know I can do it with a sumproduct but thats a rather large formula.

  4. #4
    Forum Expert dilipandey's Avatar
    Join Date
    12-05-2011
    Location
    Dubai, UAE
    MS-Off Ver
    1997 - 2016
    Posts
    8,191

    Re: Summing a Range of Grades

    Okay.. which cell do you want to have the formula in ?
    And with reference (seeing critieria) of which cell ?

    Regards,
    DILIPandey

    <click on below 'star' if this helps>

  5. #5
    Forum Expert Cutter's Avatar
    Join Date
    05-24-2004
    Location
    Ontario,Canada
    MS-Off Ver
    Excel 2010
    Posts
    6,451

    Re: Summing a Range of Grades

    My solution would be:

    Reverse your table so that F is at top and A+ at bottom (easily done by selecting both columns and sorting second column ascending).

    Now you can use this array formula:
    =SUM(MATCH(H2:O2,tables!$A$3:$A$15,0)) entered with Ctrl+Shift+Enter

    and copied down.
    It makes use of the positions of the grades - regardless of the points awarded for the grades so if you change the points this would not work.
    Last edited by Cutter; 04-26-2012 at 03:41 PM.

  6. #6
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: Summing a Range of Grades

    Sort your grade table ascending ...

    Please Login or Register  to view this content.
    Then in P2 and copy down,

    =INDEX(tables!$A$3:$A$15, MATCH(SUM(SUMIF(tables!$A$3:$A$15, QB!H2:O2, tables!$B$3:$B$15))/COUNTA(QB!H2:O2), tables!$B$3:$B$15))

    That formula MUST be confirmed with Ctrl+Shift+Enter.

    Brought to you by DLL
    Last edited by shg; 04-26-2012 at 03:46 PM.
    Entia non sunt multiplicanda sine necessitate

  7. #7
    Registered User
    Join Date
    01-29-2008
    Posts
    68

    Re: Summing a Range of Grades

    Cutter - I placed the formula directly to the right of the grades and it worked to a degree. It came back 7 higher than it was supposed to be. Any idea why?

  8. #8
    Forum Expert Cutter's Avatar
    Join Date
    05-24-2004
    Location
    Ontario,Canada
    MS-Off Ver
    Excel 2010
    Posts
    6,451

    Re: Summing a Range of Grades

    If you're talking about my formula - I put it in P2 and it returns 38. I believe that is the correct answer.

  9. #9
    Registered User
    Join Date
    01-29-2008
    Posts
    68

    Re: Summing a Range of Grades

    Quote Originally Posted by shg View Post
    Sort your grade table ascending ...

    Please Login or Register  to view this content.
    Then in P2 and copy down,

    =INDEX(tables!$A$3:$A$15, MATCH(SUM(SUMIF(tables!$A$3:$A$15, QB!H2:O2, tables!$B$3:$B$15))/COUNTA(QB!H2:O2), tables!$B$3:$B$15))

    That formula MUST be confirmed with Ctrl+Shift+Enter.

    Brought to you by DLL
    It returned a D+. I'm looking to see what needs to be switch around. If you know please let me know

  10. #10
    Forum Expert Cutter's Avatar
    Join Date
    05-24-2004
    Location
    Ontario,Canada
    MS-Off Ver
    Excel 2010
    Posts
    6,451

    Re: Summing a Range of Grades

    Were you using my original formula to get the wrong answer? The one I deleted? I replaced it with a corrected one. See Post #5 and note the sorting change to your table.


    =SUM(MATCH(H2:O2,tables!$A$3:$A$15,0)) entered with Ctrl+Shift+Enter

  11. #11
    Registered User
    Join Date
    01-29-2008
    Posts
    68

    Re: Summing a Range of Grades

    I keep re -doing it and I keep coming up with a 76. Does it mater if the table gets sorted?

  12. #12
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: Summing a Range of Grades

    The average of those grades is 4.75, which is a D+.

  13. #13
    Forum Expert Cutter's Avatar
    Join Date
    05-24-2004
    Location
    Ontario,Canada
    MS-Off Ver
    Excel 2010
    Posts
    6,451

    Re: Summing a Range of Grades

    I wouldn't have told you to re-sort it if it didn't matter.

  14. #14
    Registered User
    Join Date
    01-29-2008
    Posts
    68

    Re: Summing a Range of Grades

    Ok I see, I didn't get that. i was thinking still along the lines of a vlookup. Is there no way to set it up to where the values associated with the grades can be changed?

  15. #15
    Registered User
    Join Date
    01-29-2008
    Posts
    68

    Re: Summing a Range of Grades

    Sorry I didn't see the sort part the first time. Thanks for the help.

  16. #16
    Registered User
    Join Date
    01-29-2008
    Posts
    68

    Re: Summing a Range of Grades

    Thats not what I was originally going for but I'm going to use that as part of my analysis. Thanks for the formula.

  17. #17
    Forum Expert Cutter's Avatar
    Join Date
    05-24-2004
    Location
    Ontario,Canada
    MS-Off Ver
    Excel 2010
    Posts
    6,451

    Re: Summing a Range of Grades

    You can take part of shg's formula:

    =SUM(SUMIF(tables!$A$3:$A$15, QB!H2:O2, tables!$B$3:$B$15)) also array entered (C+S+E)

    and using that part only does not require re-sorting your table - it can be sorted either way

+ 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