Multiple IF contains Lookup

DT112

New Member
Joined
Jan 31, 2018
Messages
9
Hi!

I am trying to do the following. I have one column which contains different search criteria and another column where I want to search each word against, if it finds a partial match, return the word? How can I do this without a massive nested if statement? Essentially I need it to do a multi search and return one match.

E.G.


[TABLE="width: 500"]
<tbody>[TR]
[TD]Fruit
[/TD]
[TD]Search
[/TD]
[TD]Value (DESIRED RETURN VALUE)
[/TD]
[/TR]
[TR]
[TD]Apples Tree
[/TD]
[TD]mango
[/TD]
[TD]apple
[/TD]
[/TR]
[TR]
[TD]Mangos Juice
[/TD]
[TD]orange
[/TD]
[TD]mango
[/TD]
[/TR]
[TR]
[TD]Watermelons Seed
[/TD]
[TD]melon
[/TD]
[TD]melon
[/TD]
[/TR]
[TR]
[TD]Oranges Tree
[/TD]
[TD]apple
[/TD]
[TD]orange
[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
 

Excel Facts

Whats the difference between CONCAT and CONCATENATE?
The newer CONCAT function can reference a range of cells. =CONCATENATE(A1,A2,A3,A4,A5) becomes =CONCAT(A1:A5)
Are you saying that if mango is found under fruit, return apple, etc? If so, let A2:A5 house the Fruit strings.

In B2 enter and copy down:

=LOOKUP(9.99999999999999E+307,SEARCH(" "&SearchItems," "&$A2),ValueItems)
 
Upvote 0
Are you saying that if mango is found under fruit, return apple, etc? If so, let A2:A5 house the Fruit strings.

In B2 enter and copy down:

=LOOKUP(9.99999999999999E+307,SEARCH(" "&SearchItems," "&$A2),ValueItems)

Hi,

No what I want is for each element in the fruit list, I want it to check through the entire of the search list (they will be in random order) if it finds a match in the fruit list (i.e apple matches, apple tree) return the value apple.

Essentially I want to have a column which tags the fruits by a pre-defined list of options (i.e. the search list)
 
Upvote 0
Hi,

No what I want is for each element in the fruit list, I want it to check through the entire of the search list (they will be in random order) if it finds a match in the fruit list (i.e apple matches, apple tree) return the value apple.

Essentially I want to have a column which tags the fruits by a pre-defined list of options (i.e. the search list)

In that case:

=LOOKUP(9.99999999999999E+307,SEARCH(SearchItems,$A2),SearchItems)
 
Upvote 0

Forum statistics

Threads
1,222,561
Messages
6,166,802
Members
452,073
Latest member
akinch

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