Prev Previous Post   Next Post Next
  #10   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 15,768
Default Rank problem

Try this:

=RANK(I15,I$15:I$314)+COUNTIF(I$15:I15,I15)-1

--
Biff
Microsoft Excel MVP


"Mike H" wrote in message
...
I think we have a solution!! Put this in a cell and commit with
Ctrl+Shift+Enter and Excel will put curly brackets around it { } because
it's an array. Drag it down

=SUM(1*(I15<$I$15:$I$314))+1+IF(ROW(I15)-ROW($I$15)=0,0,SUM(1*(I15=OFFSET($I$15,0,0,INDEX(R OW(I15)-ROW($I$15)+1,1)-1,1))))

Remember its an array so Ctrl+Shift+Enter

Mike

"Charno" wrote:

sorry mike, i don't think i'm explaining this well. Think i have got
brain
freeze from this spreadsheet lol. I've changed the question marks in your
post to reflect the results i want.
as you can see 134 shows twice in the list so instead of returning the
same
rank (which would have been 2 for both figures) i want it to show 2 and
3.

"Mike H" wrote:

Yes it does it replicates what was in your first post so I ask again
change
the question marks to what you want to see on your worklsheet

123 4
134 2
143 1
134 3
111 5

Mike


"Charno" wrote:

it still returns duplicate numbers if there is matching data in
column I.

"Mike H" wrote:

Ah I think I see, rank wouldn't produce the result in your example
so perhaps
that's what you want to see so try this.

=SUMPRODUCT(--(I15<$I$15:$I$314),1/COUNTIF($I$15:$I$314,$I$15:$I$314&""))+1

Mike

"Mike H" wrote:

For your posted example what would you want to see as a result?

"Charno" wrote:

i have the following formula to rank a column of data
=RANK(I15,$I$15:$I$314,0) but the problem i have is that if the
data is
duplicated then it returns a duplicate rank. ie..

DATA Rank
123 3
134 2
143 1
134 2
111 4

how do i get the formula to no duplicate the rank?






 
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 problem, is there a limit? [email protected] Excel Discussion (Misc queries) 2 September 4th 07 09:50 PM
rank problem bill gras Excel Worksheet Functions 3 June 4th 06 08:11 AM
Count and Rank problem tonystowe Excel Discussion (Misc queries) 4 April 6th 06 02:03 PM
Rank & Match Problem Nuno D Excel Worksheet Functions 3 February 4th 06 08:39 AM
Nested IF's with Rank Problem exutable Excel Worksheet Functions 2 November 9th 05 12:50 PM


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