# Extract unique values based on multiple criteria

#### asun6068

##### New Member
hello community, I'm looking to extract values from a spreadsheet based on multiple data. I used the following tutorial, which led me to create an array that worked perfectly for creating outputs based on 1 condition, but my attempts to expand it for 2 criterion haven't worked:

https://www.extendoffice.com/documents/excel/3381-excel-extract-unique-values-with-criteria.html

this is the original formula from the tutorial:

=INDEX(\$B\$2:\$B\$17, MATCH(0, IF(\$D\$2=\$A\$2:\$A\$17, COUNTIF(\$E\$1:\$E1, \$B\$2:\$B\$17), ""), 0))

I'd like to add something that says: and also make sure the extract is above an X threshold.

Thank you!

Last edited:

### Excel Facts

What do {} around a formula in the formula bar mean?
{Formula} means the formula was entered using Ctrl+Shift+Enter signifying an old-style array formula.
obviously untested, but something like...
=INDEX(\$B\$2:\$B\$17, MATCH(0, IF((\$D\$2=\$A\$2:\$A\$17)*(\$b\$2:\$b\$17>="xxx"), COUNTIF(\$E\$1:\$E1, \$B\$2:\$B\$17), ""), 0))

Replies
18
Views
636
Replies
0
Views
103
Replies
3
Views
302
Replies
7
Views
236
Replies
3
Views
640

### Forum statistics

Threads
1,196,448
Messages
6,015,324
Members
441,889
Latest member
balolaptopgiaolong

### 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

### 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