Excel Match and Index - Sort by define values

Eugenio1991

New Member
Joined
Jul 30, 2018
Messages
4
Good Day All ,
Need Help , Im trying to write a formula that will return sorted values base on two criteria, currently working with one . Example is below,

Data is from Sku to Ranking . Formula is written on the Answers line..
i need the formula to return the values per "PK" line base on the ranking given.

Current formula i use is "=IFERROR(INDEX($A$3:$A$250, MATCH(0, IF("Pk10Y"=$AF$3:$AF$250, COUNTIF($AJ$14:AJ22, $A$3:$A$250), ""), 0))," ") but only work for the Pk criteria and need to add the ranking.

any help if welcome .
Thank You.


[TABLE="width: 1274"]
<colgroup><col><col><col><col><col span="2"><col><col span="2"></colgroup><tbody>[TR]
[TD]SKU [/TD]
[TD]Description[/TD]
[TD]PK Line[/TD]
[TD]Ranking[/TD]
[TD][/TD]
[TD][/TD]
[TD]Answers Line 1 [/TD]
[TD]Answers Line 2[/TD]
[TD]Answers Line 2[/TD]
[/TR]
[TR]
[TD]75069115[/TD]
[TD]Org Baby Kale 100%, 6X9 oz, BIL Clam, og[/TD]
[TD]1[/TD]
[TD]3[/TD]
[TD][/TD]
[TD][/TD]
[TD="align: right"]75069415[/TD]
[TD] [/TD]
[TD] [/TD]
[/TR]
[TR]
[TD]75069215[/TD]
[TD]Org Baby Kale 100%, 6X9 oz, SPEC Clam, og[/TD]
[TD]2[/TD]
[TD]2[/TD]
[TD][/TD]
[TD][/TD]
[TD="align: right"]75069315[/TD]
[TD] [/TD]
[TD] [/TD]
[/TR]
[TR]
[TD]75069415[/TD]
[TD]Org Baby Kale 100%, 6X9 oz, SPEC BIL Clam, og[/TD]
[TD]1[/TD]
[TD]1[/TD]
[TD][/TD]
[TD][/TD]
[TD="align: right"]75069115[/TD]
[TD] [/TD]
[TD] [/TD]
[/TR]
[TR]
[TD]75069315[/TD]
[TD]Org Baby Kale 100%, 6X9 oz, Clam, og[/TD]
[TD]1[/TD]
[TD]2[/TD]
[TD][/TD]
[TD][/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[/TR]
[TR]
[TD]39000017[/TD]
[TD]Org Baby Spinach, 6X1 LB SPEC BIL Clam, og[/TD]
[TD]2[/TD]
[TD]2[/TD]
[TD][/TD]
[TD][/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[/TR]
[TR]
[TD]39000006[/TD]
[TD]Org Baby Spinach, 6X1 LB SPEC Clam, og[/TD]
[TD]2[/TD]
[TD]1[/TD]
[TD][/TD]
[TD][/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[/TR]
[TR]
[TD]39060315[/TD]
[TD]Org Baby Spinach, 6X1 LB BIL Clam, og[/TD]
[TD]3[/TD]
[TD]2[/TD]
[TD][/TD]
[TD][/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[/TR]
[TR]
[TD]39061615[/TD]
[TD]Org Baby Spinach, 6X1 LB Clam, og[/TD]
[TD]3[/TD]
[TD]1[/TD]
[TD][/TD]
[TD][/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[/TR]
</tbody>[/TABLE]
 

Excel Facts

Show numbers in thousands?
Use a custom number format of #,##0,K. Each comma after the final 0 will divide the displayed number by another thousand

Forum statistics

Threads
1,223,894
Messages
6,175,254
Members
452,623
Latest member
Techenthusiast

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