FILTER function with multiple criteria already in Include syntax

PabloXL

New Member
Joined
Apr 25, 2020
Messages
5
Office Version
  1. 365
Platform
  1. Windows
  2. MacOS
  3. Mobile
Hello - question is how do you included multiple criteria in the second syntax in the FILTER function?

I have a formula like this:

=FILTER(array1,array1[column5]={“apple”;”orange”;”bananna”})

However, instead of returning all the filtered rows out of Array1 that have apple, orange, and banana in column 5 I just get #N/A.

All the posts I’ve read talk about making the Include syntax to be (array1[column5]=“apple”)+(array1[column5]=“orange”)+(array1[column5]=“banana”) but the number of fruits (in this example) will always be changing….maybe one time it will just be blueberry, but another time it could be strawberry and grape so need to have the Include syntax flexible
 

Excel Facts

Who is Mr Spreadsheet?
Author John Walkenbach was Mr Spreadsheet until his retirement in June 2019.
How about
Excel Formula:
=FILTER(array1,ISNUMBER(XMATCH(array1[column5],{"apple";"orange";"bananna"})))
 
Upvote 0
wow! o_O

looks like worked great; never would have thought of that!!! thank you!!!!!
 
Upvote 0
You're welcome & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,223,893
Messages
6,175,240
Members
452,621
Latest member
Laura_PinksBTHFT

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top