match with multiple criteria to a dataset of unique values

DutchKevin

Board Regular
Joined
Apr 13, 2011
Messages
133
Office Version
  1. 365
Platform
  1. Windows
Hi All,

I’d like to post the following question.
In one sheet I’d like the user to select from 3 dropdown lists certain predefined values.
On the second sheet there is a long list of unique cells (one column, that can't be split into usefull columns with text to columns or something).
I want to find the cell that holds the three text choices. These can be in different order to make things more complex.
How do I create a search that finds that one match.

Example
The user selects “AAA” and “DDD” and “FFF” from the dropdown lists
The formula should find that one cell that holds this value: “FFF JJJ GGG DDD CCC AAA”. This is the only cell that holds all three chosen values in one text. In the end I would need to have the row number of that cell, but either way I would be happy to find the answer.
 

Excel Facts

Save Often
If you start asking yourself if now is a good time to save your Excel workbook, the answer is Yes
please check if this will help you

Excel 2007
ABCDEFGHIJK
1Cri 1Cri 2Cri 3ValDrop 1Drop 2Drop 3
2AAABBBCCC5134CCCAAABBB2002
3BBBBBBCCC1756
4CCCBBBCCC4985
5AAABBBCCC4879
6AAABBBCCC2929
7AAABBBCCC1820
8AAABBBCCC2726
9CCCBBBCCC4069
10CCCBBBCCC4996
11CCCBBBBBB1767
12CCCAAABBB2002
13BBBAAACCC4085
14BBBAAACCC565
15BBBAAACCC4146
16BBBAAACCC2658
17BBBAAACCC2367
Sheet1
 
Upvote 0
Hi Yahya, thanks for the quick reply.
My reference data is however not so neatly organized as it now is in your model. It occupies only one column, and I can't split it over multiple columns.
What I would nead is more like searching multiple text occurances in a string.
I do wonder how you come to the Val column?

Kevin
 
Upvote 0
Hi,
this is part of it.
my user would for instance select "bottom cover" "3503" and "1390", resulting in the bold text to be preseneted as outcome.
but many, many more different text can be searched for. some 35 choices need to be made in the end. searching through the range for the one that matches.[TABLE="width: 399"]
<tbody>[TR]
[TD="align: left"][/TD]
[/TR]
[TR]
[TD="align: left"]Top Cover-1510-no split[/TD]
[/TR]
[TR]
[TD="align: left"]Top Cover-2500/2510-split[/TD]
[/TR]
[TR]
[TD="align: left"]Top Cover-3503-split[/TD]
[/TR]
[TR]
[TD="align: left"]Top Cover-3510-split[/TD]
[/TR]
[TR]
[TD="align: left"]Bottom Cover-1510-900[/TD]
[/TR]
[TR]
[TD="align: left"]Bottom Cover-2500/2510-900[/TD]
[/TR]
[TR]
[TD="align: left"]Bottom Cover-3503-900[/TD]
[/TR]
[TR]
[TD="align: left"]Bottom Cover-3503/3510 - 1390[/TD]
[/TR]
[TR]
[TD="align: left"]Bottom Cover-3503-1625[/TD]
[/TR]
</tbody><colgroup><col></colgroup>[/TABLE]
 
Upvote 0
Re: match with multiple criteria to a dataset of unique values, continued

ok, i seem to have half the solution.
Code:
=AND(SEARCH($H$2:$H$8;B2))
this compares all criteria in H2:H8 against the content of B2.
that's good. I could use it to run a helper column to support my needs. this would unfortunately lead to too many columns to my liking.

Is there a way to let the array formula present me a relative position in the data range at which the match is found?
Suppose the range is A1:A500, and the match is at position of row 243, can the array present that as an outcome?
 
Upvote 0
Re: match with multiple criteria to a dataset of unique values, continued

:stickouttounge:
oops, double submitted
 
Last edited:
Upvote 0

Forum statistics

Threads
1,223,249
Messages
6,171,031
Members
452,374
Latest member
keccles

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