Forum Discussion
Matt_Paz
Feb 20, 2025Copper Contributor
Searching a cell value against a column of values
Hi all
Hope you are well.
I have a table as follows:
I am after a formula to search the whole of column I for the names in column A. If found, return the Team name in column H.
How is this possible? LET?
Thanks for any help
Matt
5 Replies
- Patrick2788Silver Contributor
You can do this with XLOOKUP with match mode set for regex:
=XLOOKUP(name,names,team,"",3)- Matt_PazCopper Contributor
Hi, looks like my version doesnt allow option 3 in XLOOKUP - I get the #VALUE error
- Patrick2788Silver Contributor
Then you can use the wildcard version (it's a bit longer):
=XLOOKUP("*"&name&"*",names,team,"",2)