Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 137
Default Not ranking 0's

I am trying to rank a string of 5 numbers giving each rank a score depending
on their effort. The problem I have is that some efforts have a 0, yet the
rank function still gives them a value of at least 1.

Example

Alpha 5
Bravo 0
Charlie 4
Delta 1
Echo 3

The result would be:
Alpha - rank 1
Charlie - rank 2
Echo - rank 3
Delta - rank 4
Bravo - rank 5

How can I tell the command to, if it sees a 0, award it a 0 ranking?
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,501
Default Not ranking 0's

Darren,

Try this and drag down

=IF(B1=0,0,SUMPRODUCT(1-($B$1:$B$5=0),--(B1 < $B$1:$B$5))+1)

--
Mike

When competing hypotheses are otherwise equal, adopt the hypothesis that
introduces the fewest assumptions while still sufficiently answering the
question.


"Darren" wrote:

I am trying to rank a string of 5 numbers giving each rank a score depending
on their effort. The problem I have is that some efforts have a 0, yet the
rank function still gives them a value of at least 1.

Example

Alpha 5
Bravo 0
Charlie 4
Delta 1
Echo 3

The result would be:
Alpha - rank 1
Charlie - rank 2
Echo - rank 3
Delta - rank 4
Bravo - rank 5

How can I tell the command to, if it sees a 0, award it a 0 ranking?

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
ranking? JBG Excel Worksheet Functions 8 February 29th 08 07:35 PM
Ranking casdaq Excel Worksheet Functions 1 March 28th 07 02:26 AM
Ranking Teethless mama Excel Worksheet Functions 0 March 28th 07 12:23 AM
Ranking casdaq Excel Worksheet Functions 0 March 28th 07 12:09 AM
ranking Soz Excel Worksheet Functions 6 September 14th 05 05:55 PM


All times are GMT +1. The time now is 02:12 PM.

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

About Us

"It's about Microsoft Excel"