Retrieving lines from a dataset that match more than one criteria using array formula

Sztofts

New Member
Joined
Mar 9, 2019
Messages
2
Hi

I am having trouble getting this simple task completed. I want to retrieve the lines from the dataset which match the criteria in the criteria range as there's more than one criteria, the lines retrieved must match just one of the criteria to appear in the result.

The formula I am having trouble with is:

'=SMALL(IF($C$3:$C$8=$H$11,ROW($B$3:$B$8)-2,IF($C$3:$C$8=$H$12,ROW($B$3:$B$8)-2,IF($C$3:$C$8,$H$13,ROW($B$3:$B$8)-2))),ROW(1:1))

where
C3:C8 is the data set
H11:H13 is the criteria (three cells)

There are curly brackets around my working formula which do not appear in the formula above.

Any help greatly appreciated.
 

Excel Facts

Wildcard in VLOOKUP
Use =VLOOKUP("Apple*" to find apple, Apple, or applesauce
Try one of these formulas. Formula in D1 if you have Excel 2010 or later or formula in F1 which must be enter with CTRL-SHIFT-ENTER. Drag formulas down as needed.
Excel Workbook
CDEFG
2Data
3test111
4test244
5test377
6test488
7test5
8test6
9test4
10test8
11test9test1
12test4
13test8
Sheet
 
Upvote 0

Forum statistics

Threads
1,223,227
Messages
6,170,849
Members
452,361
Latest member
d3ad3y3

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