+ Reply to Thread
Results 1 to 7 of 7

Help require to give ranking

  1. #1
    Forum Contributor
    Join Date
    06-29-2014
    Location
    India
    MS-Off Ver
    2010 Windows 10 64 bits
    Posts
    1,269

    Help require to give ranking

    Hi friends,
    At present there are 7 subjects for 3 divisions. The subjects and divisions may change as per the exam. Test, terminal test 2, annual. I want to sort then give ranks for each subject; give serial numbers for each subject according to the divisions as shown in the output sheet for reference. I want to run the macro on the ‘Data’ sheet. Here are 3 divisions so there are 3 serial numbers for each subjects. It may change as per the number of divisions. If there are 10 divisions then there will be 10 serial numbers for each subjects. I want to rank for each group of subject. Here are 3 divisions so 3 ranks; if 10 divisions then 10 ranks.

    Any help will be appreciated.

    Thanking you.
    Attached Files Attached Files
    Sincerely,

    mso3

  2. #2
    Valued Forum Contributor
    Join Date
    10-05-2014
    Location
    Regina, SK Canada
    MS-Off Ver
    Excel for Mac 11
    Posts
    330

    Re: Help require to give ranking

    Hello

    The first problem is notice is that you have a column of scores similar to "18/20" or "35/40". Those cell are treated as text in Excel, not as numerical values. Therefore, you can not compare them as numbers.

    The simpler solution is to enter the 'score' and the 'out of' values in separate columns and then have a third column to calculate the percent by dividing those two values.

    Ranking the percents in each group is then fairly straight-forward; just be sure to have the correct range for each group.

    The attached example shows these revisions to your sample spreadsheet.

    Hope this helps,
    - Stu
    Attached Files Attached Files

  3. #3
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,946

    Re: Help require to give ranking

    The simpler solution is to enter the 'score' and the 'out of' values in separate columns
    Good suggestion Another altrenative would be to enter them ad decimals 0.9 or =18/20 etc, that way you still only use 1 column
    Last edited by FDibbins; 01-24-2015 at 11:22 PM.
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

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

    Re: Help require to give ranking

    1) you do need to split the marks out into two columns.
    2) Once you've done that, a standard RANKIF trick in the form of a COUNTIFS can duplicate your results

    = 1+COUNTIFS($I$4:$I$24,I4,$K$4:$K$24,">"&K4)
    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!)

  5. #5
    Forum Contributor
    Join Date
    06-29-2014
    Location
    India
    MS-Off Ver
    2010 Windows 10 64 bits
    Posts
    1,269

    Re: Help require to give ranking

    Hi JBeaucaire,
    Please see the attachment and suggest me a amendment in the rank formula. It's very urgent because my work is stopped.

    See 'English general and English special' subjects. I want o treat it as a single group of subjects and rank according to it from 1 to 6 and not 123 123.

    Sorry for trouble.

    Thanking you,
    Attached Files Attached Files

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

    Re: Help require to give ranking

    Let's assume that any string with the same first four letters is to be considered the "same"

    English General
    English Special

    In N4 and coped down:

    = 1+COUNTIFS($I$4:$I$24, LEFT(I4,4)&"*", $K$4:$K$24, ">"&K4)

  7. #7
    Forum Contributor
    Join Date
    06-29-2014
    Location
    India
    MS-Off Ver
    2010 Windows 10 64 bits
    Posts
    1,269

    Re: Help require to give ranking

    Hi JBeaucaire,
    Excellent! What a tricky solution.

    Really I appreciate you for your solution beyond my imagination.

    Thank you very much.

+ 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. Require to give two password in one workbook for different sheets
    By shvjmali in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-27-2013, 03:23 AM
  2. Replies: 2
    Last Post: 09-14-2012, 12:45 PM
  3. VLOOKUP That needs to give result based on a ranking list
    By Sanecrazy in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 03-16-2012, 11:38 PM
  4. [SOLVED] Require Help - Require Formula for Multiple values in both columns
    By krodge in forum Excel General
    Replies: 6
    Last Post: 01-13-2012, 03:42 AM
  5. [SOLVED] Give RELEVANT responses to questions. DO NOT give usless list
    By pmartin in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 07-06-2006, 02:00 PM

Tags for this Thread

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