Filter function using a hard coded string of values in include.

HighAndWilder

Well-known Member
Joined
Nov 4, 2006
Messages
712
Office Version
  1. 365
Platform
  1. Windows
I've forgotten the syntax for using the FILTER function where the include values are in a hard coded array.

Formula in G1 obviocly not working.

Thanks

Extract the word which carries the specific text.xlsm
ABCDEFG
1FruitQtySellTotal#VALUE!
2Orange16£57£912
3Apple87£39£3,393
4Apple61£39£2,379
5Orange41£57£2,337
6Melon88£92£8,096
7Banana89£46£4,094
8Orange20£57£1,140
9Apple40£39£1,560
10Grape38£10£380
11Banana33£46£1,518
12Orange70£57£3,990
13Orange94£57£5,358
Sheet2
Cell Formulas
RangeFormula
G1G1=FILTER($A$2:$A$19,$A$2:$A$19={"Apple","Banana"},"")
 

Excel Facts

Pivot Table Drill Down
Double-click any number in a pivot table to create a new report showing all detail rows that make up that number
How about
Excel Formula:
=FILTER($A$2:$A$19,ISNUMBER(XMATCH($A$2:$A$19,{"Apple","Banana"})),"")
 
Upvote 0
Solution
You're welcome & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,224,815
Messages
6,181,135
Members
453,021
Latest member
Justyna P

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