+ Reply to Thread
Results 1 to 6 of 6

Countif funtion or any other function for ranking numbers based on condition

  1. #1
    Registered User
    Join Date
    09-09-2013
    Location
    INDIA
    MS-Off Ver
    Excel 2007
    Posts
    10

    Post Countif funtion or any other function for ranking numbers based on condition

    How to use countif function for ranking numbers.

    Please refer attachment for an example.

    Or suggest any other function to perform this operation.New Picture111.jpg

  2. #2
    Registered User
    Join Date
    09-09-2013
    Location
    INDIA
    MS-Off Ver
    Excel 2007
    Posts
    10

    Re: Countif funtion or any other function for ranking numbers based on condition

    Values in the column which are greater than 10 should be ranked in ascending and descending order.

  3. #3
    Forum Expert Ace_XL's Avatar
    Join Date
    06-04-2012
    Location
    UAE
    MS-Off Ver
    2016
    Posts
    6,074

    Re: Countif funtion or any other function for ranking numbers based on condition

    With your data in A2:A8 and the number 10 in cell b1 use

    In B2
    =IF(A2<$B$1,0,COUNTIF($A$2:$A$8,">"&A2)+1)

    Copy down
    Life's a spreadsheet, Excel!
    Say thanks, Click *

  4. #4
    Registered User
    Join Date
    09-09-2013
    Location
    INDIA
    MS-Off Ver
    Excel 2007
    Posts
    10

    Re: Countif funtion or any other function for ranking numbers based on condition

    thanks a lot.. it worked

  5. #5
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,166

    Re: Countif funtion or any other function for ranking numbers based on condition

    Based on your last post in this thread, its apparent that you are satisfied with the solution(s) you've received and have solved your question, but you haven't marked your thread as "SOLVED". I will do it for you this time.

    In future, to mark your thread as Solved, you can do the following -
    Select Thread Tools-> Mark thread as Solved.

    Incase your issue is not solved, you can undo it as follows -
    Select Thread Tools-> Mark thread as Unsolved.

    Also, since you are relatively new to the forum, i would like to inform you that you can thank those who have helped you by clicking the small star icon located in the lower left corner of the post which helped you. This adds to the reputation of the person who has taken the time to help you.
    If I have helped, Don't forget to add to my reputation (click on the star below the post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)
    Use code tags when posting your VBA code: [code] Your code here [/code]

  6. #6
    Registered User
    Join Date
    01-10-2014
    Location
    Grand Rapids, MI
    MS-Off Ver
    Excel 2007
    Posts
    5

    Re: Countif funtion or any other function for ranking numbers based on condition

    thanks for the info here, that worked with solving my problems as well

+ 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. Frequency function to correct ranking instead of countif
    By Scottlarock in forum Excel Formulas & Functions
    Replies: 14
    Last Post: 08-03-2013, 07:40 PM
  2. How to COUNTIF the amount based 2 condition
    By pjlau in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 05-03-2012, 07:03 AM
  3. Ranking columns based on condition in Excel
    By srikanth_bgl in forum Excel General
    Replies: 1
    Last Post: 02-10-2011, 01:36 PM
  4. COUNTIF based on condition from 2 columns
    By alexandruc in forum Excel - New Users/Basics
    Replies: 2
    Last Post: 12-07-2009, 06:06 AM
  5. 2 condition countif function using AND
    By martindwilson in forum Excel General
    Replies: 2
    Last Post: 04-14-2009, 05:40 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