CraigTriesHisBest
New Member
- Joined
- Mar 29, 2023
- Messages
- 4
- Office Version
- 365
- Platform
- Windows
Hello nice genius type people.
I have a data set where I want to match 2 out of 3 words and get the results. I can see easily how you can use a plus rather than asterisk to change my spreadsheet to get any one match but can't see how to match 2 of 3 data fields.
Have tried searching but to no avail. Many thanks in advance.
Craig
I have a data set where I want to match 2 out of 3 words and get the results. I can see easily how you can use a plus rather than asterisk to change my spreadsheet to get any one match but can't see how to match 2 of 3 data fields.
Have tried searching but to no avail. Many thanks in advance.
Craig
Filter 2 of 3 criteria match.xlsx | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|
A | B | C | D | E | F | G | H | |||
1 | ||||||||||
2 | My Data | Data where 2 of 3 of the items below match | ||||||||
3 | Red Top Cat | Red | ||||||||
4 | Red Middle Cat | Top | ||||||||
5 | Blue Bottom Dog | Cat | ||||||||
6 | Blue Top Cat | |||||||||
7 | Blue Middle Cat | Results below | ||||||||
8 | Purple Middle Cat | Red Top Cat | ||||||||
9 | Purple Top Cat | |||||||||
10 | ||||||||||
11 | This example gets results where ALL THREE data tems entered in the blue cells match | |||||||||
12 | =FILTER(B:B,ISNUMBER(SEARCH(D3,B:B))*ISNUMBER(SEARCH(D4,B:B))*ISNUMBER(SEARCH(D5,B:B)),"-None-") | |||||||||
13 | ||||||||||
14 | But what I want is to get a list of where any two match so the results would be | |||||||||
15 | ||||||||||
16 | Results wanted | |||||||||
17 | Red Top Cat | because it has Red and Top and Cat | ||||||||
18 | Red Middle Cat | because it has Red and Cat | ||||||||
19 | Blue Top Cat | because it has Top and Cat | ||||||||
20 | Purple Top Cat | because it has Top and Cat | ||||||||
21 | ||||||||||
Sheet1 |
Cell Formulas | ||
---|---|---|
Range | Formula | |
D8 | D8 | =FILTER(B:B,ISNUMBER(SEARCH(D3,B:B))*ISNUMBER(SEARCH(D4,B:B))*ISNUMBER(SEARCH(D5,B:B)),"-None-") |