Forum Discussion
StuLux23
Feb 18, 2020Copper Contributor
Can I use wildcards with the new FILTER function
I want to be able to filter a list that contains cells with lengthy text strings in them such as "12:15 to 12:35 Meeting with (Sponsor 1) at table (2) (Delegate Request)". I want to create a new lis...
- Feb 18, 2020
Perhaps the attached file helps you find a solution. It combines FILTER with a SEARCH for the text string in the larger text.
SergeiBaklan
Feb 18, 2020Diamond Contributor
IMHO, one filter is enough for this formula
=FILTER($A$2:$A$8,ISNUMBER(SEARCH($C$1,$B$2:$B$8))*NOT(ISNUMBER(SEARCH("TBC",$B$2:$B$8))))
kaarthuul
Jul 10, 2024Copper Contributor
SergeiBaklan This works great for me, however if the exclusion is blank I get a #CALC! error. Can this be modified to allow for this?
- SergeiBaklanJul 10, 2024Diamond Contributor
#CALC! error if the FILTER returns empty array. You may wrap FILTER by IFERROR if so, like
=IFERROR( FILTER( ... ), "" )
returning empty string or whatever you wish.