Rank of 2 condition data sets

NNOG28

New Member
Joined
Feb 28, 2019
Messages
11
Below is the data set. I'd like to use the formula under the Rank column -- to rank by sales under the same Item#, and the same item # that has the same sales needs to have a different rank order.

[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD]Item #[/TD]
[TD]Sales[/TD]
[TD]Rank[/TD]
[/TR]
[TR]
[TD]101[/TD]
[TD]8[/TD]
[TD]2[/TD]
[/TR]
[TR]
[TD]101[/TD]
[TD]6[/TD]
[TD]3[/TD]
[/TR]
[TR]
[TD]101[/TD]
[TD]6[/TD]
[TD]4[/TD]
[/TR]
[TR]
[TD]101[/TD]
[TD]10[/TD]
[TD]1[/TD]
[/TR]
[TR]
[TD]102[/TD]
[TD]2[/TD]
[TD]4[/TD]
[/TR]
[TR]
[TD]102[/TD]
[TD]6[/TD]
[TD]1[/TD]
[/TR]
[TR]
[TD]102[/TD]
[TD]3[/TD]
[TD]3[/TD]
[/TR]
[TR]
[TD]102[/TD]
[TD]5[/TD]
[TD]2[/TD]
[/TR]
[TR]
[TD]103[/TD]
[TD]25[/TD]
[TD]4[/TD]
[/TR]
[TR]
[TD]103[/TD]
[TD]35[/TD]
[TD]3[/TD]
[/TR]
[TR]
[TD]103[/TD]
[TD]60[/TD]
[TD]1[/TD]
[/TR]
[TR]
[TD]103[/TD]
[TD]55[/TD]
[TD]2[/TD]
[/TR]
</tbody>[/TABLE]

Thank you.
 

Excel Facts

What did Pito Salas invent?
Pito Salas, working for Lotus, popularized what would become to be pivot tables. It was released as Lotus Improv in 1989.
Try

Formula in C2 copied down
=COUNTIFS(A$2:A$13,A2,B$2:B$13,">"&B2)+COUNTIFS(A$2:A2,A2,B$2:B2,B2)

Hope this helps

M.
 
Upvote 0

Forum statistics

Threads
1,223,950
Messages
6,175,582
Members
452,653
Latest member
craigje92

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