Search column cells for multiple criteria

asippel1

New Member
Joined
Mar 2, 2018
Messages
1
I am trying to search for multiple text fields in column A and once they are all found in one cell, return the value of the next cell in column B.

Example:
I want to search for 10#, TALL, BOWL, and BLUE in column A and once all of them are found in one cell, return the Product No that is in Column B. My real data has other information within the cells in column A (Description) which is why I need the formula to be done this way instead.

Any help would be appreciated. I've tried looking everywhere and can't seem to find the answer. Thanks in advanced!
DESCRIPTIONPRODUCT NOPRODUCT NO
BLUE BOTTLE TALL 10#10111110#TALLBOWLBLUE (formula)
BLUE BOTTLE TALL 20#10111210#SHORTBOTTLEGREEN (formula)
BLUE BOTTLE SHORT 10#101113
BLUE BOTTLE SHORT 20#101114
GREEN BOTTLE TALL 10#101115
GREEN BOTTLE TALL 20#101116
GREEN BOTTLE SHORT 10#101117
GREEN BOTTLE SHORT 20#101118
BLUE BOWL TALL 10#101119
BLUE BOWL TALL 20#101120
BLUE BOWL SHORT 10#101121
BLUE BOWL SHORT 20#101122
GREEN BOWL TALL 10#101123
GREEN BOWL TALL 20#101124
GREEN BOWL SHORT 10#101125
GREEN BOWL SHORT 20#101126

<tbody>
</tbody><colgroup><col><col><col span="5"><col></colgroup>
 

Excel Facts

Workdays for a market open Mon, Wed, Friday?
Yes! Use "0101011" for the weekend argument in NETWORKDAYS.INTL or WORKDAY.INTL. The 7 digits start on Monday. 1 means it is a weekend.
Here are a couple of options:

If you want to specify the text as you described you can use: =IFERROR(IF(AND(SEARCH("10#",A11)>0,SEARCH("TALL",A11)>0,SEARCH("BOWL",A11)>0,SEARCH("BLUE",A11)>0),B11,""),"")

If you want to look for the values listed in cells D3 through G3 you can use: =IFERROR(IF(AND(SEARCH(D3,A3)>0,SEARCH(E3,A3)>0,SEARCH(F3,A3)>0,SEARCH(G3,A3)>0),B3,""),"")
 
Upvote 0
I am trying to search for multiple text fields in column A and once they are all found in one cell, return the value of the next cell in column B.

Example:
I want to search for 10#, TALL, BOWL, and BLUE in column A and once all of them are found in one cell, return the Product No that is in Column B. My real data has other information within the cells in column A (Description) which is why I need the formula to be done this way instead.

Any help would be appreciated. I've tried looking everywhere and can't seem to find the answer. Thanks in advanced!
DESCRIPTIONPRODUCT NO




PRODUCT NO
BLUE BOTTLE TALL 10#101111
10#TALLBOWLBLUE (formula)
BLUE BOTTLE TALL 20#101112
10#SHORTBOTTLEGREEN (formula)
BLUE BOTTLE SHORT 10#101113





BLUE BOTTLE SHORT 20#101114





GREEN BOTTLE TALL 10#101115





GREEN BOTTLE TALL 20#101116





GREEN BOTTLE SHORT 10#101117





GREEN BOTTLE SHORT 20#101118





BLUE BOWL TALL 10#101119





BLUE BOWL TALL 20#101120





BLUE BOWL SHORT 10#101121





BLUE BOWL SHORT 20#101122





GREEN BOWL TALL 10#101123





GREEN BOWL TALL 20#101124





GREEN BOWL SHORT 10#101125





GREEN BOWL SHORT 20#101126

<tbody>
</tbody>

Maybe this:

In H2 and copy down:

=LOOKUP(1,1/(MMULT(--ISNUMBER(SEARCH(" "&$D2:$G2&" "," "&$A$2:$A$17&" ")),{1;1;1;1})=4),$B$2:$B$17)

Markmzz
 
Upvote 0

Forum statistics

Threads
1,214,950
Messages
6,122,428
Members
449,083
Latest member
Ava19

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