+ Reply to Thread
Results 1 to 7 of 7

Help require to modify this array formula

Hybrid View

  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 modify this array formula

    Dear friends,
    I want to find out the first topper student in each subject. The formula is working fine if there are not same marks in subjects but if the two or more students secure same marks then it is not giving correct output. It’s taking the first student in series which I don’t want.

    The condition is:
    If two or more students secure same marks then the rank should be taken in the consideration. The top rank should be given first number though it’s not first in the series based on roll no in the result sheet.

    In this case the topper student in Marathi and Hindi is wrong output by the formula. I have given the correct required output table in the file.

    Please suggest me a modification in the formula.

    Any help will be appreciated.

    Thanking you,
    Attached Files Attached Files
    Sincerely,

    mso3

  2. #2
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Help require to modify this array formula

    Please add in your question this is a related question to the questions below.

    http://www.excelforum.com/excel-form...ml#post3811529
    Notice my main language is not English.

    I appreciate it, if you reply on my solution.

    If you are satisfied with the solution, please mark the question solved.

    You can add reputation by clicking on the star * add reputation.

  3. #3
    Forum Expert Ron Coderre's Avatar
    Join Date
    03-22-2005
    Location
    Boston, Massachusetts
    MS-Off Ver
    2013, 2016, O365
    Posts
    6,996

    Re: Help require to modify this array formula

    Using your posted workbook...
    This ARRAY FORMULA, completed by holding down CTRL and SHIFT when you press ENTER (instead of just pressing ENTER) begin the list of top students
    J5: =IFERROR(INDEX(Test!$E$6:$E$90,MATCH(MIN(IF(((Test!$F$4:$M$4=I5)*Test!$F$6:$M$90)=MAX(((Test!$F$4:$M$4=I5)
    *(Test!$F$6:$M$90))),Test!$R$6:$R$90)),Test!$R$6:$R$90,0)),"")
    and this regular formula returns the corresponding marks
    K5: =IFERROR(LARGE(INDEX(Test!$F$6:$M$90,0,MATCH(Summary!$I5,Test!$F$4:$M$4,0)),$H5),"")
    Copy both formulas down as far as you need.

    Is that something you can work with?
    Ron
    Former Microsoft MVP - Excel (2006 - 2015)
    Click here to see the Forum Rules

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

    Re: Help require to modify this array formula

    Hi Ron,
    Thank you. It's absolutely working fine in English version but not in my devanagari version. Please see the file and suggest me a correction.

    Thank you.
    Attached Files Attached Files
    Last edited by mso3; 09-10-2014 at 10:06 PM.

  5. #5
    Forum Guru sktneer's Avatar
    Join Date
    04-30-2011
    Location
    Kanpur, India
    MS-Off Ver
    Office 365
    Posts
    9,655

    Re: Help require to modify this array formula

    Try this.....
    In K5
    =IFERROR(LARGE(INDEX(Test!$F$6:$M$90,0,MATCH(Summary!$I5,Test!$F$4:$M$4,0)),$H$5),"")
    and copy down.

    In J5 (Array Formula)
    =INDEX(Test!$E$6:$E$90,SMALL(IF(Test!$R$6:$R$90=MIN(IF(INDEX(Test!$F$6:$M$90,0,MATCH(Summary!$I5,Test!$F$4:$M$4,0))=K5,Test!$R$6:$R$90)),ROW(Test!$E$6:$E$90)-ROW(Test!$E$6)+1),1))
    and copy down.

    Is this what you are trying to achieve?
    Attached Files Attached Files
    Regards
    sktneer


    Treat people the way you want to be treated. Talk to people the way you want to be talked to.
    Respect is earned NOT given.

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

    Re: Help require to modify this array formula

    Hi Sktneer,
    Excellent! It's working absolutely fine as per my requirement.

    By heart I appreciate you for your kind cooperation to solve my problem.

    Thank you and have a nice day.

  7. #7
    Forum Guru sktneer's Avatar
    Join Date
    04-30-2011
    Location
    Kanpur, India
    MS-Off Ver
    Office 365
    Posts
    9,655

    Re: Help require to modify this array formula

    You're welcome. Thanks for the feedback.

+ 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. Help require to modify the remark formula
    By mso3 in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 07-21-2014, 11:49 PM
  2. [SOLVED] modify array formula for additional arguments
    By neowok in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 10-25-2013, 08:14 AM
  3. Modify this array formula to correct #Num error
    By daymaker in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 07-13-2011, 11:55 AM
  4. Modify SumIF... Array Formula
    By carl in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 05-17-2005, 03:06 PM
  5. [SOLVED] RE: Modify SumIF... Array Formula
    By Peo Sjoblom in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 05-17-2005, 02:06 PM

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