+ Reply to Thread
Results 1 to 4 of 4

Ranking with duplicate values while ignoring zeros and negative values

  1. #1
    Registered User
    Join Date
    11-29-2012
    Location
    United States
    MS-Off Ver
    Excel 2010
    Posts
    24

    Ranking with duplicate values while ignoring zeros and negative values

    I'm trying to rank the values in cells S32:S38 in ascending order while ignoring zeros and negative values. I also need to rank duplicate values with a unique ranking, so that no ranking value is repeated. I tried the formula below, but the ranking values start at "2" instead of "1" and I can't figure out how to fix it. Any ideas?

    Thanks

    Formula: copy to clipboard
    Please Login or Register  to view this content.

  2. #2
    Forum Moderator daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    2016
    Posts
    14,676

    Re: Ranking with duplicate values while ignoring zeros and negative values

    Try this version

    =IF(S32<=0,"N/A",COUNTIFS(S$32:S$38,"<"&S32,S$32:S$38,">0")+COUNTIF(S$32:S32,S32))
    Audere est facere

  3. #3
    Registered User
    Join Date
    11-29-2012
    Location
    United States
    MS-Off Ver
    Excel 2010
    Posts
    24

    Re: Ranking with duplicate values while ignoring zeros and negative values

    Thanks daddylonglegs that worked well.

  4. #4
    Registered User
    Join Date
    06-24-2017
    Location
    India
    MS-Off Ver
    2007
    Posts
    1

    Re: Ranking with duplicate values while ignoring zeros and negative values

    Quote Originally Posted by daddylonglegs View Post
    Try this version

    =IF(S32<=0,"N/A",COUNTIFS(S$32:S$38,"<"&S32,S$32:S$38,">0")+COUNTIF(S$32:S32,S32))
    such a great formula ...thanks a lot...but what if i want same ranking for duplicate values while ignoring zeros??????

+ 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. Ignoring Negative Values in SUM function
    By Rocksteady in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 03-30-2013, 11:18 AM
  2. Ignoring values with zeros
    By exdox77 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 02-06-2013, 10:32 PM
  3. Ranking Values, ignoring zeroes
    By yusunghee in forum Excel General
    Replies: 1
    Last Post: 05-11-2011, 04:53 PM
  4. Ignoring Negative Values?
    By Copey in forum Excel General
    Replies: 1
    Last Post: 02-25-2007, 12:36 PM
  5. [SOLVED] Ignoring Negative Values
    By solomon_monkey in forum Excel General
    Replies: 3
    Last Post: 06-21-2005, 12:05 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