Index, Match with multiple criteria in an array

lejanco

New Member
Joined
Jun 16, 2014
Messages
4
[TABLE="width: 500"]
<tbody>[TR]
[TD]sku[/TD]
[TD]coun[/TD]
[TD]category[/TD]
[TD]color[/TD]
[TD]gpm[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]15[/TD]
[TD]basket[/TD]
[TD]red[/TD]
[TD]90[/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]15[/TD]
[TD]basket[/TD]
[TD]blu[/TD]
[TD]91[/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD]20[/TD]
[TD]pottery[/TD]
[TD]purple[/TD]
[TD]95[/TD]
[/TR]
[TR]
[TD]4[/TD]
[TD]18[/TD]
[TD]pottery[/TD]
[TD]blue[/TD]
[TD]91[/TD]
[/TR]
</tbody>[/TABLE]
Hello,

I need to select the top gpm sku, 2nd top sku, 3rd etc. per category. My result table is set up like this spread sheet is set up like this
1 2 3 4 5 (column headings)
Basket
Pottery
Tupperware
Etc.
(Row headings)
Thanks!
 

Excel Facts

How to show all formulas in Excel?
Press Ctrl+` to show all formulas. Press it again to toggle back to numbers. The grave accent is often under the tilde on US keyboards.
[TABLE="width: 500"]
<tbody>[TR]
[TD][/TD]
[TD]1
[/TD]
[TD]2
[/TD]
[TD]3
[/TD]
[TD]4
[/TD]
[TD]5
[/TD]
[/TR]
[TR]
[TD]Basket
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Pottery
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Accessories
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Etc
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
show us the expected results table as well please
 
Upvote 0
so on your small amount of data above

pottery would be 95 then 91
basket would be 91 then 90 ?
 
Upvote 0
Can you add a helper column to your data? If so, see if the example below is what you want.

The helper column is used to add a small amount to the gpm to keep from having duplicates (say if gpm in pottery were both 95).

Can cell references to match your data.
Copy the formula in F2 down.
Formula in B9 would be copied down and across.

NOTE: formula in B9 is an array formula and must be entered with
Excel Workbook
ABCDEFG
1skucouncategorycolorgpmHelper
2115basketred9090
3215basketblu9191
4320potterypurple9595
5418potteryblue9191
6
7
812345
9basket21
10pottery34
11
CTRL-SHIFT-ENTER.
 
Upvote 0
You're welcome. Thanks for the feedback and welcome to the forum.
 
Upvote 0

Forum statistics

Threads
1,224,828
Messages
6,181,210
Members
453,023
Latest member
alabaz

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