+ Reply to Thread
Results 1 to 5 of 5

How to clear the lowest 10 values from a list of 30 values

Hybrid View

  1. #1
    Registered User
    Join Date
    04-01-2009
    Location
    dhk
    MS-Off Ver
    Excel 2003
    Posts
    1

    How to clear the lowest 10 values from a list of 30 values

    Suppose I have a database of 50 students. Each row starts with the name of the student and then marks of 30 quizes for each student. e.g.-

    Jack- 10 7 8 5 10 9 8 7 3 6 4 7 3 ........
    Millie- 2 3 10 9 8 2 7 1 2 9 2 0 7 9.......
    Ryan- 4 5 7 8 9 10 2 4 5 7 8 9............
    ...............................................................
    ..............................................................
    Now I want to count only best 20 quiz marks out of 30 quizes and show the cells containing 10 lowest values as blank.
    e.g. if i want to clear lowest 5 values for jack-
    Jack- 10 7 8 _ 10 9 8 7 _ _ _ 7 _ ....

    Now how do I do this and how do I repeat it for all 50 students? That is, how do I show only best 20 quiz marks out of 30 for each student?


    please help
    fap87
    Last edited by VBA Noob; 04-01-2009 at 05:08 PM.

  2. #2
    Forum Expert ConneXionLost's Avatar
    Join Date
    03-11-2009
    Location
    Victoria, Canada
    MS-Off Ver
    2010
    Posts
    2,952

    Re: How to clear the lowest 10 values from a list of 30 values

    Assuming Jack's grades are in the range A2:AE2 then use:

    =IF(B2>=LARGE($B$2:$AE$2,20),B2,"")
    and then copy this across (to the right) to represent each grade.

    HTH
    Would you like to say thanks? Please click the: " Add Reputation" button, on the grey bar below the post.

  3. #3
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: How to clear the lowest 10 values from a list of 30 values

    I would always resist the idea of making grades really disappear. That's the kind of thing you really want to keep, isn't it?

    So, I would have two sheets, one with all the raw-original-untouched scores, and another that pulls from the raw data and shows you the top 20 scores.

    Sample attached.
    Attached Files Attached Files
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

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

    Re: How to clear the lowest 10 values from a list of 30 values

    Quote Originally Posted by ConneXionLost
    Assuming Jack's grades are in the range A2:AE2 then use:

    =IF(B2>=LARGE($B$2:$AE$2,20),B2,"")
    That may bring over more than 20 grades.
    Entia non sunt multiplicanda sine necessitate

  5. #5
    Forum Expert ConneXionLost's Avatar
    Join Date
    03-11-2009
    Location
    Victoria, Canada
    MS-Off Ver
    2010
    Posts
    2,952

    Re: How to clear the lowest 10 values from a list of 30 values

    shg,

    Quite right; in the case of ties, there will be occasions where the formula won't discriminate between a 6 in column G or a 6 in column K. However, given the situation, I thought it best for the OP to decide if that was still an issue.

+ 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