Ranking Groups with Multiple Criteria

mwicks

New Member
Joined
Nov 16, 2016
Messages
3
[TABLE="class: grid, width: 500, align: center"]
<tbody>[TR]
[TD]A

[/TD]
[TD]B
[/TD]
[TD]C
[/TD]
[TD]D
[/TD]
[TD]E
[/TD]
[/TR]
[TR]
[TD]GROUP
[/TD]
[TD]TARGET
[/TD]
[TD]ACTUAL
[/TD]
[TD]% ATTAINMENT
[/TD]
[TD]EXPECTED RANK
[/TD]
[/TR]
[TR]
[TD]A
[/TD]
[TD]9
[/TD]
[TD]17
[/TD]
[TD]188.9%
[/TD]
[TD]1
[/TD]
[/TR]
[TR]
[TD]A
[/TD]
[TD]7
[/TD]
[TD]13
[/TD]
[TD]185.7%
[/TD]
[TD]2
[/TD]
[/TR]
[TR]
[TD]A
[/TD]
[TD]6
[/TD]
[TD]11
[/TD]
[TD]183.3%
[/TD]
[TD]3
[/TD]
[/TR]
[TR]
[TD]A
[/TD]
[TD]12
[/TD]
[TD]18
[/TD]
[TD]150%
[/TD]
[TD]4
[/TD]
[/TR]
[TR]
[TD]A
[/TD]
[TD]6
[/TD]
[TD]9
[/TD]
[TD]150%
[/TD]
[TD]5
[/TD]
[/TR]
[TR]
[TD]B
[/TD]
[TD]1
[/TD]
[TD]11
[/TD]
[TD]1100%
[/TD]
[TD]1
[/TD]
[/TR]
[TR]
[TD]B
[/TD]
[TD]3
[/TD]
[TD]9
[/TD]
[TD]300%
[/TD]
[TD]2
[/TD]
[/TR]
[TR]
[TD]B
[/TD]
[TD]4
[/TD]
[TD]8
[/TD]
[TD]200%
[/TD]
[TD]3
[/TD]
[/TR]
[TR]
[TD]B
[/TD]
[TD]1
[/TD]
[TD]2
[/TD]
[TD]200%
[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]B
[/TD]
[TD]6
[/TD]
[TD]6
[/TD]
[TD]100%
[/TD]
[TD]4
[/TD]
[/TR]
[TR]
[TD]C
[/TD]
[TD]7
[/TD]
[TD]7
[/TD]
[TD]100%
[/TD]
[TD]1
[/TD]
[/TR]
[TR]
[TD]C
[/TD]
[TD]6
[/TD]
[TD]6
[/TD]
[TD]100%
[/TD]
[TD]2
[/TD]
[/TR]
[TR]
[TD]C
[/TD]
[TD]24
[/TD]
[TD]20
[/TD]
[TD]83.3%
[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]C
[/TD]
[TD]31
[/TD]
[TD]6
[/TD]
[TD]19.4%
[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]D
[/TD]
[TD]14
[/TD]
[TD]19
[/TD]
[TD]135.7%
[/TD]
[TD]1
[/TD]
[/TR]
[TR]
[TD]D
[/TD]
[TD]34
[/TD]
[TD]37
[/TD]
[TD]108.8%
[/TD]
[TD]2
[/TD]
[/TR]
[TR]
[TD]D
[/TD]
[TD]24
[/TD]
[TD]24
[/TD]
[TD]100%
[/TD]
[TD]3

[/TD]
[/TR]
[TR]
[TD]D
[/TD]
[TD]26
[/TD]
[TD]13
[/TD]
[TD]50%
[/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]

Hello, I would like to rank a set of data by group and based on multiple criteria. I've given a sample below with the expected output in column E. For each group, I would like to rank by % Attainment (column D), and break ties with Actual (column C). Also, I would like the ranking to skip any line where the % Attainment is less than 100%, or where the Actual is less than 3. Any help would be greatly appreciated!
 

Excel Facts

Does the VLOOKUP table have to be sorted?
No! when you are using an exact match, the VLOOKUP table can be in any order. Best-selling items at the top is actually the best.
Try this, copied down.

Excel Workbook
ABCDE
1GROUPTARGETACTUAL% ATTAINMENTEXPECTED RANK
2A917188.90%1
3A713185.70%2
4A611183.30%3
5A1218150%4
6A69150%5
7B1111100%1
8B39300%2
9B48200%3
10B12200%
11B66100%4
12C77100%1
13C66100%2
14C242083.30%
15C31619.40%
16D1419135.70%1
17D3437108.80%2
18D2424100%3
19D261350%
Sheet1
 
Last edited:
Upvote 0

Forum statistics

Threads
1,224,820
Messages
6,181,162
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