+ Reply to Thread
Results 1 to 3 of 3

Thread: Rank Function

  1. #1
    Registered User
    Join Date
    06-28-2007
    Posts
    31

    Rank Function

    Morning all.



    I am using this formula to find rank in column A
    =IF(A2="","",RANK(A2,A$2:A$30,0))

    however how do i get rid of the value error i get if a cell has text in.


    many thanks
    steviegee

  2. #2
    Forum Guru ConneXionLost's Avatar
    Join Date
    03-11-2009
    Location
    traded up
    MS-Off Ver
    2003 & 2010
    Posts
    1,905

    Re: Rank Function

    Hi steviegee,

    Try this:

    	
    	=IF(OR(A2="",ISTEXT(A2)),"",RANK(A2,A$2:A$30,0))
    HTH

    Cheers,
    “To sin by silence when they should protest makes cowards of men.” ~ Abraham Lincoln

  3. #3
    Forum Guru JBeaucaire's Avatar
    Join Date
    03-21-2008
    Location
    Bakersfield, CA
    MS-Off Ver
    2010
    Posts
    19,190

    Re: Rank Function

    Or to keep the test down to one calculation:

    =IF(ISNUMBER(A2), RANK(A2, A$2:A$30,0), "")

    NOTE: Zero evaluates as a number, so zeros would generate a rank, and blank cells or null cells would not.
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    “None of us is as good as all of us” - Ray Kroc
    “Actually, I *am* a rocket scientist.” - JB (little ones count!)

+ 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.2.0