ranking cells

mike1977

New Member
Joined
Jul 6, 2016
Messages
3
I have a row of 6 numbers

4
4
4
3
1
1

This column has been got via ranking some other columns (Rank.EQ) formula

Now i have these i want to rank the top 3 with a +1 and the bottom 3 with a -1 (the top 3 and bottom 3 numbers may sometimes be the same as in the 4,4,4, or sometimes may have 4,4,3, and sometimes be simple 4,3,2)

so the output would be

4 -1
4 -1
4 -1
3 +1
1 +1
1 +1

Any help much appreciated.
 

Excel Facts

When they said...
When they said you are going to "Excel at life", they meant you "will be doing Excel your whole life".
Hello mike1977, welcome to MrExcel

How do you want to handle ties?

What if he numbers were 4,4,4,4,1 an 1?


1. Based on the current place it gets the numbers from it should never have more than 3 numbers the same

2. In an ideal "magic solution" for future scenarios if would be good to say if there is not 3 (-1) and 3 (+1) numbers ranked(or a number I can specify in a call) they shoukd all be 0 until there are 3 and 3

Thanks in advance
 
Upvote 0
Cross-posted: https://www.excelforum.com/excel-formulas-and-functions/1217371-rank-question.html

While we do not prohibit Cross-Posting on this site, we do ask that you please mention you are doing so and provide links in each of the threads pointing to the other thread (see rule 13 here along with the explanation: Forum Rules). This way, other members can see what has already been done in regards to a question, and do not waste time working on a question that may already be answered.
 
Upvote 0
Cross-posted: https://www.excelforum.com/excel-formulas-and-functions/1217371-rank-question.html

While we do not prohibit Cross-Posting on this site, we do ask that you please mention you are doing so and provide links in each of the threads pointing to the other thread (see rule 13 here along with the explanation: Forum Rules). This way, other members can see what has already been done in regards to a question, and do not waste time working on a question that may already be answered.



Hi Alan

Understood, its because nobody has been able to help that I have posted it on this forum.

Regards

mIKE
 
Upvote 0
2. In an ideal "magic solution" for future scenarios if would be good to say if there is not 3 (-1) and 3 (+1) numbers ranked(or a number I can specify in a call) they shoukd all be 0 until there are 3 and 3

Try this version

=IF(LARGE(A$1:A$6,3)=LARGE(A$1:A$6,4),0,IF(A1>=LARGE(A$1:A$6,3),"+1","-1"))

That gives you +1 and -1 as text values. You could make them actual numbers if you want by switching to this version

=IF(LARGE(A$1:A$6,3)=LARGE(A$1:A$6,4),0,IF(A1>=LARGE(A$1:A$6,3),1,-1))

then custom format as follows:

"+"0;-0;0
 
Upvote 0
Hi Alan

Understood, its because nobody has been able to help that I have posted it on this forum.
Not sure who Alan is...

That is fine to post it to this forum also, but require that you also mention that you have already posted it elsewhere and provide links to it.
Please be sure to read the link with the explanation, if you have not already done so.

 
Upvote 0

Forum statistics

Threads
1,224,822
Messages
6,181,165
Members
453,021
Latest member
Justyna P

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top