+ Reply to Thread
Results 1 to 11 of 11

Rank If formula to break the ties and ignore zeros

  1. #1
    Forum Contributor
    Join Date
    12-11-2014
    Location
    dubai
    MS-Off Ver
    2010
    Posts
    142

    Rank If formula to break the ties and ignore zeros

    Hi Guys

    I am looking for Rank if formula which break the ties and ignore zeros.Below is the output required

    Col A Col B Col C
    Model Values Rank Output
    Model 1 1 4
    Model 1 2 3
    Model 1 3 2
    Model 1 4 1
    Model 1 4 1
    Model 2 0 0
    Model 2 0 0
    Model 2 1 3
    Model 2 2 2
    Model 2 3 1


    Request for help, and how to reverse order of the rank?

  2. #2
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2406
    Posts
    44,662

    Re: Rank If formula to break the ties and ignore zeros

    This is a little confusing. You ask for a tie break, yet you have two model 1s with the same value (4) and the same rank order (1). So, are these to be shown as being of equal rank, or the tied result broken?
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU

  3. #3
    Forum Contributor
    Join Date
    12-11-2014
    Location
    dubai
    MS-Off Ver
    2010
    Posts
    142

    Re: Rank If formula to break the ties and ignore zeros

    Hi Glenn

    That two 4'ws was intentional.thats where i had got stuck.
    Like in above case i want equal rank in 4 (i.e both 1 rank) and for 3 i need rank 2 and not rank 3.

  4. #4
    Forum Contributor
    Join Date
    12-11-2014
    Location
    dubai
    MS-Off Ver
    2010
    Posts
    142

    Re: Rank If formula to break the ties and ignore zeros

    How to include if formula for dynamic range in below formula
    =SUM(1/COUNTIF(B$1:B$100,B$1:B$100)*(B$1:B$100<B1))+1 Ctrl+Shift+Enter

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

    Re: Rank If formula to break the ties and ignore zeros

    You get better help on your question if you add a small excel file, without confidential information.

    Please also add manualy the expected result in your file.

    To Attach a File:

    1. Scroll down to the window below your post Additional Options
    2. In the frame Attach Files you will see the button Manage Attachments
    3. Click the button.
    4. A new window will open titled Manage Attachments - Excel Forum.
    5. Click the Browse... button to locate your file for uploading.
    6. This will open a new window File Upload.
    7. Once you have located the file to upload click the Open button. This window will close.
    8. You are now back in the Manage Attachments - Excel Forum window.
    9. Click the Upload button and wait until the file has uploaded.
    10. Close the window and then click Submit.
    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.

  6. #6
    Forum Contributor
    Join Date
    12-11-2014
    Location
    dubai
    MS-Off Ver
    2010
    Posts
    142

    Re: Rank If formula to break the ties and ignore zeros

    Attached is the sample workbook..
    Attached Files Attached Files

  7. #7
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2406
    Posts
    44,662

    Re: Rank If formula to break the ties and ignore zeros

    Hi there. Try this:
    =IF(B2=0,"",SUMPRODUCT((B2 < B$2:B$11)*($B$2:$B$11>0)*($A$2:$A$11=A2)/COUNTIFS($A$2:$A$11,$A$2:$A$11,B$2:B$11,B$2:B$11))+1)

    I think you made a mistake in your example sheet. There was no tied value for 1st place, model 1.
    Last edited by Glenn Kennedy; 11-16-2015 at 09:32 AM.

  8. #8
    Forum Contributor
    Join Date
    12-11-2014
    Location
    dubai
    MS-Off Ver
    2010
    Posts
    142

    Re: Rank If formula to break the ties and ignore zeros

    Yea sorry for the mistake..
    Formula works fine..
    Thanks a lott

  9. #9
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2406
    Posts
    44,662

    Re: Rank If formula to break the ties and ignore zeros

    Great! I'm glad to have helped! If that takes care of your original question, please select "Thread Tools" from the menu link above and mark this thread as SOLVED.

    It'd also be appreciated if you were to click the Add Reputation button at the foot of any of the posts of all members who helped you reach a solution.

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

    Re: Rank If formula to break the ties and ignore zeros

    or you could sort the data.

    you can unsort the data by sort on original

    See the attached file.

  11. #11
    Forum Expert newdoverman's Avatar
    Join Date
    02-07-2013
    Location
    Port Dover, Ontario, Canada
    MS-Off Ver
    2010
    Posts
    10,330

    Re: Rank If formula to break the ties and ignore zeros

    This will rank with a decimal value so that there are no ties.
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    This can be sorted in order to give the following result:
    A
    B
    C
    1
    Model Values Rank Output
    2
    Model1
    5
    1
    3
    Model1
    5
    1.01
    4
    Model1
    4
    3.02
    5
    Model1
    3
    4.03
    6
    Model1
    1
    5.04
    7
    Model2
    3
    1.05
    8
    Model2
    2
    2.06
    9
    Model2
    1
    3.07
    10
    Model2
    0
    11
    Model2
    0
    <---------If you like someone's answer, click the star to the left of one of their posts to give them a reputation point for that answer.
    Ron W

+ 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. [SOLVED] formula to lookup rank (with ties)
    By Phily915 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 02-15-2014, 10:20 PM
  2. How to break ties in the RANK function
    By ducecoop in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 10-20-2013, 12:38 AM
  3. Replies: 3
    Last Post: 08-02-2013, 02:16 PM
  4. [SOLVED] RANK - Breaking Ties
    By sachinattri in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 05-28-2013, 04:32 AM
  5. Rank Ties On Another Field
    By SuperMaths in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 03-06-2013, 12:55 PM
  6. RANK with ties
    By bluenova8413 in forum Excel General
    Replies: 2
    Last Post: 05-25-2010, 08:25 PM
  7. INDEX, RANK and ties
    By ugaskidawg in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 03-09-2009, 09:35 PM
  8. [SOLVED] How to use RANK to break multiple ties.
    By Brian in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 02-03-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