Index Match with multiple criteria

TheSubject

New Member
Joined
Feb 16, 2016
Messages
23
Hi all,

I hope someone can help me with a problem I'm trying to get around with multiple criteria of an Index/Match function.

Column A is a list of clothes
Hat
Sock
Mask
etc.

Column B is a list of body parts:
Head
Chest
etc.


I now need unique lists in columns D-F headed with the body part, ie Column D:
HEAD
Hat
Mask

I can make a formula that gives the dynamic and unique list of all the clothes, OR I can make the formula that gives a dynamic list of the right clothes - except it just says Hat Hat Hat....

This is what I have currently:

{=INDEX($A$2:$A$248,MATCH(0,(COUNTIF(D$1:D1,$A$2:$A$248)*(NOT($D$1=$B$2:$B$248))),0))}

Can anyone help?

Many thanks!

G
 

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.
Hi all,

I hope someone can help me with a problem I'm trying to get around with multiple criteria of an Index/Match function.

Column A is a list of clothes
Hat
Sock
Mask
etc.

Column B is a list of body parts:
Head
Chest
etc.


I now need unique lists in columns D-F headed with the body part, ie Column D:
HEAD
Hat
Mask

I can make a formula that gives the dynamic and unique list of all the clothes, OR I can make the formula that gives a dynamic list of the right clothes - except it just says Hat Hat Hat....

This is what I have currently:

{=INDEX($A$2:$A$248,MATCH(0,(COUNTIF(D$1:D1,$A$2:$A$248)*(NOT($D$1=$B$2:$B$248))),0))}

Can anyone help?

Many thanks!

G


D2 = IFERROR(INDEX($A$2:$A$248,SMALL(IF($B$2:$B$248=D$1,ROW($B$2:$B$248),""),ROW()-ROW($D$1))-1),"") press CTRL+SHIFT+ENTER

where D1=Head
 
Upvote 0
D2 = IFERROR(INDEX($A$2:$A$248,SMALL(IF($B$2:$B$248=D$1,ROW($B$2:$B$248),""),ROW()-ROW($D$1))-1),"") press CTRL+SHIFT+ENTER

where D1=Head

Perfect! Loving how people actually take the time to respond on this forum! That was exactly what I needed and I never would have worked it out myself, but can see now how it works, so will use it in the future!

Thanks a lot
 
Upvote 0
D2 = IFERROR(INDEX($A$2:$A$248,SMALL(IF($B$2:$B$248=D$1,ROW($B$2:$B$248),""),ROW()-ROW($D$1))-1),"") press CTRL+SHIFT+ENTER

where D1=Head

Dear all

sorry for awakening this old topic, but i have a similar problem, my only addition to this formula that i want one more criteria to create my list.
So in this part:
SMALL(IF($B$2:$B$248=D$1
from this formula:
D2 = IFERROR(INDEX($A$2:$A$248,SMALL(IF($B$2:$B$248=D$1,ROW($B$2:$B$248),""),ROW()-ROW($D$1))-1),"")

i want to implement another criteria for example, IF($E$2:$E$248=xy)
how to add 1 or more criteria in this?
If i make after the IF an AND(the two criteria) it returns a #VALUE.

Thanks in advance!
 
Upvote 0
How about
=FILTER(A2:A248,(B2:B248=D1)*(E2:E248="xy"),"No data")
 
Upvote 0
Hello, i want to make a list with {} sequence if i pull the function down, so i need this IFERROR(INDEX($A$2:$A$248,SMALL(IF($B$2:$B$248=D$1,ROW($B$2:$B$248),""),ROW()-ROW($D$1))-1),"") base setup to remain. (with implementing with CTRL+SHIFT+ENTER as well)
 
Upvote 0
Did you actually try my idea?
 
Upvote 0
Are you on the semi annual channel?
 
Upvote 0

Forum statistics

Threads
1,216,165
Messages
6,129,250
Members
449,497
Latest member
The Wamp

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