VBA: Can i get ranking of my selected range with ,1,2,3 ranking

sksanjeev786

Well-known Member
Joined
Aug 5, 2020
Messages
882
Office Version
  1. 365
  2. 2016
Platform
  1. Windows
Hi Team

I have a multiple-column with data and I want to rank on 1st,2nd and 3rd column high to low.
can anyone help me with this?


Thanks.

Regards,
Sanjeev
 

Attachments

  • data.png
    data.png
    7.2 KB · Views: 15

Excel Facts

Last used cell?
Press Ctrl+End to move to what Excel thinks is the last used cell.
It's a little unclear what you want. Could you show what your expected results should be? In the meantime, here's a basic ranking formula:

Book1
ABCDEFG
1GAVE RECALL (NET)963365142
2Mentioned Coke Zero/Zero Sugar398879211
3Mentioned Coca-Cola257222323
4Mentioned Coca-Cola/Zero Sugar1599455
5Mentioned Coke116311534
Sheet1
Cell Formulas
RangeFormula
E1:G5E1=RANK(B1,B$1:B$5)
 
Upvote 0
It's a little unclear what you want. Could you show what your expected results should be? In the meantime, here's a basic ranking formula:

Book1
ABCDEFG
1GAVE RECALL (NET)963365142
2Mentioned Coke Zero/Zero Sugar398879211
3Mentioned Coca-Cola257222323
4Mentioned Coca-Cola/Zero Sugar1599455
5Mentioned Coke116311534
Sheet1
Cell Formulas
RangeFormula
E1:G5E1=RANK(B1,B$1:B$5)
Hi Eric,

I need ranking data for column B,C,D high to low if I rank only column B hope you got it.

Regards,
Sanjeev
 
Upvote 0
In my example, E has the rankings for column B, F has the rankings for column C, and G has the rankings for column D. If you only want the column B rankings, just remove the formulas from columns F and G.
 
Upvote 0
In my example, E has the rankings for column B, F has the rankings for column C, and G has the rankings for column D. If you only want the column B rankings, just remove the formulas from columns F and G.


Hi Sir,

I need ranking automatic if I rank only column B data so by default C and D also rank with secondary and 3rd rank.

As you have provided the data needs to ranking 3 times in Column E,F and G can it be like if I rank only column B so C and D data rank automatic.

Let us know if it is possible thank you

Regards,
Sanjeev
 
Upvote 0
Can you show an example of what you're looking for? If you use C and D columns as secondary and 3rd parameters, they would only come into play if column B has ties, which is not the case in your example. Please make an example with some numbers, and show the expected results and explain how you got them.
 
Upvote 0

Forum statistics

Threads
1,214,653
Messages
6,120,750
Members
448,989
Latest member
mariah3

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