Three level ranking

Raju Kumar Singh

New Member
Joined
Jul 12, 2017
Messages
15
Hey guys..

Please help me to write a VBa code for the below scenario.

I have five columns. First one have names. 3rd, 4th, 4th have criteria. First, give ranking as per 3rd columns, if any output rank have same ranking then it will go to 4th column criteria. If after applying ranking again same ranks are there then will check with 5th column criteria. Final ranking will be kept in 2nd column.

Name Rankcriteria 1Criteria 2Criteria 3
ARR 563
NET 819
JUNb 45251
PRO 231233
NEC 1228
JUN 023
RKSI 15323
JUNk 02512
JUNe 31220
TS 331110
ING 0023
DIM 41513
JUNt 16162
AVN 63619
MAR 29153
NIS 569
JUNx 22110
PT. 0015

<colgroup><col><col><col span="3"></colgroup><tbody>
</tbody>

Thanks...
 
Hi Eric,

Thank you very much for the nice explanation of logic behind the formula...I understood now!!

Hi Peter,

Glad to see that there are multiple ways to do the same task of ranking(my case here)...It was great learning!! Thanks a lot.


Regards,
Raju Kumar Singh
 
Upvote 0

Excel Facts

Test for Multiple Conditions in IF?
Use AND(test, test, test, test) or OR(test, test, test, ...) as the logical_test argument of IF.
Peter: Oh, great, now I have to read up on SortedLists! Based on what I've seen, it would have been a better choice for my second macro. You also raise a good point. While crafting the formulas / macros, I made a conscious (but unmentioned) decision not to worry about ties, because I thought it very unlikely. But in the off chance it does, your macro covers that.

Raju, glad we could help. Since I learned something new here too, it works out for everyone.
 
Upvote 0

Forum statistics

Threads
1,215,915
Messages
6,127,691
Members
449,398
Latest member
m_a_advisoryforall

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