Create distinct list with criteria

brentbush

New Member
Joined
Mar 10, 2024
Messages
7
Office Version
  1. 365
Platform
  1. Windows
Hello,

I have successfully created a distinct list of items from another list (no duplicates) and now I want to filter that list so that it only lists items that include a certain text string in it. I need to use wild cards because the test string is imbedded with other text.

In my search I see multiple ways to do this. I do not have the Unique or Filter formulas available, so I found others use the match, countif + if or search, but I am unable to get these options to work. I have attached a generic example.

Any insights on what to add to this formula to only include a certain text string?
IFERROR(INDEX($B$5:$B$11, MATCH(0,COUNTIF($D$4:D4, $B$5:$B$11), 0)),"")

Thank you for your help.

Brent

Unique list with criteria.xlsx
BCD
4Long ListUnique List
5a Item 1a Item 1
6aItem2aItem2
7part1part1
8aItem2part2
9part2product 1
10a Item 1 
11part1 
12product 1
Sheet1
Cell Formulas
RangeFormula
D5:D9D5=IFERROR(INDEX($B$5:$B$12, MATCH(0,COUNTIF($D$4:D4, $B$5:$B$12), 0)),"")
D10:D11D10=IFERROR(INDEX($B$5:$B$11, MATCH(0,COUNTIF($D$4:D9, $B$5:$B$11), 0)),"")
Press CTRL+SHIFT+ENTER to enter array formulas.


1710095791218.png
 

Excel Facts

Get help while writing formula
Click the italics "fx" icon to the left of the formula bar to open the Functions Arguments dialog. Help is displayed for each argument.
Hi & welcome to MrExcel.
How about
Fluff.xlsm
ABCD
1
2
3
4Long ListUnique List
5a Item 1a Item 1
6aItem2aItem2
7part1 
8aItem2 
9part2 
10a Item 1
11part1
12product 1
13
Data
Cell Formulas
RangeFormula
D5:D9D5=IFERROR(INDEX(B:B,AGGREGATE(15,6,ROW($B$5:$B$100)/(ISNUMBER(SEARCH("item",$B$5:$B$100)))/(ISNA(MATCH($B$5:$B$100,D$4:D4,0))),1)),"")
 
Upvote 0
Solution
You're welcome & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,223,884
Messages
6,175,175
Members
452,615
Latest member
bogeys2birdies

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