+ Reply to Thread
Results 1 to 7 of 7

Rank with multiple creteria

  1. #1
    Registered User
    Join Date
    10-26-2014
    Location
    Mumbai
    MS-Off Ver
    2007
    Posts
    4

    Rank with multiple creteria

    Hi,

    I want to rank score base on division value. I have used below formula in cell C2 but not getting actual value as shown in D column. Any ideal please

    =IF(A2="A",SUMPRODUCT(--(COUNTIF(OFFSET($B$2,,,ROW($B$2:$B$9)-ROW($B$2)+1),$B$2:$B$9)=1),--($B$2:$B$9>=B2),--($A$2:$A$9="A")),IF(A2="B",SUMPRODUCT(--(COUNTIF(OFFSET($B$2,,,ROW($B$2:$B$9)-ROW($B$2)+1),$B$2:$B$9)=1),--($B$2:$B$9>=B2),--($A$2:$A$9="B")),""))


    Untitled.jpg

  2. #2
    Registered User
    Join Date
    10-13-2014
    Location
    indonesia
    MS-Off Ver
    2010
    Posts
    2

    Re: Rank with multiple creteria

    Hi,

    you can use Rank Function
    put on column C2 and paste until C5; =RANK(B2,$B$2:$B$5),
    Put on column C6and paste until C9; =RANK(B6,$B$6:$B$9)

  3. #3
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Rank with multiple creteria

    hmm closest i can get at the moment is
    =COUNTIFS($A$2:$A$9,A2,B$2:B$9,">"&B2)+1
    gives
    a 3 4
    a 44 1
    a 6 2
    a 6 2
    b 34 2
    b 1 4
    b 44 1
    b 3 3
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and now happily retired
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

  4. #4
    Registered User
    Join Date
    10-26-2014
    Location
    Mumbai
    MS-Off Ver
    2007
    Posts
    4

    Re: Rank with multiple creteria

    Thanks Martin, but not getting exact result as I want. First row result showing 4 instead of 3. Formula is not giving proper result when there is duplicate value in division A & B. Anyone has idea to get proper result as shown below in column D

    Untitled.jpg

  5. #5
    Registered User
    Join Date
    10-26-2014
    Location
    Mumbai
    MS-Off Ver
    2007
    Posts
    4

    Re: Rank with multiple creteria

    Untitled.jpgThanks Martin, but not getting exact result as I want. First row result showing 4 instead of 3. Formula is not giving proper result when there is duplicate value in division A & B. Anyone has idea to get proper result as shown below in column D

    Attachment 354524

  6. #6
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Rank with multiple creteria

    try this array entered formula
    =SUM(IF(FREQUENCY(IF(A$2:A$19=A2,IF(B$2:B$19>B2,B$2:B$9)),B$2:B$9),1))+1

  7. #7
    Registered User
    Join Date
    10-26-2014
    Location
    Mumbai
    MS-Off Ver
    2007
    Posts
    4

    Re: Rank with multiple creteria

    Thanks Martin, this formula is working excellent 100/100. One again thanks a lot

+ 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. Multiple creteria
    By UNNI NAIR in forum Excel - New Users/Basics
    Replies: 3
    Last Post: 09-16-2014, 10:18 AM
  2. Replies: 1
    Last Post: 11-30-2013, 06:48 AM
  3. Vlookup with multiple creteria
    By sathiyamoorthy in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 08-20-2013, 05:11 AM
  4. Count Unique Values With Multiple Creteria.
    By hecgroups in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 12-15-2012, 11:04 AM
  5. Vlookup or macro for multiple creteria
    By Wskip49 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-13-2008, 09:51 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