+ Reply to Thread
Results 1 to 7 of 7

Ranking range of cell with value

Hybrid View

  1. #1
    Registered User
    Join Date
    09-06-2005
    Posts
    26

    Ranking range of cell with value

    How do you rank the range of cells but ignores cells with no value?

    I tried =RANK(B3,$B$3:$B$12,1) but it returns an "#N/A" if some cells is blank in a range (B3 to B12).

  2. #2
    Max
    Guest

    Re: Ranking range of cell with value

    Try instead in say, C3: =IF(B3="","",RANK(B3,$B$3:$B$12,1))
    Copy down to C12
    --
    Rgds
    Max
    xl 97
    ---
    Singapore, GMT+8
    xdemechanik
    http://savefile.com/projects/236895
    --
    "cardingtr" <[email protected]> wrote in
    message news:[email protected]...
    >
    > How do you rank the range of cells but ignores cells with no value?
    >
    > I tried =RANK(B3,$B$3:$B$12,1) but it returns an "#N/A" if some cells
    > is blank in a range (B3 to B12).
    >
    >
    > --
    > cardingtr
    > ------------------------------------------------------------------------
    > cardingtr's Profile:

    http://www.excelforum.com/member.php...o&userid=27027
    > View this thread: http://www.excelforum.com/showthread...hreadid=465810
    >




  3. #3
    Valued Forum Contributor
    Join Date
    06-30-2005
    Location
    Verwood, Dorset, England
    MS-Off Ver
    Excel 2000
    Posts
    479
    Quote Originally Posted by cardingtr
    How do you rank the range of cells but ignores cells with no value?

    I tried =RANK(B3,$B$3:$B$12,1) but it returns an "#N/A" if some cells is blank in a range (B3 to B12).
    Hi cardingtr

    Try this >

    =IF(B3="","",RANK(B3,$B$3:$B$12,1))
    Paul

  4. #4
    Registered User
    Join Date
    09-06-2005
    Posts
    26
    It still returns an "#N/A".
    How can you make "#N/A" disappear?
    The formula does not ignore empty spaces.


    Quote Originally Posted by Paul Sheppard
    Hi cardingtr

    Try this >

    =IF(B3="","",RANK(B3,$B$3:$B$12,1))

  5. #5
    Valued Forum Contributor
    Join Date
    06-30-2005
    Location
    Verwood, Dorset, England
    MS-Off Ver
    Excel 2000
    Posts
    479
    Quote Originally Posted by cardingtr
    It still returns an "#N/A".
    How can you make "#N/A" disappear?
    The formula does not ignore empty spaces.
    Hi cardingtr

    =IF(B3="","",RANK(B3,$B$3:$B$12,1)), worked ok for me, anyway try this instead

    =IF(ISNA(RANK(B3,$B$3:$B$12,1)),"",RANK(B3,$B$3:$B$12,1))

  6. #6
    Registered User
    Join Date
    09-06-2005
    Posts
    26
    Worked for me!!
    Thanks.

    Quote Originally Posted by Paul Sheppard
    Hi cardingtr

    =IF(B3="","",RANK(B3,$B$3:$B$12,1)), worked ok for me, anyway try this instead

    =IF(ISNA(RANK(B3,$B$3:$B$12,1)),"",RANK(B3,$B$3:$B$12,1))

  7. #7
    Max
    Guest

    Re: Ranking range of cell with value

    Another option other than directly error-trapping
    the #N/A return of the RANK(...) itself:

    In C3: =IF(ISNUMBER(B3),RANK(B3,$B$3:$B$12,1),"")
    C3 copied down to C12
    --
    Rgds
    Max
    xl 97
    ---
    Singapore, GMT+8
    xdemechanik
    http://savefile.com/projects/236895
    --



+ 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