Pass multiple values to FILTER formula

Todd_S

New Member
Joined
Aug 11, 2017
Messages
6
Hi. Is there a way I can pass a list of 30 values to a FILTER formula, so that it works like an OR formula? In other words, I want to pick every sale of the item number (from a long list of items) that match this list of thirty. I'm thinking of something like using curly brackets within a SUMIFS formula to act like "OR".

Thanks in advance.
 

Excel Facts

Easy bullets in Excel
If you have a numeric keypad, press Alt+7 on numeric keypad to type a bullet in Excel.
Do you mean like
+Fluff New.xlsm
EFGHIJ
1DistrictWard
2Test ValleyCupernhamSwindonCoton
3HackneyLea BridgeStaffordGorse Hill and Pinehurst
4East HertfordshireHertford CastleNewhamCheckley
5StaffordCotonBlabyHounslow Central
6North TynesideLongbentonPlaistow South
7NottinghamBulwellCosby with South Whetstone
8SwindonGorse Hill and PinehurstBingham East
9SwindonCheckleyTidworth
10High PeakSimmondley
11Hinckley and BosworthGroby
12Stockton-on-TeesGrangefield
13NewhamHounslow Central
14HorshamSteyning
15NewhamPlaistow South
16North East LincolnshireHeneage
17Windsor and MaidenheadBoyn Hill
18LeicesterWycliffe
19SheffieldShiregreen and Brightside
20ElmbridgeCobham and Downside
21BlabyCosby with South Whetstone
22BirminghamSpringfield
23BlabyBingham East
24East NorthamptonshireThrapston Lakes
25TamworthGlascote
26SwindonTidworth
27St. HelensNewton
Data
Cell Formulas
RangeFormula
J2:J9J2=FILTER(F2:F27,ISNUMBER(MATCH(E2:E27,H2:H5,0)))
Dynamic array formulas.
 
Upvote 0
Yes, that seems to have worked perfectly! Thank you so much. I'm going to step through it in Evaluate Formulas because I'm a bit stumped into how it's working.
 
Upvote 0
You're welcome & thanks for the feedback.
 
Upvote 0
Loved this trick so much I used it in a different workbook where I'm picking out employees and needed to exclude certain job titles. Shortened the formula from:

1597685799971.png


to:

1597685831375.png


Thanks again!
 
Upvote 0
My pleasure & glad you could understand it. :)
 
Upvote 0

Forum statistics

Threads
1,215,003
Messages
6,122,655
Members
449,091
Latest member
peppernaut

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