Complicated ranking off of multiple variables formula

broman5000

New Member
Joined
Jan 26, 2017
Messages
10
Hey there,


I'm trying to create a ranking and quintile off of multiple criteria (consider these columns a, b, c, d, e)


Essentially I want to do the following


1. Create a ranking *(Column D) based off of the Usage value (column C) by item (Column B) against how each location (Column A) perform for that particular item (Column B)


2. I then would likely create a quintile ranking (Column E) of numbers (1,2,3,4,5) based of of those ranking values


The formula for this is way over my head and i'm not sure it's even possible! Help Please :)


obviously there is much more data than this, Its normally around 200K rows, this is just a snipit example that I would hopefully be able to drag the formula's down for


[TABLE="width: 320"]
<colgroup><col width="64" span="5" style="width:48pt"> </colgroup><tbody>[TR]
[TD="class: xl108, width: 64"]location[/TD]
[TD="class: xl108, width: 64"]item[/TD]
[TD="class: xl108, width: 64"]Usage[/TD]
[TD="class: xl108, width: 64"]rank[/TD]
[TD="class: xl108, width: 64"]quintile[/TD]
[/TR]
[TR]
[TD="class: xl108"]a[/TD]
[TD="class: xl108"]1[/TD]
[TD="class: xl109"]0.25[/TD]
[TD="class: xl108"] [/TD]
[TD="class: xl108"] [/TD]
[/TR]
[TR]
[TD="class: xl108"]a[/TD]
[TD="class: xl108"]2[/TD]
[TD="class: xl109"]0.65[/TD]
[TD="class: xl108"] [/TD]
[TD="class: xl108"] [/TD]
[/TR]
[TR]
[TD="class: xl108"]a[/TD]
[TD="class: xl108"]3[/TD]
[TD="class: xl109"]0.47[/TD]
[TD="class: xl108"] [/TD]
[TD="class: xl108"] [/TD]
[/TR]
[TR]
[TD="class: xl108"]b[/TD]
[TD="class: xl108"]1[/TD]
[TD="class: xl109"]0.60[/TD]
[TD="class: xl108"] [/TD]
[TD="class: xl108"] [/TD]
[/TR]
[TR]
[TD="class: xl108"]b[/TD]
[TD="class: xl108"]2[/TD]
[TD="class: xl109"]0.68[/TD]
[TD="class: xl108"] [/TD]
[TD="class: xl108"] [/TD]
[/TR]
[TR]
[TD="class: xl108"]b[/TD]
[TD="class: xl108"]3[/TD]
[TD="class: xl109"]1.00[/TD]
[TD="class: xl108"] [/TD]
[TD="class: xl108"] [/TD]
[/TR]
[TR]
[TD="class: xl108"]c[/TD]
[TD="class: xl108"]1[/TD]
[TD="class: xl109"]0.52[/TD]
[TD="class: xl108"] [/TD]
[TD="class: xl108"] [/TD]
[/TR]
[TR]
[TD="class: xl108"]c[/TD]
[TD="class: xl108"]2[/TD]
[TD="class: xl109"]0.08[/TD]
[TD="class: xl108"] [/TD]
[TD="class: xl108"] [/TD]
[/TR]
[TR]
[TD="class: xl108"]c[/TD]
[TD="class: xl108"]3[/TD]
[TD="class: xl109"]0.63[/TD]
[TD="class: xl108"] [/TD]
[TD="class: xl108"] [/TD]
[/TR]
[TR]
[TD="class: xl108"]d[/TD]
[TD="class: xl108"]1[/TD]
[TD="class: xl109"]0.17[/TD]
[TD="class: xl108"] [/TD]
[TD="class: xl108"] [/TD]
[/TR]
[TR]
[TD="class: xl108"]d[/TD]
[TD="class: xl108"]2[/TD]
[TD="class: xl109"]0.15[/TD]
[TD="class: xl108"] [/TD]
[TD="class: xl108"] [/TD]
[/TR]
[TR]
[TD="class: xl108"]d[/TD]
[TD="class: xl108"]3[/TD]
[TD="class: xl109"]0.31[/TD]
[TD="class: xl108"] [/TD]
[TD="class: xl108"] [/TD]
[/TR]
[TR]
[TD="class: xl108"]e[/TD]
[TD="class: xl108"]1[/TD]
[TD="class: xl109"]0.42[/TD]
[TD="class: xl108"] [/TD]
[TD="class: xl108"] [/TD]
[/TR]
[TR]
[TD="class: xl108"]e[/TD]
[TD="class: xl108"]2[/TD]
[TD="class: xl109"]0.11[/TD]
[TD="class: xl108"] [/TD]
[TD="class: xl108"] [/TD]
[/TR]
[TR]
[TD="class: xl108"]e[/TD]
[TD="class: xl108"]3[/TD]
[TD="class: xl109"]0.19[/TD]
[TD="class: xl108"] [/TD]
[TD="class: xl108"] [/TD]
[/TR]
[TR]
[TD="class: xl108"]f[/TD]
[TD="class: xl108"]1[/TD]
[TD="class: xl109"]0.02[/TD]
[TD="class: xl108"] [/TD]
[TD="class: xl108"] [/TD]
[/TR]
[TR]
[TD="class: xl108"]f[/TD]
[TD="class: xl108"]2[/TD]
[TD="class: xl109"]0.28[/TD]
[TD="class: xl108"] [/TD]
[TD="class: xl108"] [/TD]
[/TR]
[TR]
[TD="class: xl108"]f[/TD]
[TD="class: xl108"]3[/TD]
[TD="class: xl109"]0.53[/TD]
[TD="class: xl108"] [/TD]
[TD="class: xl108"] [/TD]
[/TR]
</tbody>[/TABLE]
 

