Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
J.W.
 
Posts: n/a
Default How to sum lowest lanking numbers?

I have the following code that ranks numbers from highest to lowest. ie.
50=1, 40=2, etc.
{=SUM(1*(D8<$D$7:$D$23))+1+IF(ROW(D8)-ROW($D$7)=0,0,SUM(1*(D8=OFFSET($D$1,0,0,INDEX(ROW( D8)-ROW($D$7)+1,1)-1,1))))}
This is good for most of my sheet. What I don't know is how to change this
so that it ranks numbers from lowest to highest. ie. 40=1, 50=2. I'm sure
it's simple, but I can't see it. Thanks
  #2   Report Post  
bj
 
Posts: n/a
Default

have you thought about using the built in rank function? it allows you to
rank top to bottom or bottom to top.

"J.W." wrote:

I have the following code that ranks numbers from highest to lowest. ie.
50=1, 40=2, etc.
{=SUM(1*(D8<$D$7:$D$23))+1+IF(ROW(D8)-ROW($D$7)=0,0,SUM(1*(D8=OFFSET($D$1,0,0,INDEX(ROW( D8)-ROW($D$7)+1,1)-1,1))))}
This is good for most of my sheet. What I don't know is how to change this
so that it ranks numbers from lowest to highest. ie. 40=1, 50=2. I'm sure
it's simple, but I can't see it. Thanks

  #3   Report Post  
N Harkawat
 
Posts: n/a
Default

for ranking lowest as 1(first)
=SUM(--(D7$D$7:$D$23))+COUNTIF($D$7:D7,D7)

Simply change the sign of "" to "<" and you get the order the other way

Of course both are array entered {ctrl+shift+enter}

The problem of built in rank function is that it gives the same rank if
there are 2 or more identical values AND
it just works with numbers




"bj" wrote in message
...
have you thought about using the built in rank function? it allows you to
rank top to bottom or bottom to top.

"J.W." wrote:

I have the following code that ranks numbers from highest to lowest. ie.
50=1, 40=2, etc.
{=SUM(1*(D8<$D$7:$D$23))+1+IF(ROW(D8)-ROW($D$7)=0,0,SUM(1*(D8=OFFSET($D$1,0,0,INDEX(ROW( D8)-ROW($D$7)+1,1)-1,1))))}
This is good for most of my sheet. What I don't know is how to change
this
so that it ranks numbers from lowest to highest. ie. 40=1, 50=2. I'm sure
it's simple, but I can't see it. Thanks



  #4   Report Post  
J.W.
 
Posts: n/a
Default

Hi, THANKS for the help. I thought that I tried the reversing of the "<"".
It did work with the results i was looking for.
Thanks again.

"N Harkawat" wrote:

for ranking lowest as 1(first)
=SUM(--(D7$D$7:$D$23))+COUNTIF($D$7:D7,D7)

Simply change the sign of "" to "<" and you get the order the other way

Of course both are array entered {ctrl+shift+enter}

The problem of built in rank function is that it gives the same rank if
there are 2 or more identical values AND
it just works with numbers




"bj" wrote in message
...
have you thought about using the built in rank function? it allows you to
rank top to bottom or bottom to top.

"J.W." wrote:

I have the following code that ranks numbers from highest to lowest. ie.
50=1, 40=2, etc.
{=SUM(1*(D8<$D$7:$D$23))+1+IF(ROW(D8)-ROW($D$7)=0,0,SUM(1*(D8=OFFSET($D$1,0,0,INDEX(ROW( D8)-ROW($D$7)+1,1)-1,1))))}
This is good for most of my sheet. What I don't know is how to change
this
so that it ranks numbers from lowest to highest. ie. 40=1, 50=2. I'm sure
it's simple, but I can't see it. Thanks




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
Lowest numbers One-Leg Excel Discussion (Misc queries) 7 May 26th 05 08:06 PM
I need a formula to add the 3 lowest numbers out of 5. Humbie Excel Worksheet Functions 1 March 12th 05 05:41 PM
Possible to pick out the lowest eight numbers in a row? Christian Borchgrevink-Vigeland Excel Discussion (Misc queries) 4 December 23rd 04 03:53 PM
How do I drop the lowest 2 numbers and then average? nightlynik Excel Worksheet Functions 3 December 6th 04 09:10 PM
Formula for comparing 3 numbers and resulting in the lowest of the tbible Excel Worksheet Functions 2 November 18th 04 07:08 PM


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

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"