Multiple duplicate entries, multiple rankings

oO P2K Oo

New Member
Joined
Aug 12, 2018
Messages
25
Office Version
  1. 365
Platform
  1. Windows
Hi All,

Thanks for taking the time to view my post.

I have around 2000 lines of data, and a small sample is shown below.

[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD]Product code[/TD]
[TD]Value[/TD]
[/TR]
[TR]
[TD]I300616729-43376[/TD]
[TD]6[/TD]
[/TR]
[TR]
[TD]I300616729-43376[/TD]
[TD]2[/TD]
[/TR]
[TR]
[TD]I300616729-43474[/TD]
[TD]2[/TD]
[/TR]
[TR]
[TD]I300616729-43474[/TD]
[TD]5[/TD]
[/TR]
[TR]
[TD]I300616729-43482[/TD]
[TD]5[/TD]
[/TR]
[TR]
[TD]I300616729-43482[/TD]
[TD]6[/TD]
[/TR]
[TR]
[TD]I300682288-43199[/TD]
[TD]6[/TD]
[/TR]
[TR]
[TD]I300682288-43199[/TD]
[TD]1[/TD]
[/TR]
</tbody>[/TABLE]

I would like to rank the value of the product code, but instead of having a rank of 1-8, I want to rank them between themselves, based on the value, so the lower the value (closer to 1), then the higher the ranking . e.g. below

[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD]Product code[/TD]
[TD]Value[/TD]
[TD]Rank[/TD]
[/TR]
[TR]
[TD]I300616729-43376[/TD]
[TD]6[/TD]
[TD]2[/TD]
[/TR]
[TR]
[TD]I300616729-43376[/TD]
[TD]2[/TD]
[TD]1[/TD]
[/TR]
[TR]
[TD]I300616729-43474[/TD]
[TD]2[/TD]
[TD]1[/TD]
[/TR]
[TR]
[TD]I300616729-43474[/TD]
[TD]5[/TD]
[TD]2[/TD]
[/TR]
[TR]
[TD]I300616729-43482[/TD]
[TD]5[/TD]
[TD]1[/TD]
[/TR]
[TR]
[TD]I300616729-43482[/TD]
[TD]6[/TD]
[TD]2[/TD]
[/TR]
[TR]
[TD]I300682288-43199[/TD]
[TD]6[/TD]
[TD]2[/TD]
[/TR]
[TR]
[TD]I300682288-43199[/TD]
[TD]1[/TD]
[TD]1[/TD]
[/TR]
</tbody>[/TABLE]


Many thanks in advance for your suggestions and solutions. If you require any more info, please do not hesitate to ask.
 

Excel Facts

Excel Wisdom
Using a mouse in Excel is the work equivalent of wearing a lanyard when you first get to college

Forum statistics

Threads
1,224,821
Messages
6,181,163
Members
453,021
Latest member
Justyna P

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