Formula Question - Ranking

ststern45

Well-known Member
Joined
Sep 17, 2005
Messages
974
Office Version
  1. 365
  2. 2010
Platform
  1. Windows
Hi everyone,

I have a question.

In cell B10 I have the number 756

In cell C10 I have the number 7
In cell D10 I have the number 5
In cell E10 I have the number 6

In cell F10 I would like to enter a formula that tell me the "ranking" of the 7 in relation to the other 2 numbers in cells D10 and E10

Or if possible a formula the would look at the 756 in cell B10 and tell the ranking:
So in the above example it would be 132 since the 7 is the highest, the 5 is the third and the 6 would be second.

Thanks in advance!!
 

Excel Facts

Square and cube roots
The =SQRT(25) is a square root. For a cube root, use =125^(1/3). For a fourth root, use =625^(1/4).
OK, different approach, try this version.....

=TEXT(SUMPRODUCT(MMULT(ISNUMBER(SEARCH({1,2,3,4,5,6,7,8,9,0},TEXT(B10,"000")))*({1,2,3,4,5,6,7,8,9,0}< MID(TEXT(B10,"000"),{1;2;3},1)+0),{1;1;1;1;1;1;1;1;1;1})+1,{100;10;1}),"0-0-0")
 
Upvote 0
OK, different approach, try this version.....

=TEXT(SUMPRODUCT(MMULT(ISNUMBER(SEARCH({1,2,3,4,5,6,7,8,9,0},TEXT(B10,"000")))*({1,2,3,4,5,6,7,8,9,0}< MID(TEXT(B10,"000"),{1;2;3},1)+0),{1;1;1;1;1;1;1;1;1;1})+1,{100;10;1}),"0-0-0")

Very good. Excellent work.

Everything is correct. Tested every possible combination.

The result is in the format of "0-0-0".
I removed the very last entry in the formula to "000".

Is there a way for the result to be without the " "?

This is awesome work Barry.

Thanks so much!!
 
Upvote 0
If you want it to look like just 213 etc. then use just

=SUMPRODUCT(MMULT(ISNUMBER(SEARCH({1,2,3,4,5,6,7,8,9,0},TEXT(B10,"000")))*({1,2,3,4,5,6,7,8,9,0}< MID(TEXT(B10,"000"),{1;2;3},1)+0),{1;1;1;1;1;1;1;1;1;1})+1,{100;10;1})
 
Upvote 0
If you want it to look like just 213 etc. then use just

=SUMPRODUCT(MMULT(ISNUMBER(SEARCH({1,2,3,4,5,6,7,8,9,0},TEXT(B10,"000")))*({1,2,3,4,5,6,7,8,9,0}< MID(TEXT(B10,"000"),{1;2;3},1)+0),{1;1;1;1;1;1;1;1;1;1})+1,{100;10;1})

Barry,

Thanks so much for all your help!!

Man your gooood!!!!
 
Upvote 0

Forum statistics

Threads
1,224,599
Messages
6,179,831
Members
452,946
Latest member
JoseDavid

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