Help using FILTER to return multiple results from XLOOKUP

cmstoren

New Member
Joined
Oct 31, 2024
Messages
9
Office Version
  1. 365
Platform
  1. MacOS
Hey all - apologies if this is really simple but even after watching multiple videos I can't seem to get the answer I need.
I'm using XLOOKUP with wildcards to find all the students taking a particular subject. I think I have the XLOOKUP part right but I'm struggling to get the FILTER function to work for me (this was recommended on a video). My formula is: =XLOOKUP("*"&$A1&"*",Subject_Lookup!D:D,Subject_Lookup!$A:$A,0,2) and this is pulling up the first student in the list but not all.

If anyone could help that would be great.

Thanks,

Chloe
 
Hello, please try this:

Excel Formula:
=FILTER(Subject_Lookup!$A:$A,ISNUMBER(SEARCH(A1,Subject_Lookup!D:D)))
 
Upvote 0
Thanks for the feedback - maybe the current value in A1 is not in the column D? The amended formula will return 0 is it is the case:

Excel Formula:
=FILTER(Subject_Lookup!$A:$A,ISNUMBER(SEARCH(A1,Subject_Lookup!D:D)),0)
 
Upvote 0
Solution

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