Welcome to the Excel Forum

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed.

Please Register to Remove these Ads

Please Register to Remove these Ads



Reply
  #1  
Old 07-04-2009, 02:51 AM
steviegee steviegee is offline
Registered User
 
Join Date: 28 Jun 2007
Posts: 31
steviegee is becoming part of the community
Rank Function

Please Register to Remove these Ads

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
Reply With Quote
  #2  
Old 07-04-2009, 03:27 AM
ConneXionLost's Avatar
ConneXionLost ConneXionLost is offline
Valued Forum Contributor
 
Join Date: 11 Mar 2009
Location: Victoria, Canada
MS Office Version:2003
Posts: 576
ConneXionLost is attaining expert status ConneXionLost is attaining expert status
Re: Rank Function

Hi steviegee,

Try this:

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

Cheers,
__________________
Docendo discimus.
Reply With Quote
  #3  
Old 07-04-2009, 09:36 AM
JBeaucaire's Avatar
JBeaucaire JBeaucaire is offline
Forum Guru
 
Join Date: 21 Mar 2008
Location: Bakersfield, CA
MS Office Version:2003 (can read 2007 files)
Posts: 9,517
JBeaucaire makes giving solutions look like childsplay JBeaucaire makes giving solutions look like childsplay JBeaucaire makes giving solutions look like childsplay JBeaucaire makes giving solutions look like childsplay JBeaucaire makes giving solutions look like childsplay JBeaucaire makes giving solutions look like childsplay JBeaucaire makes giving solutions look like childsplay JBeaucaire makes giving solutions look like childsplay JBeaucaire makes giving solutions look like childsplay JBeaucaire makes giving solutions look like childsplay
Send a message via Skype™ to JBeaucaire
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.
__________________
If you've been given good help, use the icon in that post to give reputation feedback, it is appreciated.
Always put your code between [code] and [/code] tags.
“None of us is as good as all of us” - Ray Kroc
“Actually, I *am* a rocket scientist.” - JB (little ones count!)
Reply With Quote


Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

Forum Jump