+ Reply to Thread
Results 1 to 3 of 3

Rank data based on two columns

  1. #1
    Forum Contributor
    Join Date
    01-15-2013
    Location
    London
    MS-Off Ver
    Excel 2003, 2007, 2010, 2019
    Posts
    436

    Rank data based on two columns

    Hi everyone,

    I was trying to do a more advanced ranking for two columns A and B. Both columns are numeric values and there are duplicates.

    The idea is trying to sort data by column A and then by column B. The formula that I used is:

    Please Login or Register  to view this content.
    Please see the sample file here. The trouble is: the ID = 10 is not there. So why the formula failed to give a complete ranking order?

    Many thanks.
    Attached Files Attached Files

  2. #2
    Forum Guru benishiryo's Avatar
    Join Date
    03-25-2011
    Location
    Singapore
    MS-Off Ver
    Excel 2013
    Posts
    5,147

    Re: Rank data based on two columns

    hi there. you have a value 1 in column A, so number 0.8 have 10 numbers greater than itself despite not having a value in column B. if it is supposed to ignore that and assuming column B always greater than 0, maybe:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    Thanks, if you have clicked on the * and added our rep.

    If you're satisfied with the answer, click Thread Tools above your first post, select "Mark your thread as Solved".

    "Contentment is not the fulfillment of what you want, but the realization of what you already have."


    Tips & Tutorials I Compiled | How to Get Quick & Good Answers

  3. #3
    Forum Contributor
    Join Date
    06-18-2012
    Location
    London
    MS-Off Ver
    Excel 2019
    Posts
    347

    Re: Rank data based on two columns

    Many thanks, benishiryo. It worked perfectly

+ 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. Rank data and output data based on rank
    By thedrinkerparadox in forum Excel Formulas & Functions
    Replies: 15
    Last Post: 08-08-2017, 12:28 PM
  2. Replies: 4
    Last Post: 07-13-2017, 05:45 PM
  3. [SOLVED] How to RANK based on 2 columns
    By kolokoy in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 03-31-2016, 11:38 PM
  4. Need to rank a columns contents based on another column
    By pongmeister in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 01-27-2016, 12:39 AM
  5. Macro to Shift Columns based on Rank Value
    By eemrun in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-03-2013, 07:11 AM
  6. [SOLVED] Rank function, based on 2 criteria / columns
    By Hein in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 01-31-2013, 11:34 PM
  7. [SOLVED] RANK function - to return data based on 2 different columns
    By Adsup01 in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 01-30-2013, 08:17 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