Forum Discussion
ajaws0
Feb 01, 2023Copper Contributor
Adding a wildcard to a formula
Hello, I am trying to create a search cell for my spreadsheet to search within multiple columns and rows of a table and return the column header of the matched cell. The formula works with only e...
- Feb 01, 2023
Something like this maybe. It can be folded up a bit more but this is the idea:
=UNIQUE(BYCOL(colors,LAMBDA(col,IF(ISNUMBER(XMATCH("*"&L1&"*",col,2)),TAKE(col,1),""))),1,1)
Patrick2788
Feb 01, 2023Silver Contributor
Something like this maybe. It can be folded up a bit more but this is the idea:
=UNIQUE(BYCOL(colors,LAMBDA(col,IF(ISNUMBER(XMATCH("*"&L1&"*",col,2)),TAKE(col,1),""))),1,1)
ajaws0
Feb 03, 2023Copper Contributor
Thank you! This worked perfectly.
- Patrick2788Feb 03, 2023Silver ContributorGlad it worked. You're welcome!