#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 5
Default How to rank

I am using excel 2003. I need to know how to rank the following?

results 10 -2 -5 25 31
ranking i would like 1 2 3 1 1
I want all results 0 to get a ranking of 1. and the ones that are <0 i
want stack ranked with the first result to get a ranking of 2. Can someone
help?

--
John
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 15,768
Default How to rank

How should these numbers be ranked:

10...0...-2...-2...-3

-1...-1...-5...-5...-4

--
Biff
Microsoft Excel MVP


"jt114" wrote in message
...
I am using excel 2003. I need to know how to rank the following?

results 10 -2 -5 25 31
ranking i would like 1 2 3 1 1
I want all results 0 to get a ranking of 1. and the ones that are <0 i
want stack ranked with the first result to get a ranking of 2. Can
someone
help?

--
John



  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 5
Default How to rank

how they should be ranked

10 0 -2 -2 -3 -1 -1 -5 -5 -4
1 1 3 3 4 2 2 6 6 5
--
John


"T. Valko" wrote:

How should these numbers be ranked:

10...0...-2...-2...-3

-1...-1...-5...-5...-4

--
Biff
Microsoft Excel MVP


"jt114" wrote in message
...
I am using excel 2003. I need to know how to rank the following?

results 10 -2 -5 25 31
ranking i would like 1 2 3 1 1
I want all results 0 to get a ranking of 1. and the ones that are <0 i
want stack ranked with the first result to get a ranking of 2. Can
someone
help?

--
John




  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 15,768
Default How to rank

I'm not real sure about this but it works based on your sample numbers and
the results you say you want:

Numbers in the range A1:J1

Entered in A2 and copied across to J2:

=IF(A10,1,SUMPRODUCT(--($A1:$J1<=0),--(A1<$A1:$J1),1/COUNTIF($A1:$J1,$A1:$J1))+1)

--
Biff
Microsoft Excel MVP


"jt114" wrote in message
...
how they should be ranked

10 0 -2 -2 -3 -1 -1 -5 -5 -4
1 1 3 3 4 2 2 6 6 5
--
John


"T. Valko" wrote:

How should these numbers be ranked:

10...0...-2...-2...-3

-1...-1...-5...-5...-4

--
Biff
Microsoft Excel MVP


"jt114" wrote in message
...
I am using excel 2003. I need to know how to rank the following?

results 10 -2 -5 25 31
ranking i would like 1 2 3 1 1
I want all results 0 to get a ranking of 1. and the ones that are <0
i
want stack ranked with the first result to get a ranking of 2. Can
someone
help?

--
John






  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 5
Default How to rank

worked on all but one. here are the numbers i am using

42.77 -13.55 33.24 65.61 27.83 -13.83 10.72 -29.75 -3.33
fomula 1 2 1 1 1 3 1
4 1

it is giving a rank of 1 to the -3.33 which should be a rank of 2

--
John


"T. Valko" wrote:

I'm not real sure about this but it works based on your sample numbers and
the results you say you want:

Numbers in the range A1:J1

Entered in A2 and copied across to J2:

=IF(A10,1,SUMPRODUCT(--($A1:$J1<=0),--(A1<$A1:$J1),1/COUNTIF($A1:$J1,$A1:$J1))+1)

--
Biff
Microsoft Excel MVP


"jt114" wrote in message
...
how they should be ranked

10 0 -2 -2 -3 -1 -1 -5 -5 -4
1 1 3 3 4 2 2 6 6 5
--
John


"T. Valko" wrote:

How should these numbers be ranked:

10...0...-2...-2...-3

-1...-1...-5...-5...-4

--
Biff
Microsoft Excel MVP


"jt114" wrote in message
...
I am using excel 2003. I need to know how to rank the following?

results 10 -2 -5 25 31
ranking i would like 1 2 3 1 1
I want all results 0 to get a ranking of 1. and the ones that are <0
i
want stack ranked with the first result to get a ranking of 2. Can
someone
help?

--
John








  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 15,768
Default How to rank

worked on all but one.

If -3.33 should be ranked 2 then all the other negative numbers rank needs
to increase by 1, right?

How is 0 ranked? Should it be ranked with the positive numbers or with the
negative numbers?

--
Biff
Microsoft Excel MVP


"jt114" wrote in message
...
worked on all but one. here are the numbers i am using

42.77 -13.55 33.24 65.61 27.83 -13.83 10.72 -29.75 -3.33
fomula 1 2 1 1 1 3 1
4 1

it is giving a rank of 1 to the -3.33 which should be a rank of 2

--
John


"T. Valko" wrote:

I'm not real sure about this but it works based on your sample numbers
and
the results you say you want:

Numbers in the range A1:J1

Entered in A2 and copied across to J2:

=IF(A10,1,SUMPRODUCT(--($A1:$J1<=0),--(A1<$A1:$J1),1/COUNTIF($A1:$J1,$A1:$J1))+1)

--
Biff
Microsoft Excel MVP


"jt114" wrote in message
...
how they should be ranked

10 0 -2 -2 -3 -1 -1 -5 -5 -4
1 1 3 3 4 2 2 6 6 5
--
John


"T. Valko" wrote:

How should these numbers be ranked:

10...0...-2...-2...-3

-1...-1...-5...-5...-4

--
Biff
Microsoft Excel MVP


"jt114" wrote in message
...
I am using excel 2003. I need to know how to rank the following?

results 10 -2 -5 25 31
ranking i would like 1 2 3 1 1
I want all results 0 to get a ranking of 1. and the ones that are
<0
i
want stack ranked with the first result to get a ranking of 2. Can
someone
help?

--
John








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
rank the numbers / range of data using 'RANK' and 'ABS' KP Excel Worksheet Functions 1 March 8th 08 05:50 PM
RANK, duplicate ranking but no gaps in rank arron laing Excel Worksheet Functions 4 June 14th 06 07:57 AM
Rank where lowest value is highest rank mile3024 Excel Worksheet Functions 2 December 9th 05 10:57 PM
Does Correl/Rank combo work eg CORREL(cols E & H) where E&H=RANK(. Emmanuel Excel Worksheet Functions 3 November 12th 05 03:33 PM
Rank items, select one start date, have remaining dates follow based on rank rob normerica Excel Discussion (Misc queries) 1 August 15th 05 09:36 PM


All times are GMT +1. The time now is 03:52 AM.

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"