Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 107
Default Equal ranks - but no gaps

I checked quite a number of answers in this area, but couldn't find a
solution to my little ranking problem (column B is the ranking as I would
like to see it):

A B
1 Value Rank
2 1 1
3 1 1
4 1 1
5 2 2 <----- that being the 'tricky' part :)
6 3 3

Thank you very much!
Thomas
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 4,339
Default Equal ranks - but no gaps

It's late ...ignore my last reply!

"Thomas" wrote:

I checked quite a number of answers in this area, but couldn't find a
solution to my little ranking problem (column B is the ranking as I would
like to see it):

A B
1 Value Rank
2 1 1
3 1 1
4 1 1
5 2 2 <----- that being the 'tricky' part :)
6 3 3

Thank you very much!
Thomas

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 4,339
Default Equal ranks - but no gaps

Try:

=SMALL($A$1:$A$5,ROW())

"Thomas" wrote:

I checked quite a number of answers in this area, but couldn't find a
solution to my little ranking problem (column B is the ranking as I would
like to see it):

A B
1 Value Rank
2 1 1
3 1 1
4 1 1
5 2 2 <----- that being the 'tricky' part :)
6 3 3

Thank you very much!
Thomas

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
bj bj is offline
external usenet poster
 
Posts: 1,397
Default Equal ranks - but no gaps

one method would be to use some helper columns(C:D?)

use advanced filter to generate a list of unique numbers from column A in
the first helper column
in the second helper column, use the rank() function on the first helper
column
in column B use vlookup(A2,C$1!:D$3,2) copy and drag down


"Thomas" wrote:

I checked quite a number of answers in this area, but couldn't find a
solution to my little ranking problem (column B is the ranking as I would
like to see it):

A B
1 Value Rank
2 1 1
3 1 1
4 1 1
5 2 2 <----- that being the 'tricky' part :)
6 3 3

Thank you very much!
Thomas

  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 4,339
Default Equal ranks - but no gaps

Set B2=1

in B3 and copy down:

=IF(A3=A2,B2,B2+1)



"Thomas" wrote:

I checked quite a number of answers in this area, but couldn't find a
solution to my little ranking problem (column B is the ranking as I would
like to see it):

A B
1 Value Rank
2 1 1
3 1 1
4 1 1
5 2 2 <----- that being the 'tricky' part :)
6 3 3

Thank you very much!
Thomas



  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default Equal ranks - but no gaps

If the values are unsorted:

=IF(A2="","",SUMPRODUCT(--(A2A$2:A$6),1/COUNTIF(A$2:A$6,A$2:A$6&""))+1)

--
Biff
Microsoft Excel MVP


"Toppers" wrote in message
...
Set B2=1

in B3 and copy down:

=IF(A3=A2,B2,B2+1)



"Thomas" wrote:

I checked quite a number of answers in this area, but couldn't find a
solution to my little ranking problem (column B is the ranking as I would
like to see it):

A B
1 Value Rank
2 1 1
3 1 1
4 1 1
5 2 2 <----- that being the 'tricky' part :)
6 3 3

Thank you very much!
Thomas



  #7   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 107
Default Equal ranks - but no gaps

Thanks a lot!! Worked like a charm!!!!!

"T. Valko" wrote:

If the values are unsorted:

=IF(A2="","",SUMPRODUCT(--(A2A$2:A$6),1/COUNTIF(A$2:A$6,A$2:A$6&""))+1)

--
Biff
Microsoft Excel MVP


"Toppers" wrote in message
...
Set B2=1

in B3 and copy down:

=IF(A3=A2,B2,B2+1)



"Thomas" wrote:

I checked quite a number of answers in this area, but couldn't find a
solution to my little ranking problem (column B is the ranking as I would
like to see it):

A B
1 Value Rank
2 1 1
3 1 1
4 1 1
5 2 2 <----- that being the 'tricky' part :)
6 3 3

Thank you very much!
Thomas




  #8   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default Equal ranks - but no gaps

You're welcome. Thanks for the feedback!

--
Biff
Microsoft Excel MVP


"Thomas" wrote in message
...
Thanks a lot!! Worked like a charm!!!!!

"T. Valko" wrote:

If the values are unsorted:

=IF(A2="","",SUMPRODUCT(--(A2A$2:A$6),1/COUNTIF(A$2:A$6,A$2:A$6&""))+1)

--
Biff
Microsoft Excel MVP


"Toppers" wrote in message
...
Set B2=1

in B3 and copy down:

=IF(A3=A2,B2,B2+1)



"Thomas" wrote:

I checked quite a number of answers in this area, but couldn't find a
solution to my little ranking problem (column B is the ranking as I
would
like to see it):

A B
1 Value Rank
2 1 1
3 1 1
4 1 1
5 2 2 <----- that being the 'tricky' part :)
6 3 3

Thank you very much!
Thomas






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
PivotTable w/ Ranks bbddvv Excel Discussion (Misc queries) 0 June 27th 06 06:54 PM
sorting with RANK/VLOOKUP (problem with equal ranks) hip Excel Worksheet Functions 2 February 28th 06 06:39 AM
DUPLICATE RANKS Matthew Excel Worksheet Functions 8 December 23rd 05 12:59 AM
Transpose Column With Gaps to Row With No Gaps? SteveC Excel Discussion (Misc queries) 5 June 18th 05 01:01 AM
Sum of ranks Tim Otero Excel Worksheet Functions 11 June 7th 05 08:06 AM


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