+ Reply to Thread
Results 1 to 5 of 5

Sumif with a division compared to a reference

  1. #1
    Registered User
    Join Date
    12-20-2012
    Location
    United Kingdom
    MS-Off Ver
    Excel 2016 & online version
    Posts
    23

    Sumif with a division compared to a reference

    Hi,

    Hoping for some help on a formula that we need to help grade our Maths students this year, only on topics that we have taught that are in the final tests, but allowing extra credit if they do score well on some of the topics not taught.

    I have attached a mock-up spreadsheet of the scenario. I have included 5 students, in the green on the right are their scores for each question. Above each question, there is a label of C or E standing for Core and Enhanced respectively. As well as the marks for that question. The 'Core' questions are those that we have taught the subject matter for, the 'Enhanced' are those we have not.

    I have got a formula working fine for calculating the students Core marks and Percentage, but it is the enhanced I am stuck on.

    The concept of the enhanced marks is that for each enhanced question that a student answers, it will only be counted in the total enhanced marks and percentage if it will improve their core percentage.

    So say for example a student has scored 8/16 on the core questions so has a core % of 50%. If they then scored 1/4 on an enhanced question, we will ignore this as it will lower their overall percentage. However, if they scored 3/4 of 4/4 on an enhanced question, then we would include it. So lets say the student scored 3/4, their enhanced mark would become 11/20 and enhanced percentage therefore 55%.

    I have entered in how the results should look manually, I have left blank the space that I have been using to try and make a formula to achieve this..

    I have been wondering from a bit of googling if maybe it should look something like this in cell F4

    =SUM(IF(ISNUMBER(1/H1:L1),IF(H2:L2="E",IF(H5:L5/H2:L2>C5,H5:L5))))

    I was hoping that this would first check if the question was an 'E' type question, then if that is the case, divide the mark scored by the mark available for the question and compare this result to the core percentage. If it was greater, include it in the sum.

    Once the formula for the mark is sorted, I would think the formula for the percentage should follow fairly easily.

    Any help would be very much appreciated.

    Thanks
    Tom
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    07-06-2004
    Location
    Northern California
    MS-Off Ver
    2K, 2003, 2010, O365
    Posts
    1,490

    Re: Sumif with a division compared to a reference

    Isn't it always best to determine what students have learned rather than what teachers have taught?

    Note: since the C4 formula includes *100, you have to divide it by 100 to use it in criteria with respect to scores from enhancement columns K and L.

    The enhanced calculations are easier using SUMPRODUCT.

    F4:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    G4:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    Select F4:G4 and fill down into F5:G8.

  3. #3
    Forum Expert etaf's Avatar
    Join Date
    10-22-2004
    Location
    Wittering, West Sussex, UK
    MS-Off Ver
    365 (Mac OSX) (16.92 (24120731))
    Posts
    9,085

    Re: Sumif with a division compared to a reference

    i used an IF
    but dont you want to compare , the C with the C+E to see % is greater
    so in first example
    total marks possible from H1:L1 is 20 5x4, s possible marks are 4 ,4,4,4,4
    and then the marks below for C and E , so H3:L3 4,3,4,1,4 C,C,C,E,E

    so we have 4,3,4 out of 4,4,4. = 11/16 as a percentage
    and then the total
    4,3,4,1,4 = 16 , out of 4,4,4,4,4 so 16/20 as a percentage
    and if the 2nd % is greater than the first use that

    BUT you show 15 in D4 & NOT 16
    AND 13 in D8 not 14

    wondered why ?
    otherwise i used an IF
    =IF((SUM(H4:L4)/SUM(H$1:L$1))*100>C4,SUM(H4:L4),B4)
    =IF((SUM(H4:L4)/SUM(H$1:L$1))*100>C4,(SUM(H4:L4)/SUM(H$1:L$1))*100,C4)

    BUT I maybe misunderstanding the whole concept , as you have a solution now using sumproduct , but as i have spent time working out , i thought i would put it out there, but as i say maybe missing the point
    Wayne
    if my assistance has helped, and only if you wish to , there is an "* Add Reputation" on the left hand side - you can add to my reputation here

    If you have a solution to your thread - Please mark your thread solved do the following: >
    Select Thread Tools-> Mark thread as Solved. To undo, select Thread Tools-> Mark thread as Unsolved.

  4. #4
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Sumif with a division compared to a reference

    In G4

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    In F4
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Since the "C" & "E" columns are each together then there's no point in using SUMIFS. Just address the columns directly
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  5. #5
    Registered User
    Join Date
    12-20-2012
    Location
    United Kingdom
    MS-Off Ver
    Excel 2016 & online version
    Posts
    23

    Re: Sumif with a division compared to a reference

    Wow thanks for the quick replies everyone, I have just tried the formula that hrlngrv first suggested, which seems to do the job - (I'm very pleased :-) and it was actually fairly close to a sumproduct that I had been trying)

    I've also tested yours etaf and Richard which certainly achieve something I wasn't able to do myself, but is a slight misinterpretation (as you guessed etaf) of what I need to do. (Of course it may always help someone else like me who googles all these forums to try and find solutions before posting) Let me try and explain...

    So take the first student, on the core questions, they have scored 11/12 giving 92%.
    We then need to look at the enhanced questions, but we need to consider each one individually, as that 92% must now be the lowest possible score, it will only ever be increased.
    So for Q4, the student has scored 1/4 which is 25%. If we were to include this then their overall % would be lowered, so we do not.
    However in Q5, the student has scored 4/4, 100% and therefore we will include this question as it will improve their score.

    Certainly makes it a tricky little calculation :-)

    Also in response to your first line hrlngrv 'Isn't it always best to determine what students have learned rather than what teachers have taught?'. I think in essence we are probably much the same in this line of thinking. However, with the pandemic, the DFE have instructed that we should only 'examine' students and grade them on topics that we have had time to teach. Frustratingly though, this advice really is only aimed at schools, I teach in a college. This is not the same context, the students that I am teaching have failed GCSE Maths one or more times already, which also means in theory they have previously been taught the entire course. So as a compromise, we came up with this system. They get a minimum % based on the topics we have taught, but do have the ability to gain extra credit if you like on topics that we haven't taught but they remember from prior schooling. If we draw grade boundaries on the core scores then I think we achieve a good level of fairness.

    Thanks,
    Tom

+ 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. [SOLVED] Sumif with multiple criteria & % of result compared to total sums
    By billrogers184 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 03-01-2019, 04:21 AM
  2. [SOLVED] SUMIF where rows are compared
    By edward_glyver in forum Excel General
    Replies: 5
    Last Post: 01-25-2016, 09:57 AM
  3. [SOLVED] Shorten SUMIF + SUMIF + SUMIF each with same reference range but different criteria???
    By HeyInKy in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 04-13-2014, 09:25 PM
  4. division gives wrong answer (division)
    By Brice in forum Excel General
    Replies: 5
    Last Post: 12-24-2010, 10:13 PM
  5. Reference Last Row in Sumif VBA
    By jeffreybrown in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 03-20-2009, 05:47 PM
  6. sumif criteria reference
    By TimH in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 03:05 AM

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