rank formula with multiple conditions

DerekWooley

New Member
Joined
May 1, 2018
Messages
34
Hello, I am trying to create a formula to rank product run-out dates of items with multiple conditions such as material type, size, etc.

My sheet looks like below. I want to prioritize by run-out out date and then group material, then by size. I thought about grouping the run-out dates by quarter and month to make the run-out dates easier to rank using the following formula but it just ranks the months for each quarter instead of ranking the quarters as well to see which items should come first.

SUMPRODUCT(--(E2=$E$2:$E$20),--(F2>$F$2:$F$20))+1

ABCDEF
ItemRunout Date MaterialSize QuarterMonth
993644/6/2019 Copper0.25 20192201904
454311/30/2018 Plastic0.5 20184201811
54351/22/2019 Plastic0.45 20191201901
45645/26/2018 Plastic0.5 20182201805
233357/18/2018 Aluminum0.5 20183201807
65448/15/2018 Copper0.75 20183201808
344639/17/2018 Copper0.45 20183201809
45449/12/2018 Copper0.25 20183201809
6547/14/2018 Aluminum0.75 20183201807
45449/2/2018 Aluminum0.25 20183201809
43458/20/2018 Steel0.75 20183201808
7778810/1/2018 Steel0.25 20184201810

<colgroup><col><col><col><col span="2"><col><col span="2"></colgroup><tbody>
</tbody>
I can provide more detail if that makes it easier about what I am trying to do.
Would appreciate any help.

Thank you,

<colgroup><col><col><col><col span="4"></colgroup><tbody>
</tbody>

<colgroup><col><col span="2"><col span="4"></colgroup><tbody>
</tbody>

<colgroup><col><col><col span="4"></colgroup><tbody>
</tbody>
 

Excel Facts

What does custom number format of ;;; mean?
Three semi-colons will hide the value in the cell. Although most people use white font instead.
<b>Worksheet Formulas</b><table cellpadding="2.5px" width="100%" rules="all" style="border: 1px solid;text-align:center;background-color: rgb(255,255,255);border-collapse: collapse; border-color: rgb(187,187,187)"><thead><tr style=" background-color: rgb(218,231,245);color: rgb(22,17,32)"><th width="10px">Cell</th><th style="text-align:left;padding-left:5px;">Formula</th></tr></thead><tbody><tr><th width="10px" style=" background-color: rgb(218,231,245);color: rgb(22,17,32)">G2</th><td style="text-align:left">=COUNTIF(<font color="Blue">B$2:B$13,VLOOKUP(<font color="Red">K$3,$K$6:$L$7,2,0</font>)&B2</font>)+COUNTIFS(<font color="Blue">B$2:B$13,B2,$C$2:$C$13,VLOOKUP(<font color="Red">$L$3,$K$6:$L$7,2,0</font>)&C2</font>)+COUNTIFS(<font color="Blue">B$2:B$13,B2,$C$2:$C$13,C2,$D$2:$D$13,VLOOKUP(<font color="Red">M$3,$K$6:$L$7,2,0</font>)&D2</font>)+1</td></tr></tbody></table></td></tr></table><br />





Excel 2013/2016
ABCDEFGHIJKLM
1ItemRunout DateMaterialSizeQuarterMonth
245645/26/2018Plastic0.5201822018052Runout DateMaterialSize
36545/26/2018Aluminum0.75201832018071rank typeAscendingAscendingDescending
4233357/18/2018Aluminum0.5201832018073
565448/15/2018Copper0.75201832018084
643458/15/2018Steel0.75201832018085Ascending<
745449/2/2018Aluminum0.25201832018096Descending>
845449/12/2018Copper0.25201832018097
9344639/17/2018Copper0.45201832018098
107778810/1/2018Steel0.25201842018109
11454311/30/2018Plastic0.52018420181110
1254351/22/2019Plastic0.452019120190111
13993644/6/2019Copper0.252019220190412
Sheet3
 
Upvote 0
Thank you very much. Is there a way to do this in excel 2003? The countifs function doesn't seem to work for me.
 
Upvote 0

Forum statistics

Threads
1,215,446
Messages
6,124,895
Members
449,194
Latest member
JayEggleton

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