Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 40
Default Rank in ascending order in Excel 2003

In column A is the name of the accout; column B, minutes, column c, the rank
where the lowest number of minutes is ranked number 1. Any accounts with zero
minutes should not be ranked or should have the highest rank (low minutes are
good; zero minutes means no rank)

Col A Col B Col C
Fred 69 8
Chris 0
North 41.4 6
Alex 52 7
Larry 0
South 0
Olaf 0
Merry 0

I have tried a combination of if and rank functions, such as this one:
=IF(A2=0," ",(RANK(a2,$a$2:$a$10,1))), but the zero minutes is causing the
North account to show a rank of 6 when it should have a rank of 1. Any
asstance would be appreciated. Thank you.

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default Rank in ascending order in Excel 2003

Try this:

=IF(B2=0,"",SUMPRODUCT(--(B$2:B$100),--(B$2:B$10<B2))+1)

--
Biff
Microsoft Excel MVP


"Basenji" wrote in message
...
In column A is the name of the accout; column B, minutes, column c, the
rank
where the lowest number of minutes is ranked number 1. Any accounts with
zero
minutes should not be ranked or should have the highest rank (low minutes
are
good; zero minutes means no rank)

Col A Col B Col C
Fred 69 8
Chris 0
North 41.4 6
Alex 52 7
Larry 0
South 0
Olaf 0
Merry 0

I have tried a combination of if and rank functions, such as this one:
=IF(A2=0," ",(RANK(a2,$a$2:$a$10,1))), but the zero minutes is causing the
North account to show a rank of 6 when it should have a rank of 1. Any
asstance would be appreciated. Thank you.



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 40
Default Rank in ascending order in Excel 2003

Thank you for your assistance as it met the need. A couple of questions:
1. What is the purpose of the dashes in front of the range?

2. Why is "1" added at the end?

Thank you.

"T. Valko" wrote:

Try this:

=IF(B2=0,"",SUMPRODUCT(--(B$2:B$100),--(B$2:B$10<B2))+1)

--
Biff
Microsoft Excel MVP


"Basenji" wrote in message
...
In column A is the name of the accout; column B, minutes, column c, the
rank
where the lowest number of minutes is ranked number 1. Any accounts with
zero
minutes should not be ranked or should have the highest rank (low minutes
are
good; zero minutes means no rank)

Col A Col B Col C
Fred 69 8
Chris 0
North 41.4 6
Alex 52 7
Larry 0
South 0
Olaf 0
Merry 0

I have tried a combination of if and rank functions, such as this one:
=IF(A2=0," ",(RANK(a2,$a$2:$a$10,1))), but the zero minutes is causing the
North account to show a rank of 6 when it should have a rank of 1. Any
asstance would be appreciated. Thank you.




  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default Rank in ascending order in Excel 2003

1.What is the purpose of the dashes in front of the range?

See this:

http://mcgimpsey.com/excel/formulae/doubleneg.html

2.Why is "1" added at the end?


In essence, the formula is counting how many numbers are less than n.
Consider this example:

5 rank = 1
10 rank = 2

When ranking 5 there are no numbers less than 5 so the rank would 0 but
that's not a valid rank so we add 1 to get a rank of 1.

When ranking 10 there is 1 number less than 10 so the rank would be 1 but we
already have a rank of 1 so we add 1 to get a rank of 2.

--
Biff
Microsoft Excel MVP


"Basenji" wrote in message
...
Thank you for your assistance as it met the need. A couple of questions:
1. What is the purpose of the dashes in front of the range?

2. Why is "1" added at the end?

Thank you.

"T. Valko" wrote:

Try this:

=IF(B2=0,"",SUMPRODUCT(--(B$2:B$100),--(B$2:B$10<B2))+1)

--
Biff
Microsoft Excel MVP


"Basenji" wrote in message
...
In column A is the name of the accout; column B, minutes, column c, the
rank
where the lowest number of minutes is ranked number 1. Any accounts
with
zero
minutes should not be ranked or should have the highest rank (low
minutes
are
good; zero minutes means no rank)

Col A Col B Col C
Fred 69 8
Chris 0
North 41.4 6
Alex 52 7
Larry 0
South 0
Olaf 0
Merry 0

I have tried a combination of if and rank functions, such as this one:
=IF(A2=0," ",(RANK(a2,$a$2:$a$10,1))), but the zero minutes is causing
the
North account to show a rank of 6 when it should have a rank of 1. Any
asstance would be appreciated. Thank you.






  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 40
