+ Reply to Thread
Results 1 to 47 of 47

Counting number of grades in a row

  1. #1
    Registered User
    Join Date
    03-11-2005
    Posts
    63

    Counting number of grades in a row

    Hi there,

    I am a teacher and need to analyse my results for review and target setting purposes.

    I need the spreadsheet to generate results for the following:

    Number of pupils scoring 5 grades (or higher) A* - C
    % of pupils scoring 5 grades (or higher) A* - C
    Number of pupils scoring 5 grades (or higher) A* - G
    % of pupils scoring 5 grades (or higher) A* - G
    Number of pupils scoring 1 (or higher) grade A*-G
    % of pupils scoring 1 grade (or higher) grade A* - G
    Number & % of pupils who were absent

    In column A will be the pupil's first name, column B will be their surname, C their gender and in columns D - O will be where I will input their grades (not all cells D - O will necessarily be used). Using this format what is the best formula for obtaining the necessary results?

    Many thanks for your consideration,

    Marie.

  2. #2
    Registered User
    Join Date
    03-11-2005
    Posts
    63
    Any help greatly appreciated.

  3. #3
    Forum Expert
    Join Date
    06-18-2004
    Location
    Canada
    MS-Off Ver
    Office 2016
    Posts
    1,474
    Hi Marie!

    Assuming that D2:O10 contains your grades...

    For the number of pupils scoring 5 grades or higheer (A*- C):

    Q1:

    =SUM(--(MMULT((D2:O10="A*")+(D2:O10="A")+(D2:O10="B")+(D2:O10="C"),TRANSPOSE(COLUMN(D2:O10)*0+1))>=5))

    ...confirmed with CONTROL+SHIFT+ENTER, not just ENTER. For the percentage of pupils scoring 5 grades or higher (A*- C):

    R1:

    =Q1/COUNTA(A2:A10)

    Adjust the range and criteria accordingly. As far as the number and percentage of pupils absent, can you provide more information?

    Quote Originally Posted by Marie1uk
    Hi there,

    I am a teacher and need to analyse my results for review and target setting purposes.

    I need the spreadsheet to generate results for the following:

    Number of pupils scoring 5 grades (or higher) A* - C
    % of pupils scoring 5 grades (or higher) A* - C
    Number of pupils scoring 5 grades (or higher) A* - G
    % of pupils scoring 5 grades (or higher) A* - G
    Number of pupils scoring 1 (or higher) grade A*-G
    % of pupils scoring 1 grade (or higher) grade A* - G
    Number & % of pupils who were absent

    In column A will be the pupil's first name, column B will be their surname, C their gender and in columns D - O will be where I will input their grades (not all cells D - O will necessarily be used). Using this format what is the best formula for obtaining the necessary results?

    Many thanks for your consideration,

    Marie.

  4. #4
    Lewis Clark
    Guest

    Re: Counting number of grades in a row

    I'm not sure I understand what you are asking for. Do the grades range from
    A to G? In the first 2 lines, are you looking for the number of students
    who earned at least 5 grades of C or higher? If a pupil is absent, will the
    cell for that grade be blank?

    "Marie1uk" <[email protected]> wrote in
    message news:[email protected]...
    >
    > Hi there,
    >
    > I am a teacher and need to analyse my results for review and target
    > setting purposes.
    >
    > I need the spreadsheet to generate results for the following:
    >
    > Number of pupils scoring 5 grades (or higher) A* - C
    > % of pupils scoring 5 grades (or higher) A* - C
    > Number of pupils scoring 5 grades (or higher) A* - G
    > % of pupils scoring 5 grades (or higher) A* - G
    > Number of pupils scoring 1 (or higher) grade A*-G
    > % of pupils scoring 1 grade (or higher) grade A* - G
    > Number & % of pupils who were absent
    >
    > In column A will be the pupil's first name, column B will be their
    > surname, C their gender and in columns D - O will be where I will input
    > their grades (not all cells D - O will necessarily be used). Using this
    > format what is the best formula for obtaining the necessary results?
    >
    > Many thanks for your consideration,
    >
    > Marie.
    >
    >
    > --
    > Marie1uk
    > ------------------------------------------------------------------------
    > Marie1uk's Profile:
    > http://www.excelforum.com/member.php...o&userid=20984
    > View this thread: http://www.excelforum.com/showthread...hreadid=384303
    >




  5. #5
    Registered User
    Join Date
    03-11-2005
    Posts
    63
    Grades range from A* (highest) to U (lowest), but U's are not needed as part of the analysis I need, just A*, A, B, C,D,E,F & G. Pupils who fail to turn up for the exam are classed as Abs on the spreadsheet, where Abs will replace the 'grade' for that exam. The formula then needs to count how many Abs marks there were for all pupils (305 ish) and express them as a % of all grades possible, so:

    305 pupils take for example 8 exams each = 2420 grades. 20 exams are missed by pupils failing to turn up and are classed as Abs on the spreadsheet so it needs to be able to count those 20 cells with abs in as express it as a % of all grades possible, ie 20/2040. Hope this makes sense
    Last edited by Marie1uk; 07-04-2005 at 04:20 PM.

  6. #6
    Forum Expert
    Join Date
    06-18-2004
    Location
    Canada
    MS-Off Ver
    Office 2016
    Posts
    1,474
    For the total number of 'Abs'...

    =COUNTIF(Range,"Abs")

    For the total number of 'Abs' as a percentage of all grades possible...

    =COUNTIF(Range,"Abs")/2440

    ..and format as 'Percentage'.

    Hope this helps!

    Quote Originally Posted by Marie1uk
    Grades range from A* (highest) to U (lowest), but U's are not needed as part of the analysis I need, just A*, A, B, C,D,E,F & G. Pupils who fail to turn up for the exam are classed as Abs on the spreadsheet, where Abs will replace the 'grade' for that exam. The formula then needs to count how many Abs marks there were for all pupils (305 ish) and express them as a % of all grades possible, so:

    305 pupils take for example 8 exams each = 2420 grades. 20 exams are missed by pupils failing to turn up and are classed as Abs on the spreadsheet so it needs to be able to count those 20 cells with abs in as express it as a % of all grades possible, ie 20/2040. Hope this makes sense

  7. #7
    Registered User
    Join Date
    03-11-2005
    Posts
    63
    The 2440 was a hypothetical example to illustrate what I wanted, not the exact number of grades that the spreadsheet will contain - sorry for the confusion. The spreadsheet needs to count all cells that have abs in them in a specified range and then divide by those cells that contain A*, A, B, C, D, E, F, G, U & Abs to arrive at a % of abs marks out of all possible grades.

  8. #8
    Forum Expert
    Join Date
    06-18-2004
    Location
    Canada
    MS-Off Ver
    Office 2016
    Posts
    1,474
    Try the following instead...

    =COUNTIF(D2:O10,"Abs")/SUMPRODUCT(--(ISNUMBER(MATCH(D2:O10,{"A","B","C","D","E","F","G","U","Abs"},0))))

    OR

    =COUNTIF(D2:O10,"Abs")/MAX(SUMPRODUCT(--(ISNUMBER(MATCH(D2:O10,{"A","B","C","D","E","F","G","U","Abs"},0)))),1)

    ...which will return a 0 instead of a #DIV/0 error when the denominator evaluates to 0.

    Hope this helps!

    Quote Originally Posted by Marie1uk
    The 2440 was a hypothetical example to illustrate what I wanted, not the exact number of grades that the spreadsheet will contain - sorry for the confusion. The spreadsheet needs to count all cells that have abs in them in a specified range and then divide by those cells that contain A*, A, B, C, D, E, F, G, U & Abs to arrive at a % of abs marks out of all possible grades.
    Last edited by Domenic; 07-04-2005 at 06:45 PM.

  9. #9
    Aladin Akyurek
    Guest

    Re: Counting number of grades in a row

    Maybe:

    =COUNTIF(GradeRange,"Abs")/COUNTIF(GradeRange,"*?")

    Marie1uk wrote:
    > The 2440 was a hypothetical example to illustrate what I wanted, not the
    > exact number of grades that the spreadsheet will contain - sorry for the
    > confusion. The spreadsheet needs to count all cells that have abs in
    > them in a specified range and then divide by those cells that contain
    > A*, A, B, C, D, E, F, G, U & Abs to arrive at a % of abs marks out of
    > all possible grades.
    >
    >


    --

    [1] The SumProduct function should implicitly coerce the truth values to
    their Excel numeric equivalents.
    [2] The lookup functions should have an optional argument for the return
    value, defaulting to #N/A in its absence.

  10. #10
    Registered User
    Join Date
    03-11-2005
    Posts
    63
    Ok thanks,

    I have decided to include a by gender 5 or more A*-U & 1 or more A*-U analysis too and set up a test area of 4 pupils marks with data:

    In A24 will be their first name, B24 will be their surname, C24 their gender (M=male, F=Female) and from D24 - M24 will be a list of their grades (A*- U). D24 - M27 will hold the test grades.

    I need it to calculate a BOYS & GIRLS ONLY analysis of pupils getting 5 or more A*-U and 1 or more A*-U (number of boys / girls as well as a percentage of boys / girls).

    Thanks in advance,

    Marie.

  11. #11
    Registered User
    Join Date
    03-11-2005
    Posts
    63
    Any help much appreciated.

  12. #12
    Forum Expert
    Join Date
    06-18-2004
    Location
    Canada
    MS-Off Ver
    Office 2016
    Posts
    1,474
    O24:

    =SUM(--(MMULT((C24:C27="M")*ISNUMBER(MATCH(D24:M27,{"A","B","C","D","E","F","G","U"},0)),TRANSPOSE(COLUMN(D24:M27)*0+1))>=5))

    ...confirmed with CONTROL+SHIFT+ENTER, not just ENTER.

    P24:

    =O24/COUNTIF(C24:C27,"M")

    For '1 or more A*-U', change '>=5' to '>=1'.

    Hope this helps!

    Quote Originally Posted by Marie1uk
    Ok thanks,

    I have decided to include a by gender 5 or more A*-U & 1 or more A*-U analysis too and set up a test area of 4 pupils marks with data:

    In A24 will be their first name, B24 will be their surname, C24 their gender (M=male, F=Female) and from D24 - M24 will be a list of their grades (A*- U). D24 - M27 will hold the test grades.

    I need it to calculate a BOYS & GIRLS ONLY analysis of pupils getting 5 or more A*-U and 1 or more A*-U (number of boys / girls as well as a percentage of boys / girls).

    Thanks in advance,

    Marie.

  13. #13
    Lewis Clark
    Guest

    Re: Counting number of grades in a row

    Domenic,

    I've studied your replies to this thread with great interest. This use of
    matrix math is very clever. Thank you for the lesson!

    Lewis



  14. #14
    Forum Expert
    Join Date
    06-18-2004
    Location
    Canada
    MS-Off Ver
    Office 2016
    Posts
    1,474
    Quote Originally Posted by Lewis Clark
    Domenic,

    I've studied your replies to this thread with great interest. This use of
    matrix math is very clever. Thank you for the lesson!

    Lewis
    You're very welcome! I too find it very interesting.

    Cheers!

  15. #15
    Lewis Clark
    Guest

    Re: Counting number of grades in a row

    I'm not sure I understand what you are asking for. Do the grades range from
    A to G? In the first 2 lines, are you looking for the number of students
    who earned at least 5 grades of C or higher? If a pupil is absent, will the
    cell for that grade be blank?

    "Marie1uk" <[email protected]> wrote in
    message news:[email protected]...
    >
    > Hi there,
    >
    > I am a teacher and need to analyse my results for review and target
    > setting purposes.
    >
    > I need the spreadsheet to generate results for the following:
    >
    > Number of pupils scoring 5 grades (or higher) A* - C
    > % of pupils scoring 5 grades (or higher) A* - C
    > Number of pupils scoring 5 grades (or higher) A* - G
    > % of pupils scoring 5 grades (or higher) A* - G
    > Number of pupils scoring 1 (or higher) grade A*-G
    > % of pupils scoring 1 grade (or higher) grade A* - G
    > Number & % of pupils who were absent
    >
    > In column A will be the pupil's first name, column B will be their
    > surname, C their gender and in columns D - O will be where I will input
    > their grades (not all cells D - O will necessarily be used). Using this
    > format what is the best formula for obtaining the necessary results?
    >
    > Many thanks for your consideration,
    >
    > Marie.
    >
    >
    > --
    > Marie1uk
    > ------------------------------------------------------------------------
    > Marie1uk's Profile:
    > http://www.excelforum.com/member.php...o&userid=20984
    > View this thread: http://www.excelforum.com/showthread...hreadid=384303
    >




  16. #16
    Aladin Akyurek
    Guest

    Re: Counting number of grades in a row

    Maybe:

    =COUNTIF(GradeRange,"Abs")/COUNTIF(GradeRange,"*?")

    Marie1uk wrote:
    > The 2440 was a hypothetical example to illustrate what I wanted, not the
    > exact number of grades that the spreadsheet will contain - sorry for the
    > confusion. The spreadsheet needs to count all cells that have abs in
    > them in a specified range and then divide by those cells that contain
    > A*, A, B, C, D, E, F, G, U & Abs to arrive at a % of abs marks out of
    > all possible grades.
    >
    >


    --

    [1] The SumProduct function should implicitly coerce the truth values to
    their Excel numeric equivalents.
    [2] The lookup functions should have an optional argument for the return
    value, defaulting to #N/A in its absence.

  17. #17
    Lewis Clark
    Guest

    Re: Counting number of grades in a row

    Domenic,

    I've studied your replies to this thread with great interest. This use of
    matrix math is very clever. Thank you for the lesson!

    Lewis



  18. #18
    Lewis Clark
    Guest

    Re: Counting number of grades in a row

    I'm not sure I understand what you are asking for. Do the grades range from
    A to G? In the first 2 lines, are you looking for the number of students
    who earned at least 5 grades of C or higher? If a pupil is absent, will the
    cell for that grade be blank?

    "Marie1uk" <[email protected]> wrote in
    message news:[email protected]...
    >
    > Hi there,
    >
    > I am a teacher and need to analyse my results for review and target
    > setting purposes.
    >
    > I need the spreadsheet to generate results for the following:
    >
    > Number of pupils scoring 5 grades (or higher) A* - C
    > % of pupils scoring 5 grades (or higher) A* - C
    > Number of pupils scoring 5 grades (or higher) A* - G
    > % of pupils scoring 5 grades (or higher) A* - G
    > Number of pupils scoring 1 (or higher) grade A*-G
    > % of pupils scoring 1 grade (or higher) grade A* - G
    > Number & % of pupils who were absent
    >
    > In column A will be the pupil's first name, column B will be their
    > surname, C their gender and in columns D - O will be where I will input
    > their grades (not all cells D - O will necessarily be used). Using this
    > format what is the best formula for obtaining the necessary results?
    >
    > Many thanks for your consideration,
    >
    > Marie.
    >
    >
    > --
    > Marie1uk
    > ------------------------------------------------------------------------
    > Marie1uk's Profile:
    > http://www.excelforum.com/member.php...o&userid=20984
    > View this thread: http://www.excelforum.com/showthread...hreadid=384303
    >




  19. #19
    Aladin Akyurek
    Guest

    Re: Counting number of grades in a row

    Maybe:

    =COUNTIF(GradeRange,"Abs")/COUNTIF(GradeRange,"*?")

    Marie1uk wrote:
    > The 2440 was a hypothetical example to illustrate what I wanted, not the
    > exact number of grades that the spreadsheet will contain - sorry for the
    > confusion. The spreadsheet needs to count all cells that have abs in
    > them in a specified range and then divide by those cells that contain
    > A*, A, B, C, D, E, F, G, U & Abs to arrive at a % of abs marks out of
    > all possible grades.
    >
    >


    --

    [1] The SumProduct function should implicitly coerce the truth values to
    their Excel numeric equivalents.
    [2] The lookup functions should have an optional argument for the return
    value, defaulting to #N/A in its absence.

  20. #20
    Lewis Clark
    Guest

    Re: Counting number of grades in a row

    Domenic,

    I've studied your replies to this thread with great interest. This use of
    matrix math is very clever. Thank you for the lesson!

    Lewis



  21. #21
    Lewis Clark
    Guest

    Re: Counting number of grades in a row

    Domenic,

    I've studied your replies to this thread with great interest. This use of
    matrix math is very clever. Thank you for the lesson!

    Lewis



  22. #22
    Aladin Akyurek
    Guest

    Re: Counting number of grades in a row

    Maybe:

    =COUNTIF(GradeRange,"Abs")/COUNTIF(GradeRange,"*?")

    Marie1uk wrote:
    > The 2440 was a hypothetical example to illustrate what I wanted, not the
    > exact number of grades that the spreadsheet will contain - sorry for the
    > confusion. The spreadsheet needs to count all cells that have abs in
    > them in a specified range and then divide by those cells that contain
    > A*, A, B, C, D, E, F, G, U & Abs to arrive at a % of abs marks out of
    > all possible grades.
    >
    >


    --

    [1] The SumProduct function should implicitly coerce the truth values to
    their Excel numeric equivalents.
    [2] The lookup functions should have an optional argument for the return
    value, defaulting to #N/A in its absence.

  23. #23
    Lewis Clark
    Guest

    Re: Counting number of grades in a row

    I'm not sure I understand what you are asking for. Do the grades range from
    A to G? In the first 2 lines, are you looking for the number of students
    who earned at least 5 grades of C or higher? If a pupil is absent, will the
    cell for that grade be blank?

    "Marie1uk" <[email protected]> wrote in
    message news:[email protected]...
    >
    > Hi there,
    >
    > I am a teacher and need to analyse my results for review and target
    > setting purposes.
    >
    > I need the spreadsheet to generate results for the following:
    >
    > Number of pupils scoring 5 grades (or higher) A* - C
    > % of pupils scoring 5 grades (or higher) A* - C
    > Number of pupils scoring 5 grades (or higher) A* - G
    > % of pupils scoring 5 grades (or higher) A* - G
    > Number of pupils scoring 1 (or higher) grade A*-G
    > % of pupils scoring 1 grade (or higher) grade A* - G
    > Number & % of pupils who were absent
    >
    > In column A will be the pupil's first name, column B will be their
    > surname, C their gender and in columns D - O will be where I will input
    > their grades (not all cells D - O will necessarily be used). Using this
    > format what is the best formula for obtaining the necessary results?
    >
    > Many thanks for your consideration,
    >
    > Marie.
    >
    >
    > --
    > Marie1uk
    > ------------------------------------------------------------------------
    > Marie1uk's Profile:
    > http://www.excelforum.com/member.php...o&userid=20984
    > View this thread: http://www.excelforum.com/showthread...hreadid=384303
    >




  24. #24
    Lewis Clark
    Guest

    Re: Counting number of grades in a row

    I'm not sure I understand what you are asking for. Do the grades range from
    A to G? In the first 2 lines, are you looking for the number of students
    who earned at least 5 grades of C or higher? If a pupil is absent, will the
    cell for that grade be blank?

    "Marie1uk" <[email protected]> wrote in
    message news:[email protected]...
    >
    > Hi there,
    >
    > I am a teacher and need to analyse my results for review and target
    > setting purposes.
    >
    > I need the spreadsheet to generate results for the following:
    >
    > Number of pupils scoring 5 grades (or higher) A* - C
    > % of pupils scoring 5 grades (or higher) A* - C
    > Number of pupils scoring 5 grades (or higher) A* - G
    > % of pupils scoring 5 grades (or higher) A* - G
    > Number of pupils scoring 1 (or higher) grade A*-G
    > % of pupils scoring 1 grade (or higher) grade A* - G
    > Number & % of pupils who were absent
    >
    > In column A will be the pupil's first name, column B will be their
    > surname, C their gender and in columns D - O will be where I will input
    > their grades (not all cells D - O will necessarily be used). Using this
    > format what is the best formula for obtaining the necessary results?
    >
    > Many thanks for your consideration,
    >
    > Marie.
    >
    >
    > --
    > Marie1uk
    > ------------------------------------------------------------------------
    > Marie1uk's Profile:
    > http://www.excelforum.com/member.php...o&userid=20984
    > View this thread: http://www.excelforum.com/showthread...hreadid=384303
    >




  25. #25
    Aladin Akyurek
    Guest

    Re: Counting number of grades in a row

    Maybe:

    =COUNTIF(GradeRange,"Abs")/COUNTIF(GradeRange,"*?")

    Marie1uk wrote:
    > The 2440 was a hypothetical example to illustrate what I wanted, not the
    > exact number of grades that the spreadsheet will contain - sorry for the
    > confusion. The spreadsheet needs to count all cells that have abs in
    > them in a specified range and then divide by those cells that contain
    > A*, A, B, C, D, E, F, G, U & Abs to arrive at a % of abs marks out of
    > all possible grades.
    >
    >


    --

    [1] The SumProduct function should implicitly coerce the truth values to
    their Excel numeric equivalents.
    [2] The lookup functions should have an optional argument for the return
    value, defaulting to #N/A in its absence.

  26. #26
    Lewis Clark
    Guest

    Re: Counting number of grades in a row

    Domenic,

    I've studied your replies to this thread with great interest. This use of
    matrix math is very clever. Thank you for the lesson!

    Lewis



  27. #27
    Lewis Clark
    Guest

    Re: Counting number of grades in a row

    Domenic,

    I've studied your replies to this thread with great interest. This use of
    matrix math is very clever. Thank you for the lesson!

    Lewis



  28. #28
    Aladin Akyurek
    Guest

    Re: Counting number of grades in a row

    Maybe:

    =COUNTIF(GradeRange,"Abs")/COUNTIF(GradeRange,"*?")

    Marie1uk wrote:
    > The 2440 was a hypothetical example to illustrate what I wanted, not the
    > exact number of grades that the spreadsheet will contain - sorry for the
    > confusion. The spreadsheet needs to count all cells that have abs in
    > them in a specified range and then divide by those cells that contain
    > A*, A, B, C, D, E, F, G, U & Abs to arrive at a % of abs marks out of
    > all possible grades.
    >
    >


    --

    [1] The SumProduct function should implicitly coerce the truth values to
    their Excel numeric equivalents.
    [2] The lookup functions should have an optional argument for the return
    value, defaulting to #N/A in its absence.

  29. #29
    Lewis Clark
    Guest

    Re: Counting number of grades in a row

    I'm not sure I understand what you are asking for. Do the grades range from
    A to G? In the first 2 lines, are you looking for the number of students
    who earned at least 5 grades of C or higher? If a pupil is absent, will the
    cell for that grade be blank?

    "Marie1uk" <[email protected]> wrote in
    message news:[email protected]...
    >
    > Hi there,
    >
    > I am a teacher and need to analyse my results for review and target
    > setting purposes.
    >
    > I need the spreadsheet to generate results for the following:
    >
    > Number of pupils scoring 5 grades (or higher) A* - C
    > % of pupils scoring 5 grades (or higher) A* - C
    > Number of pupils scoring 5 grades (or higher) A* - G
    > % of pupils scoring 5 grades (or higher) A* - G
    > Number of pupils scoring 1 (or higher) grade A*-G
    > % of pupils scoring 1 grade (or higher) grade A* - G
    > Number & % of pupils who were absent
    >
    > In column A will be the pupil's first name, column B will be their
    > surname, C their gender and in columns D - O will be where I will input
    > their grades (not all cells D - O will necessarily be used). Using this
    > format what is the best formula for obtaining the necessary results?
    >
    > Many thanks for your consideration,
    >
    > Marie.
    >
    >
    > --
    > Marie1uk
    > ------------------------------------------------------------------------
    > Marie1uk's Profile:
    > http://www.excelforum.com/member.php...o&userid=20984
    > View this thread: http://www.excelforum.com/showthread...hreadid=384303
    >




  30. #30
    Lewis Clark
    Guest

    Re: Counting number of grades in a row

    Domenic,

    I've studied your replies to this thread with great interest. This use of
    matrix math is very clever. Thank you for the lesson!

    Lewis



  31. #31
    Aladin Akyurek
    Guest

    Re: Counting number of grades in a row

    Maybe:

    =COUNTIF(GradeRange,"Abs")/COUNTIF(GradeRange,"*?")

    Marie1uk wrote:
    > The 2440 was a hypothetical example to illustrate what I wanted, not the
    > exact number of grades that the spreadsheet will contain - sorry for the
    > confusion. The spreadsheet needs to count all cells that have abs in
    > them in a specified range and then divide by those cells that contain
    > A*, A, B, C, D, E, F, G, U & Abs to arrive at a % of abs marks out of
    > all possible grades.
    >
    >


    --

    [1] The SumProduct function should implicitly coerce the truth values to
    their Excel numeric equivalents.
    [2] The lookup functions should have an optional argument for the return
    value, defaulting to #N/A in its absence.

  32. #32
    Lewis Clark
    Guest

    Re: Counting number of grades in a row

    I'm not sure I understand what you are asking for. Do the grades range from
    A to G? In the first 2 lines, are you looking for the number of students
    who earned at least 5 grades of C or higher? If a pupil is absent, will the
    cell for that grade be blank?

    "Marie1uk" <[email protected]> wrote in
    message news:[email protected]...
    >
    > Hi there,
    >
    > I am a teacher and need to analyse my results for review and target
    > setting purposes.
    >
    > I need the spreadsheet to generate results for the following:
    >
    > Number of pupils scoring 5 grades (or higher) A* - C
    > % of pupils scoring 5 grades (or higher) A* - C
    > Number of pupils scoring 5 grades (or higher) A* - G
    > % of pupils scoring 5 grades (or higher) A* - G
    > Number of pupils scoring 1 (or higher) grade A*-G
    > % of pupils scoring 1 grade (or higher) grade A* - G
    > Number & % of pupils who were absent
    >
    > In column A will be the pupil's first name, column B will be their
    > surname, C their gender and in columns D - O will be where I will input
    > their grades (not all cells D - O will necessarily be used). Using this
    > format what is the best formula for obtaining the necessary results?
    >
    > Many thanks for your consideration,
    >
    > Marie.
    >
    >
    > --
    > Marie1uk
    > ------------------------------------------------------------------------
    > Marie1uk's Profile:
    > http://www.excelforum.com/member.php...o&userid=20984
    > View this thread: http://www.excelforum.com/showthread...hreadid=384303
    >




  33. #33
    Lewis Clark
    Guest

    Re: Counting number of grades in a row

    Domenic,

    I've studied your replies to this thread with great interest. This use of
    matrix math is very clever. Thank you for the lesson!

    Lewis



  34. #34
    Aladin Akyurek
    Guest

    Re: Counting number of grades in a row

    Maybe:

    =COUNTIF(GradeRange,"Abs")/COUNTIF(GradeRange,"*?")

    Marie1uk wrote:
    > The 2440 was a hypothetical example to illustrate what I wanted, not the
    > exact number of grades that the spreadsheet will contain - sorry for the
    > confusion. The spreadsheet needs to count all cells that have abs in
    > them in a specified range and then divide by those cells that contain
    > A*, A, B, C, D, E, F, G, U & Abs to arrive at a % of abs marks out of
    > all possible grades.
    >
    >


    --

    [1] The SumProduct function should implicitly coerce the truth values to
    their Excel numeric equivalents.
    [2] The lookup functions should have an optional argument for the return
    value, defaulting to #N/A in its absence.

  35. #35
    Lewis Clark
    Guest

    Re: Counting number of grades in a row

    I'm not sure I understand what you are asking for. Do the grades range from
    A to G? In the first 2 lines, are you looking for the number of students
    who earned at least 5 grades of C or higher? If a pupil is absent, will the
    cell for that grade be blank?

    "Marie1uk" <[email protected]> wrote in
    message news:[email protected]...
    >
    > Hi there,
    >
    > I am a teacher and need to analyse my results for review and target
    > setting purposes.
    >
    > I need the spreadsheet to generate results for the following:
    >
    > Number of pupils scoring 5 grades (or higher) A* - C
    > % of pupils scoring 5 grades (or higher) A* - C
    > Number of pupils scoring 5 grades (or higher) A* - G
    > % of pupils scoring 5 grades (or higher) A* - G
    > Number of pupils scoring 1 (or higher) grade A*-G
    > % of pupils scoring 1 grade (or higher) grade A* - G
    > Number & % of pupils who were absent
    >
    > In column A will be the pupil's first name, column B will be their
    > surname, C their gender and in columns D - O will be where I will input
    > their grades (not all cells D - O will necessarily be used). Using this
    > format what is the best formula for obtaining the necessary results?
    >
    > Many thanks for your consideration,
    >
    > Marie.
    >
    >
    > --
    > Marie1uk
    > ------------------------------------------------------------------------
    > Marie1uk's Profile:
    > http://www.excelforum.com/member.php...o&userid=20984
    > View this thread: http://www.excelforum.com/showthread...hreadid=384303
    >




  36. #36
    Lewis Clark
    Guest

    Re: Counting number of grades in a row

    I'm not sure I understand what you are asking for. Do the grades range from
    A to G? In the first 2 lines, are you looking for the number of students
    who earned at least 5 grades of C or higher? If a pupil is absent, will the
    cell for that grade be blank?

    "Marie1uk" <[email protected]> wrote in
    message news:[email protected]...
    >
    > Hi there,
    >
    > I am a teacher and need to analyse my results for review and target
    > setting purposes.
    >
    > I need the spreadsheet to generate results for the following:
    >
    > Number of pupils scoring 5 grades (or higher) A* - C
    > % of pupils scoring 5 grades (or higher) A* - C
    > Number of pupils scoring 5 grades (or higher) A* - G
    > % of pupils scoring 5 grades (or higher) A* - G
    > Number of pupils scoring 1 (or higher) grade A*-G
    > % of pupils scoring 1 grade (or higher) grade A* - G
    > Number & % of pupils who were absent
    >
    > In column A will be the pupil's first name, column B will be their
    > surname, C their gender and in columns D - O will be where I will input
    > their grades (not all cells D - O will necessarily be used). Using this
    > format what is the best formula for obtaining the necessary results?
    >
    > Many thanks for your consideration,
    >
    > Marie.
    >
    >
    > --
    > Marie1uk
    > ------------------------------------------------------------------------
    > Marie1uk's Profile:
    > http://www.excelforum.com/member.php...o&userid=20984
    > View this thread: http://www.excelforum.com/showthread...hreadid=384303
    >




  37. #37
    Lewis Clark
    Guest

    Re: Counting number of grades in a row

    Domenic,

    I've studied your replies to this thread with great interest. This use of
    matrix math is very clever. Thank you for the lesson!

    Lewis



  38. #38
    Aladin Akyurek
    Guest

    Re: Counting number of grades in a row

    Maybe:

    =COUNTIF(GradeRange,"Abs")/COUNTIF(GradeRange,"*?")

    Marie1uk wrote:
    > The 2440 was a hypothetical example to illustrate what I wanted, not the
    > exact number of grades that the spreadsheet will contain - sorry for the
    > confusion. The spreadsheet needs to count all cells that have abs in
    > them in a specified range and then divide by those cells that contain
    > A*, A, B, C, D, E, F, G, U & Abs to arrive at a % of abs marks out of
    > all possible grades.
    >
    >


    --

    [1] The SumProduct function should implicitly coerce the truth values to
    their Excel numeric equivalents.
    [2] The lookup functions should have an optional argument for the return
    value, defaulting to #N/A in its absence.

  39. #39
    Lewis Clark
    Guest

    Re: Counting number of grades in a row

    Domenic,

    I've studied your replies to this thread with great interest. This use of
    matrix math is very clever. Thank you for the lesson!

    Lewis



  40. #40
    Aladin Akyurek
    Guest

    Re: Counting number of grades in a row

    Maybe:

    =COUNTIF(GradeRange,"Abs")/COUNTIF(GradeRange,"*?")

    Marie1uk wrote:
    > The 2440 was a hypothetical example to illustrate what I wanted, not the
    > exact number of grades that the spreadsheet will contain - sorry for the
    > confusion. The spreadsheet needs to count all cells that have abs in
    > them in a specified range and then divide by those cells that contain
    > A*, A, B, C, D, E, F, G, U & Abs to arrive at a % of abs marks out of
    > all possible grades.
    >
    >


    --

    [1] The SumProduct function should implicitly coerce the truth values to
    their Excel numeric equivalents.
    [2] The lookup functions should have an optional argument for the return
    value, defaulting to #N/A in its absence.

  41. #41
    Lewis Clark
    Guest

    Re: Counting number of grades in a row

    I'm not sure I understand what you are asking for. Do the grades range from
    A to G? In the first 2 lines, are you looking for the number of students
    who earned at least 5 grades of C or higher? If a pupil is absent, will the
    cell for that grade be blank?

    "Marie1uk" <[email protected]> wrote in
    message news:[email protected]...
    >
    > Hi there,
    >
    > I am a teacher and need to analyse my results for review and target
    > setting purposes.
    >
    > I need the spreadsheet to generate results for the following:
    >
    > Number of pupils scoring 5 grades (or higher) A* - C
    > % of pupils scoring 5 grades (or higher) A* - C
    > Number of pupils scoring 5 grades (or higher) A* - G
    > % of pupils scoring 5 grades (or higher) A* - G
    > Number of pupils scoring 1 (or higher) grade A*-G
    > % of pupils scoring 1 grade (or higher) grade A* - G
    > Number & % of pupils who were absent
    >
    > In column A will be the pupil's first name, column B will be their
    > surname, C their gender and in columns D - O will be where I will input
    > their grades (not all cells D - O will necessarily be used). Using this
    > format what is the best formula for obtaining the necessary results?
    >
    > Many thanks for your consideration,
    >
    > Marie.
    >
    >
    > --
    > Marie1uk
    > ------------------------------------------------------------------------
    > Marie1uk's Profile:
    > http://www.excelforum.com/member.php...o&userid=20984
    > View this thread: http://www.excelforum.com/showthread...hreadid=384303
    >




  42. #42
    Lewis Clark
    Guest

    Re: Counting number of grades in a row

    I'm not sure I understand what you are asking for. Do the grades range from
    A to G? In the first 2 lines, are you looking for the number of students
    who earned at least 5 grades of C or higher? If a pupil is absent, will the
    cell for that grade be blank?

    "Marie1uk" <[email protected]> wrote in
    message news:[email protected]...
    >
    > Hi there,
    >
    > I am a teacher and need to analyse my results for review and target
    > setting purposes.
    >
    > I need the spreadsheet to generate results for the following:
    >
    > Number of pupils scoring 5 grades (or higher) A* - C
    > % of pupils scoring 5 grades (or higher) A* - C
    > Number of pupils scoring 5 grades (or higher) A* - G
    > % of pupils scoring 5 grades (or higher) A* - G
    > Number of pupils scoring 1 (or higher) grade A*-G
    > % of pupils scoring 1 grade (or higher) grade A* - G
    > Number & % of pupils who were absent
    >
    > In column A will be the pupil's first name, column B will be their
    > surname, C their gender and in columns D - O will be where I will input
    > their grades (not all cells D - O will necessarily be used). Using this
    > format what is the best formula for obtaining the necessary results?
    >
    > Many thanks for your consideration,
    >
    > Marie.
    >
    >
    > --
    > Marie1uk
    > ------------------------------------------------------------------------
    > Marie1uk's Profile:
    > http://www.excelforum.com/member.php...o&userid=20984
    > View this thread: http://www.excelforum.com/showthread...hreadid=384303
    >




  43. #43
    Aladin Akyurek
    Guest

    Re: Counting number of grades in a row

    Maybe:

    =COUNTIF(GradeRange,"Abs")/COUNTIF(GradeRange,"*?")

    Marie1uk wrote:
    > The 2440 was a hypothetical example to illustrate what I wanted, not the
    > exact number of grades that the spreadsheet will contain - sorry for the
    > confusion. The spreadsheet needs to count all cells that have abs in
    > them in a specified range and then divide by those cells that contain
    > A*, A, B, C, D, E, F, G, U & Abs to arrive at a % of abs marks out of
    > all possible grades.
    >
    >


    --

    [1] The SumProduct function should implicitly coerce the truth values to
    their Excel numeric equivalents.
    [2] The lookup functions should have an optional argument for the return
    value, defaulting to #N/A in its absence.

  44. #44
    Lewis Clark
    Guest

    Re: Counting number of grades in a row

    Domenic,

    I've studied your replies to this thread with great interest. This use of
    matrix math is very clever. Thank you for the lesson!

    Lewis



  45. #45
    Lewis Clark
    Guest

    Re: Counting number of grades in a row

    I'm not sure I understand what you are asking for. Do the grades range from
    A to G? In the first 2 lines, are you looking for the number of students
    who earned at least 5 grades of C or higher? If a pupil is absent, will the
    cell for that grade be blank?

    "Marie1uk" <[email protected]> wrote in
    message news:[email protected]...
    >
    > Hi there,
    >
    > I am a teacher and need to analyse my results for review and target
    > setting purposes.
    >
    > I need the spreadsheet to generate results for the following:
    >
    > Number of pupils scoring 5 grades (or higher) A* - C
    > % of pupils scoring 5 grades (or higher) A* - C
    > Number of pupils scoring 5 grades (or higher) A* - G
    > % of pupils scoring 5 grades (or higher) A* - G
    > Number of pupils scoring 1 (or higher) grade A*-G
    > % of pupils scoring 1 grade (or higher) grade A* - G
    > Number & % of pupils who were absent
    >
    > In column A will be the pupil's first name, column B will be their
    > surname, C their gender and in columns D - O will be where I will input
    > their grades (not all cells D - O will necessarily be used). Using this
    > format what is the best formula for obtaining the necessary results?
    >
    > Many thanks for your consideration,
    >
    > Marie.
    >
    >
    > --
    > Marie1uk
    > ------------------------------------------------------------------------
    > Marie1uk's Profile:
    > http://www.excelforum.com/member.php...o&userid=20984
    > View this thread: http://www.excelforum.com/showthread...hreadid=384303
    >




  46. #46
    Aladin Akyurek
    Guest

    Re: Counting number of grades in a row

    Maybe:

    =COUNTIF(GradeRange,"Abs")/COUNTIF(GradeRange,"*?")

    Marie1uk wrote:
    > The 2440 was a hypothetical example to illustrate what I wanted, not the
    > exact number of grades that the spreadsheet will contain - sorry for the
    > confusion. The spreadsheet needs to count all cells that have abs in
    > them in a specified range and then divide by those cells that contain
    > A*, A, B, C, D, E, F, G, U & Abs to arrive at a % of abs marks out of
    > all possible grades.
    >
    >


    --

    [1] The SumProduct function should implicitly coerce the truth values to
    their Excel numeric equivalents.
    [2] The lookup functions should have an optional argument for the return
    value, defaulting to #N/A in its absence.

  47. #47
    Lewis Clark
    Guest

    Re: Counting number of grades in a row

    Domenic,

    I've studied your replies to this thread with great interest. This use of
    matrix math is very clever. Thank you for the lesson!

    Lewis



+ 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