excelques2391
New Member
- Joined
- Jun 22, 2022
- Messages
- 2
- Office Version
- 365
- Platform
- Windows
Hello! I have 2 data sets:
Dataset1:
Dataset2:
For each row in Dataset2, I am looking to search in the Collection column of Dataset1 and return all of the values where a specific fruit exists. For example, from Dataset2, "apple" should return "ContainerA, ContainerC".
I tried xlookup, and while I was able to get the first result, I wasn't able to get all of the results.
In looking at the Filter function, it appears that it doesn't support wildcards, which I believe I need to account for the commas and the prefix "FRUITS\".
Is there any way to construct an Excel formula to extract this information?
Thanks!
Dataset1:
ContainerName | Collection |
---|---|
ContainerA | FRUITS\Apple, FRUITS\banana, FRUITS\GRAPES |
ContainerB | FRUITS\Pears, FRUITS\oranges |
ContainerC | FRUITS\Apple |
ContainerD | FRUITS\banana |
Dataset2:
Fruit |
---|
apple |
BANANA |
grapes |
pears |
For each row in Dataset2, I am looking to search in the Collection column of Dataset1 and return all of the values where a specific fruit exists. For example, from Dataset2, "apple" should return "ContainerA, ContainerC".
I tried xlookup, and while I was able to get the first result, I wasn't able to get all of the results.
In looking at the Filter function, it appears that it doesn't support wildcards, which I believe I need to account for the commas and the prefix "FRUITS\".
Is there any way to construct an Excel formula to extract this information?
Thanks!