+ Reply to Thread
Results 1 to 5 of 5

The RANK() function cannot ignore error values

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

    The RANK() function cannot ignore error values

    Hi, I though the RANK() function automatically ignore these missing or error values. But in fact they are not

    Can you teach me how to do a ranking for a list and ignore those error values? I attached the file here.

    Thanks for help.
    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: The RANK() function cannot ignore error values

    hi BNCOXUK, try:
    =IF(ISNA(A1),"",COUNTIF($A$1:$A$5,">="&A1))

    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 Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    2016
    Posts
    14,675

    Re: The RANK() function cannot ignore error values

    Nice answer benishiryo........although I'd make one small change. If you change the 5 to a 7 so that you have two 7s and a 6 then that formula will rank the 7s as 2 and the 6 as 3 rather than the usual 1 and 3, so to get those ranks it would be like this

    =IF(ISNA(A1),"",COUNTIF($A$1:$A$5,">"&A1)+1)
    Audere est facere

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

    Re: The RANK() function cannot ignore error values

    Quote Originally Posted by daddylonglegs View Post
    Nice answer benishiryo........although I'd make one small change. If you change the 5 to a 7 so that you have two 7s and a 6 then that formula will rank the 7s as 2 and the 6 as 3 rather than the usual 1 and 3, so to get those ranks it would be like this

    =IF(ISNA(A1),"",COUNTIF($A$1:$A$5,">"&A1)+1)
    Thanks a lot for the great help. This worked well.

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

    Re: The RANK() function cannot ignore error values

    Quote Originally Posted by benishiryo View Post
    hi BNCOXUK, try:
    =IF(ISNA(A1),"",COUNTIF($A$1:$A$5,">="&A1))
    Many thanks, benishiryo

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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