Forum Discussion
Concatenating arguments in the Filter() function
- May 29, 2020
And that's precisely what I've provided you with. Have you not tested? Choose any cell you like to hold the operator, e.g. W1:
=FILTER(RangeToFilter,COUNTIF(ConditionValue,W1&INDIRECT(VLOOKUP("Q",$T$4:$U$5,2,0))),"")
This was not a legitimate possibility with your formula and the whole point of my switching to a construction involving COUNTIF.
Regards
Hi,
=FILTER(RangeToFilter,COUNTIF(ConditionValue,">"&INDIRECT(VLOOKUP(your_v_lookup))),"")
Amend the condition (">" here) as required. Note that it needs to be this way round, i.e. the condition precedes the array being queried, so just be careful with your logic: effectively the above is filtering for values which are less than ConditionValue.
Regards
- Jos_WoolleyMay 29, 2020Iron Contributor
And that's precisely what I've provided you with. Have you not tested? Choose any cell you like to hold the operator, e.g. W1:
=FILTER(RangeToFilter,COUNTIF(ConditionValue,W1&INDIRECT(VLOOKUP("Q",$T$4:$U$5,2,0))),"")
This was not a legitimate possibility with your formula and the whole point of my switching to a construction involving COUNTIF.
Regards
- adame145May 29, 2020Copper ContributorFantastic - yes! I'm not sure why countif and reversing the argument order works (I'll have to think about that some more) but it does so thank you!!!