Forum Discussion

Zack_Heidemann's avatar
Zack_Heidemann
Copper Contributor
Nov 17, 2023
Solved

Filter criteria portion of the FILTER function as a cell reference

The FILTER functions syntax is:  FILTER(array,include, [if_empty])   I am wondering how to have the include portion (the filter criteria) of this reference a cell and have all of the boolean argume...
  • PeterBartholomew1's avatar
    Nov 17, 2023

    Zack_Heidemann 

    If you really do mean a string in a separate cell, then you would need to convert it to an array before applying it.

    = FILTER(list, TEXTSPLIT(commaSeparatedBooleanString,,","))
    
    where 
    'commaSeparatedBooleanString' is
    TRUE,FALSE,FALSE,FALSE,TRUE,FALSE,TRUE

    Out of curiosity, why VLOOKUP?  For me it is an obsolete function and, in so far as I have any feelings towards it, I would sum it up as 'good riddance to bad rubbish'.

     

Resources