Results 1 to 3 of 3

Rank data based on two columns

Threaded View

  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:

    =IF((A1="")+(B1=""),"",COUNTIF($A$1:$A$20,">"&A1)+COUNTIFS($A$1:$A$20,A1,$B$1:$B$20,">"&B1)+COUNTIFS($A$1:A1,A1,$B$1:B1,B1))
    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

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