Create a unique list of values based on criteria in column where column meets criteria

RPJoos

New Member
Joined
Apr 18, 2018
Messages
3
I need a formula to return a unique list of values in (A3:A6) of values from (D2:D6) that are in the column (E:H) that match the criteria in (B1) and have an "x" in Rows (2:6). Need column searched to change based on value in (B1). Thank you:)

A
B
C
D
E
F
G
H
1
Criteria
Ice Cream
Ice Cream
Yogurt
Sherbet
Pastry
2
Rob
x
x
x
x
3
Rob
Maggie
x
x
x
4
Maggie
Phil
x
x
5
John
John
x
x
x
6
Helen
x
x

<tbody>
</tbody>
 

Excel Facts

Control Word Wrap
Press Alt+Enter to move to a new row in a cell. Lets you control where the words wrap.
In A3 control+shift+enter, not just enter, and copy down:

=IFERROR(INDEX($D$2:$D$6,SMALL(IF(INDEX($E$2:$H$6,0,MATCH(B$1,$E$1:$H$1,0))="x",ROW($D$2:$D$6)-ROW($D$2)+1),ROWS($A$3:A3))),"")

The assumption is here that there are no duplicate occurrences in D2:D6 like two Phil's for example.
 
Upvote 0

Forum statistics

Threads
1,214,889
Messages
6,122,097
Members
449,065
Latest member
albertocarrillom

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