Default Rank in ascending order in Excel 2003

Thank you for the explanations.

"T. Valko" wrote:

1.What is the purpose of the dashes in front of the range?


See this:

http://mcgimpsey.com/excel/formulae/doubleneg.html

2.Why is "1" added at the end?


In essence, the formula is counting how many numbers are less than n.
Consider this example:

5 rank = 1
10 rank = 2

When ranking 5 there are no numbers less than 5 so the rank would 0 but
that's not a valid rank so we add 1 to get a rank of 1.

When ranking 10 there is 1 number less than 10 so the rank would be 1 but we
already have a rank of 1 so we add 1 to get a rank of 2.

--
Biff
Microsoft Excel MVP


"Basenji" wrote in message
...
Thank you for your assistance as it met the need. A couple of questions:
1. What is the purpose of the dashes in front of the range?

2. Why is "1" added at the end?

Thank you.

"T. Valko" wrote:

Try this:

=IF(B2=0,"",SUMPRODUCT(--(B$2:B$100),--(B$2:B$10<B2))+1)

--
Biff
Microsoft Excel MVP


"Basenji" wrote in message
...
In column A is the name of the accout; column B, minutes, column c, the
rank
where the lowest number of minutes is ranked number 1. Any accounts
with
zero
minutes should not be ranked or should have the highest rank (low
minutes
are
good; zero minutes means no rank)

Col A Col B Col C
Fred 69 8
Chris 0
North 41.4 6
Alex 52 7
Larry 0
South 0
Olaf 0
Merry 0

I have tried a combination of if and rank functions, such as this one:
=IF(A2=0," ",(RANK(a2,$a$2:$a$10,1))), but the zero minutes is causing
the
North account to show a rank of 6 when it should have a rank of 1. Any
asstance would be appreciated. Thank you.









  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default Rank in ascending order in Excel 2003

You're welcome!

--
Biff
Microsoft Excel MVP


"Basenji" wrote in message
...
Thank you for the explanations.

"T. Valko" wrote:

1.What is the purpose of the dashes in front of the range?


See this:

http://mcgimpsey.com/excel/formulae/doubleneg.html

2.Why is "1" added at the end?


In essence, the formula is counting how many numbers are less than n.
Consider this example:

5 rank = 1
10 rank = 2

When ranking 5 there are no numbers less than 5 so the rank would 0 but
that's not a valid rank so we add 1 to get a rank of 1.

When ranking 10 there is 1 number less than 10 so the rank would be 1 but
we
already have a rank of 1 so we add 1 to get a rank of 2.

--
Biff
Microsoft Excel MVP


"Basenji" wrote in message
...
Thank you for your assistance as it met the need. A couple of
questions:
1. What is the purpose of the dashes in front of the range?

2. Why is "1" added at the end?

Thank you.

"T. Valko" wrote:

Try this:

=IF(B2=0,"",SUMPRODUCT(--(B$2:B$100),--(B$2:B$10<B2))+1)

--
Biff
Microsoft Excel MVP


"Basenji" wrote in message
...
In column A is the name of the accout; column B, minutes, column c,
the
rank
where the lowest number of minutes is ranked number 1. Any accounts
with
zero
minutes should not be ranked or should have the highest rank (low
minutes
are
good; zero minutes means no rank)

Col A Col B Col C
Fred 69 8
Chris 0
North 41.4 6
Alex 52 7
Larry 0
South 0
Olaf 0
Merry 0

I have tried a combination of if and rank functions, such as this
one:
=IF(A2=0," ",(RANK(a2,$a$2:$a$10,1))), but the zero minutes is
causing
the
North account to show a rank of 6 when it should have a rank of 1.
Any
asstance would be appreciated. Thank you.









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
Excel worksheets needs to sort ascending or descending order. Md. Mahfuzul Mannan Excel Worksheet Functions 1 September 3rd 06 05:04 PM
How do I # my rows in ascending order. burgos Excel Worksheet Functions 1 February 16th 06 07:13 PM
Digits in ascending order ? toyota58 Excel Worksheet Functions 2 February 3rd 06 06:47 PM
Formatting cells in Excel with Ascending/Descending order Andrew Buckley Excel Discussion (Misc queries) 0 November 30th 05 04:41 PM
How do I lookup a value in a array that is not in ascending order John Excel Worksheet Functions 6 June 20th 05 09:40 PM


All times are GMT +1. The time now is 02:51 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"