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

What is the fastest way to copy a formula?
If A2:A50000 contain data. Enter a formula in B2. Select B2. Double-click the Fill Handle and Excel will shoot the formula down to B50000.
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,214,784
Messages
6,121,536
Members
449,037
Latest member
tmmotairi

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