Ranking the numbers in order of appearances.

maneesh2312

New Member
Joined
Mar 7, 2011
Messages
6
Hi,
Can somebody please help me. I have a set a numbers in one column say A like this.

6
6
4
4
4
3
3
2
1

All i want is to write a forrmula in each adjacent cell in column B giving me the ranking of these numbers in column A. eg., above here number 6 is appearing twice so I would want it 1 and 2. Number 4 as it appears thrice so it would be 1,2 and 3 and so on. The result would look like this.

6 1
6 2
4 1
4 2
4 3
3 1
3 2
2 1
1 1

Countif function only gives me the number of times it appears in a range. It does not give me the order of the appearance in the range. Any help will be appreciated. Thanks in advance.

P.S. The numbers change dynamically based on some results. So the ranking has to be automatic.
The numbers may or may not be in descending or ascending order. They can be random too.

Thanks
Maneesh
 

Excel Facts

What is the shortcut key for Format Selection?
Ctrl+1 (the number one) will open the Format dialog for whatever is selected.
Countif will do fine, if you make part of the reference relative, like:
=COUNTIF($A$1:A1,A1)
 
Upvote 0

Forum statistics

Threads
1,214,561
Messages
6,120,239
Members
448,951
Latest member
jennlynn

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