Forum Discussion
Can Excel =filter function include a 'criteria range' for multiple criteria of one column?
Hello Everyone,
I am trying to use =filter formula to filter multiple criteria for a single column as below, by using a "criteria range":
However it is not working and return an #N/A
I'd like to use the =filter to return an dynamic array by using "criteria range", as if what the 'advanced filter' can do to filter multiple criteria of a particular column:
I know that =filter can do multiple criteria, by including each criteria in the formula one-by-one:
however, comparing to a single 'criteria range/ array', this method is far too troublesome especially when there is a long list of criteria for a particular column.
Did I make any mistakes in the =filter formula with a 'criteria range'?; or the =filter formula is just not capable to do that?
Thank you!
10 Replies
- PeterBartholomew1Silver Contributor
An alternative using COUNTIFS.
= FILTER(table, COUNTIFS(selected, column1))
- mdrinevCopper Contributor
Can you please explain HOW exactly this formula works? It is so elegant but I cannot decode the steps it takes to get the result.
- Subodh_Tiwari_sktneerSilver Contributor
- jasonrobichaud27Copper Contributor
Had a real head scratcher - I have a situation where the same client could have one or multiple account numbers and vendor names in our database, and needed a way to filter out their real account history, and this was the final puzzle piece - Thank you! (Took me a bit to figure out why it wasn't working, until I realized I had to switch the lookup value and lookup array around... I still don't fully know how it works, but it does!)
- PooriaForootanCopper Contributor
Subodh_Tiwari_sktneer Holy ... your solution is amazing. I've been doing all types of crazy stuff to do what you just did so simply. You really saved me. Thanks.
- Thoss1655Copper Contributor#2023 and still awesome answer. Thanks, exactly what i was looking for !