+ Reply to Thread
Results 1 to 8 of 8

I want to get the number of occurances of a grade and its total value in seperate columns

  1. #1
    Forum Contributor
    Join Date
    02-28-2012
    Location
    india
    MS-Off Ver
    Excel 2013
    Posts
    542

    I want to get the number of occurances of a grade and its total value in seperate columns

    In a worksheet of marks of students, i have entered grades A,B,C,D,AND E.Grades are entered in cells o3,AB3,AO3,BB3 AND BO3.

    In BQ3,I want to get -in the range of O3:BO3

    a)how many "A" are there?
    It should display for example A=2,

    b) how many "B" are there?
    It should display for example B=2,

    c)how many "C" are there?
    It should display for example C=2,

    d)how many "D" are there?
    It should display for example D=2,

    e)how many "E" are there?
    It should display for example E=2.

    In BR3, I want to get >

    If A=10, B=8, C=6, D=4, E=2 then

    display the total value for the grade letters.

    Pls see the attached file for more clarity. thanks.
    Attached Files Attached Files

  2. #2
    Valued Forum Contributor
    Join Date
    07-04-2012
    Location
    Cape Town, RSA
    MS-Off Ver
    Office 365 ProPlus
    Posts
    1,050

    Re: I want to get the number of occurances of a grade and its total value in seperate colu

    What determines A? Score of 80-100?
    B = 70-79.9?
    C = 60-99.9?
    D = 50-59.9?
    E = 40-49.9?
    <40 = "Fail"???

    Please clarify.
    TX
    Regards,
    Rudi

  3. #3
    Forum Expert etaf's Avatar
    Join Date
    10-22-2004
    Location
    Wittering, West Sussex, UK
    MS-Off Ver
    365 (Mac OSX) (16.84 (24041420))
    Posts
    8,769

    Re: I want to get the number of occurances of a grade and its total value in seperate colu

    try
    ="A="&COUNTIF(O3:BO3, "A")&" B="&COUNTIF(O3:BO3, "B")&" C="&COUNTIF(O3:BO3, "C")&" D="&COUNTIF(O3:BO3, "D")&" E="&COUNTIF(O3:BO3, "E")

    If A=10, B=8, C=6, D=4, E=2 then

    =(COUNTIF(O3:BO3, "A")*10)+(COUNTIF(O3:BO3, "B")*8)+(COUNTIF(O3:BO3, "C")*6)+(COUNTIF(O3:BO3, "D")*4)+(COUNTIF(O3:BO3, "E")*2)
    Attached Files Attached Files
    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 Contributor
    Join Date
    02-28-2012
    Location
    india
    MS-Off Ver
    Excel 2013
    Posts
    542

    Re: I want to get the number of occurances of a grade and its total value in seperate colu

    Quote Originally Posted by etaf View Post
    try
    ="A="&COUNTIF(O3:BO3, "A")&" B="&COUNTIF(O3:BO3, "B")&" C="&COUNTIF(O3:BO3, "C")&" D="&COUNTIF(O3:BO3, "D")&" E="&COUNTIF(O3:BO3, "E")

    If A=10, B=8, C=6, D=4, E=2 then

    =(COUNTIF(O3:BO3, "A")*10)+(COUNTIF(O3:BO3, "B")*8)+(COUNTIF(O3:BO3, "C")*6)+(COUNTIF(O3:BO3, "D")*4)+(COUNTIF(O3:BO3, "E")*2)
    etaf thanks a lot for the response
    . I wanted to try your formula in a file. after first two rows it gives the wrong result. pls check and direct me. pls see the attachment.

  5. #5
    Forum Expert etaf's Avatar
    Join Date
    10-22-2004
    Location
    Wittering, West Sussex, UK
    MS-Off Ver
    365 (Mac OSX) (16.84 (24041420))
    Posts
    8,769

    Re: I want to get the number of occurances of a grade and its total value in seperate colu

    not sure what the issue is

    if you copy it down, it works, the formula in your row 8 is still referening to row 3 and so needs to be change to row 8

    a copy and past will work

    have a look here

  6. #6
    Forum Contributor
    Join Date
    02-28-2012
    Location
    india
    MS-Off Ver
    Excel 2013
    Posts
    542

    Re: I want to get the number of occurances of a grade and its total value in seperate colu

    Quote Originally Posted by etaf View Post
    not sure what the issue is

    if you copy it down, it works, the formula in your row 8 is still referening to row 3 and so needs to be change to row 8

    a copy and past will work

    have a look here
    etaf ,thanks for the response.
    your formula, when pasted on the first data row and copy down gives correct result
    .
    but when it is pasted in the middle row it gives the wrong one.kindly see the attachment.

    in sheet-1, the formula has been pasted to row A11.(BQ11) the result it shows is that of the first data row A3. In sheet-2 , the formula has been pasted to BQ7 in ROW 7 but it shows that of the first data row A3. that
    means that wherever you paste the formula it starts showing the result of the first data row
    . can you edit it so that it becomes universal?
    Attached Files Attached Files

  7. #7
    Forum Contributor
    Join Date
    02-28-2012
    Location
    india
    MS-Off Ver
    Excel 2013
    Posts
    542

    Re: I want to get the number of occurances of a grade and its total value in seperate colu

    Quote Originally Posted by sumesh56 View Post
    etaf ,thanks for the response.
    .
    but when it is pasted in the middle row it gives the wrong one.kindly see the attachment.

    in sheet-1, the formula has been pasted to row A11.(BQ11) the result it shows is that of the first data row A3. In sheet-2 , the formula has been pasted to BQ7 in ROW 7 but it shows that of the first data row A3. that . can you edit it so that it becomes universal?
    etaf. thanks a lot for the formula. it works perfect. i pasted the formula in a row other than row3. then the reference is row3 whenever i pasted it. I had to paste it as paste special> formulas. i tried that way. and it is working perfect. thanks once again. have a nice day.

  8. #8
    Forum Expert etaf's Avatar
    Join Date
    10-22-2004
    Location
    Wittering, West Sussex, UK
    MS-Off Ver
    365 (Mac OSX) (16.84 (24041420))
    Posts
    8,769

    Re: I want to get the number of occurances of a grade and its total value in seperate colu

    your welcome, glad you have it working now
    you just need to ensure if you copy that any rows or columns have changed (if you need them to change to execute the formula correctly)
    if my assistance has helped, and only if you wish to , there is a reputation icon * on the left hand side - you can add to my reputation here

+ 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. Replies: 5
    Last Post: 11-30-2013, 01:28 PM
  2. Replies: 5
    Last Post: 05-11-2012, 03:38 AM
  3. add number of occurances base on criteria on two columns
    By stoey in forum Excel Programming / VBA / Macros
    Replies: 13
    Last Post: 10-03-2009, 02:18 PM
  4. Replies: 1
    Last Post: 05-10-2006, 10:20 PM
  5. count duplicates/total number of occurances
    By Rishi Aggarwal in forum Excel General
    Replies: 3
    Last Post: 12-28-2005, 12:20 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