How to create a Dynamic List that Automatically Lists Items that Match Certain Criteria

franswa3434

Board Regular
Joined
Sep 16, 2014
Messages
69
Hi,

I am trying to create a dynamic list that automatically lists items that match certain criteria. With my example below, I want all the blue and green items (as labeled in Column B) in Column A to be put into a list in Column E. This list also needs to be dynamic as more items are added to filter through and add only the "blue and green" items to the list.

Thank you anyone and everyone who is willing to help!
A</SPAN>B</SPAN>C </SPAN> D </SPAN>E</SPAN>
Item</SPAN>Color</SPAN>Blue and Green Items</SPAN>
Grass</SPAN>Green</SPAN>Grass
Water</SPAN>Blue</SPAN>Water
Fire</SPAN>Red</SPAN>Sky
Dirt</SPAN>Brown</SPAN>Go Light
Sky</SPAN>Blue</SPAN>Car
Go LightGreen
Car</SPAN>Blue</SPAN>

<TBODY>
</TBODY>
 

Excel Facts

Create a Pivot Table on a Map
If your data has zip codes, postal codes, or city names, select the data and use Insert, 3D Map. (Found to right of chart icons).
Hi.

Put this formula in C1:

=SUM(COUNTIF(B2:B8,{"Blue","Green"}))

Then this array formula** in your first cell of choice:

=IF(ROWS($1:1)>$C$1,"",INDEX($A$2:$A$8,SMALL(IF($B$2:$B$8={"Blue","Green"},ROW($B$2:$B$8)-MIN(ROW($B$2:$B$8))+1),ROWS($1:1))))

Copy this formula down (though not the one in C1) until you start to get blanks for the results.

Regards


**Array formulas are not entered in the same way as 'standard' formulas. Instead of pressing just ENTER, you first hold down CTRL and SHIFT, and only then press ENTER. If you've done it correctly, you'll notice Excel puts curly brackets {} around the formula (though do not attempt to manually insert these yourself).
 
Upvote 0
Item
Color
X
Y
Blue and Green Items
Grass
Green
Grass
Water
Blue
Water
Fire
Red
Sky
Dirt
Brown
Go Light
Sky
Blue
Car
Go Light
Green
Car
Blue

<TBODY>
</TBODY>

Select A1:E8.
Activate Insert | Table.

E2, control+shift+enter, not just enter, and copy down to E8...
Rich (BB code):
=IFERROR(INDEX($A$2:$A$8,SMALL(IF(ISNUMBER(MATCH($B$2:$B$8,{"Blue","Green"},0)),
  ROW($A$2:$A$8)-ROW($A$2)+1),ROWS($E$2:E2))),"")
 
Upvote 0

Forum statistics

Threads
1,214,535
Messages
6,120,090
Members
448,944
Latest member
sharmarick

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