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

sksanjeev786

Board Regular
Joined
Aug 5, 2020
Messages
225
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: 13

Some videos you may like

Excel Facts

Which came first: VisiCalc or Lotus 1-2-3?
Dan Bricklin and Bob Frankston debuted VisiCalc in 1979 as a Visible Calculator. Lotus 1-2-3 debuted in the early 1980's, from Mitch Kapor.

sksanjeev786

Board Regular
Joined
Aug 5, 2020
Messages
225
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
Hi Team

please help me on this

Thank you.
 

Eric W

MrExcel MVP
Joined
Aug 18, 2015
Messages
10,752
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)
 

sksanjeev786

Board Regular
Joined
Aug 5, 2020
Messages
225
Office Version
  1. 365
  2. 2016
Platform
  1. Windows

ADVERTISEMENT

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
 

Eric W

MrExcel MVP
Joined
Aug 18, 2015
Messages
10,752
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.
 

sksanjeev786

Board Regular
Joined
Aug 5, 2020
Messages
225
Office Version
  1. 365
  2. 2016
Platform
  1. Windows
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
 

Eric W

MrExcel MVP
Joined
Aug 18, 2015
Messages
10,752
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.
 

Watch MrExcel Video

Forum statistics

Threads
1,127,552
Messages
5,625,458
Members
416,107
Latest member
AVaes

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
Top