Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
LRR via OfficeKB.com
 
Posts: n/a
Default ranking with some blank spaces

I am creating a ranking sheet with 20 rows. There will be a differing amount
of numbers to rank. Sometimes there may only be 10 numbers to rank and
sometimes more or less. How do you prevent the blank spaces from being part
of your ranking? In other words, if I have 10 numbers, I want to rank 1
through 10 and ignore the spaces 11 through 20.

--
Message posted via http://www.officekb.com
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
daddylonglegs
 
Posts: n/a
Default ranking with some blank spaces


If your numbers are in A2:A21 then use this formula in B2 copied down

=IF(A2<"",SUMPRODUCT(--(A$2:A$21<""),--(A$2:A$21A2))+1,"")

note: this asssumes that you want to rank from highest to lowest.....


--
daddylonglegs
------------------------------------------------------------------------
daddylonglegs's Profile: http://www.excelforum.com/member.php...o&userid=30486
View this thread: http://www.excelforum.com/showthread...hreadid=533150

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
daddylonglegs
 
Posts: n/a
Default ranking with some blank spaces


...in fact you could simplify that formula to

=IF(A2<"",COUNTIF(A$2:A$21,""&A2)+1,"")


--
daddylonglegs
------------------------------------------------------------------------
daddylonglegs's Profile: http://www.excelforum.com/member.php...o&userid=30486
View this thread: http://www.excelforum.com/showthread...hreadid=533150

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Ardus Petus
 
Posts: n/a
Default ranking with some blank spaces

=IF(ISNA(RANK(A1,A$1:A$20)),"",RANK(A1,A$1:A$20))

HTH
--
AP

"LRR via OfficeKB.com" <u20393@uwe a ้crit dans le message de
news:5ed16e1d38230@uwe...
I am creating a ranking sheet with 20 rows. There will be a differing

amount
of numbers to rank. Sometimes there may only be 10 numbers to rank and
sometimes more or less. How do you prevent the blank spaces from being

part
of your ranking? In other words, if I have 10 numbers, I want to rank 1
through 10 and ignore the spaces 11 through 20.

--
Message posted via http://www.officekb.com



  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
LRR via OfficeKB.com
 
Posts: n/a
Default ranking with some blank spaces

Works great so far. Now what if I want to rank from lowest to highest?
Meaning lowest number is "number 1".

Ardus Petus wrote:
=IF(ISNA(RANK(A1,A$1:A$20)),"",RANK(A1,A$1:A$20 ))

HTH
--
AP

I am creating a ranking sheet with 20 rows. There will be a differing amount
of numbers to rank. Sometimes there may only be 10 numbers to rank and
sometimes more or less. How do you prevent the blank spaces from being part
of your ranking? In other words, if I have 10 numbers, I want to rank 1
through 10 and ignore the spaces 11 through 20.


--
Message posted via OfficeKB.com
http://www.officekb.com/Uwe/Forums.a...tions/200604/1


  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
daddylonglegs
 
Posts: n/a
Default ranking with some blank spaces


You can adjust Ardus' suggestion to

=IF(ISNA(RANK(A1,A$1:A$20,1)),"",RANK(A1,A$1:A$20, 1))

or use

=IF(A1="","",COUNTIF(A$1:A$20,"<"&A1)+1)


--
daddylonglegs
------------------------------------------------------------------------
daddylonglegs's Profile: http://www.excelforum.com/member.php...o&userid=30486
View this thread: http://www.excelforum.com/showthread...hreadid=533150

  #7   Report Post  
Posted to microsoft.public.excel.worksheet.functions
LRR via OfficeKB.com
 
Posts: n/a
Default ranking with some blank spaces

Thanks. Works great. It's counting the zero fields in the ranking so a
field with zero is "number one" in the ranking. I just put a big number in
those fields and it works. You've all been a great help.

daddylonglegs wrote:
You can adjust Ardus' suggestion to

=IF(ISNA(RANK(A1,A$1:A$20,1)),"",RANK(A1,A$1:A$20 ,1))

or use

=IF(A1="","",COUNTIF(A$1:A$20,"<"&A1)+1)


--
Message posted via OfficeKB.com
http://www.officekb.com/Uwe/Forums.a...tions/200604/1
  #8   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Aladin Akyurek
 
Posts: n/a
Default ranking with some blank spaces

If you mean empty cells by "blank spaces"...

=IF(ISNUMBER(A2),RANK(A2,$A$2:$A$21,1),"")

LRR via OfficeKB.com wrote:
I am creating a ranking sheet with 20 rows. There will be a differing amount
of numbers to rank. Sometimes there may only be 10 numbers to rank and
sometimes more or less. How do you prevent the blank spaces from being part
of your ranking? In other words, if I have 10 numbers, I want to rank 1
through 10 and ignore the spaces 11 through 20.

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Fill blank cells with spaces [email protected] Excel Worksheet Functions 6 March 22nd 06 09:17 AM
Blank Spaces on Sort Xiazer Excel Discussion (Misc queries) 0 February 28th 06 09:56 AM
Blank spaces Scurloc Excel Discussion (Misc queries) 4 December 22nd 05 05:08 PM
CELL IS BLANK BUT NEED IT FILLED WITH SPACES TO A SPECIFIC LENGTH ืžื™ื›ืืœ (ืžื™ืงื™) ืื‘ื™ื“ืŸ Excel Worksheet Functions 0 August 29th 05 09:55 PM
"False" filling in the blank spaces Dave O. Excel Discussion (Misc queries) 1 April 17th 05 05:25 PM


All times are GMT +1. The time now is 02:07 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ฉ2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"