+ Reply to Thread
Results 1 to 8 of 8

Rank function ignoring zero and negative values

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

    Rank function ignoring zero and negative values

    Hello,

    I'm trying to rank the values in row 94 while ignoring zeros and negative values. I've input the following formula into the cells in row 95:
    =IF(D94,RANK.EQ(D94,$D$94:$AY$94,0)-COUNTIF($D94:$AY94,"<=0"),"")

    Unfortunately, the ranking values in row 95 are incorrect and some of them come out as negative numbers. Is there a way to fix my formula so the correct rankings are output in row 95? Thanks.

  2. #2
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Rank function ignoring zero and negative values

    Hi,

    Perhaps

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

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

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

    Re: Rank function ignoring zero and negative values

    Thanks Richard, that worked.

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

    Re: Rank function ignoring zero and negative values

    I have a follow-up question. Is it possible to rank the values in row 94 while ignoring only the zero values? I'd like the function to rank the values in descending order, beginning with the most positive value and ending with the most negative value while ignoring all zeros.

  5. #5
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Rank function ignoring zero and negative values

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

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

    Re: Rank function ignoring zero and negative values

    Unfortunately that didn't work. I've attached a simplified version of the spreadsheet for reference.
    Attached Files Attached Files

  7. #7
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Rank function ignoring zero and negative values

    Perhaps this then
    Attached Files Attached Files

  8. #8
    Forum Contributor
    Join Date
    12-22-2010
    Location
    Rio, Brazil
    MS-Off Ver
    Excel 2010, 2016
    Posts
    209

    Re: Rank function ignoring zero and negative values

    Marcelo Branco

+ 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. [SOLVED] The RANK() function cannot ignore error values
    By BNCOXUK in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 12-27-2012, 08:44 AM
  3. Replies: 0
    Last Post: 01-04-2012, 04:30 AM
  4. Ignoring Negative Values?
    By Copey in forum Excel General
    Replies: 1
    Last Post: 02-25-2007, 12:36 PM
  5. 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