Excel Facts

Shade all formula cells
To shade all formula cells: Home, Find & Select, Formulas to select all formulas. Then apply a light fill color.
You can sort your data using custom sort based on any column and add a second and third column.
 
Upvote 0
I was hoping to do this based off a formula in columns D and E...I've seen some use sumproduct or countif...but i've been unsuccessful

For example to show on the ranking

[TABLE="class: cke_show_border"]
<tbody>[TR]
[TD]location[/TD]
[TD="width: 64"]item[/TD]
[TD="width: 64"]Usage[/TD]
[TD="width: 64"]rank[/TD]
[TD="width: 64"]quintile[/TD]
[/TR]
[TR]
[TD]a[/TD]
[TD]1[/TD]
[TD]0.25[/TD]
[TD]3[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]a[/TD]
[TD]2[/TD]
[TD]0.65[/TD]
[TD]5[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]a[/TD]
[TD]3[/TD]
[TD]0.47[/TD]
[TD]3[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]b[/TD]
[TD]1[/TD]
[TD]0.60[/TD]
[TD]6[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]b[/TD]
[TD]2[/TD]
[TD]0.68[/TD]
[TD]6[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]b[/TD]
[TD]3[/TD]
[TD]1.00[/TD]
[TD]6[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]c[/TD]
[TD]1[/TD]
[TD]0.52[/TD]
[TD]5[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]c[/TD]
[TD]2[/TD]
[TD]0.08[/TD]
[TD]1[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]c[/TD]
[TD]3[/TD]
[TD]0.63[/TD]
[TD]5[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]d[/TD]
[TD]1[/TD]
[TD]0.17[/TD]
[TD]2[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]d[/TD]
[TD]2[/TD]
[TD]0.15[/TD]
[TD]3[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]d[/TD]
[TD]3[/TD]
[TD]0.31[/TD]
[TD]2[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]e[/TD]
[TD]1[/TD]
[TD]0.42[/TD]
[TD]4[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]e[/TD]
[TD]2[/TD]
[TD]0.11[/TD]
[TD]2[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]e[/TD]
[TD]3[/TD]
[TD]0.19[/TD]
[TD]1[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]f[/TD]
[TD]1[/TD]
[TD]0.02[/TD]
[TD]1[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]f[/TD]
[TD]2[/TD]
[TD]0.28[/TD]
[TD]4[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]f[/TD]
[TD]3[/TD]
[TD]0.53[/TD]
[TD]4[/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
 
Upvote 0
Please explain your ranking system

Why is e,3,.19 = 1 when d,1,.17 = 2 sorry I am not following
 
Upvote 0

Forum statistics

Threads
1,223,366
Messages
6,171,665
Members
452,416
Latest member
johnog

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