searching text from a table range

winde

New Member
Joined
Nov 27, 2018
Messages
32
Hi

is there any formula to do the following?

I have a table of text which i want to use as classification.

And i have a data table with various description. and i wan to match the description with my classification.

Classification Table
[TABLE="width: 500"]
<tbody>[TR]
[TD]Happy
[/TD]
[/TR]
[TR]
[TD]Sad
[/TD]
[/TR]
[TR]
[TD]Cry[/TD]
[/TR]
</tbody>[/TABLE]


[TABLE="width: 500"]
<tbody>[TR]
[TD]Description[/TD]
[TD]Return Matches[/TD]
[/TR]
[TR]
[TD]Happy Person[/TD]
[TD]Happy[/TD]
[/TR]
[TR]
[TD]Person is Happy[/TD]
[TD]Happy[/TD]
[/TR]
[TR]
[TD]Two Sad Persons[/TD]
[TD]Sad[/TD]
[/TR]
[TR]
[TD]A Cry Person[/TD]
[TD]Cry[/TD]
[/TR]
</tbody>[/TABLE]

Thanks.
 

Excel Facts

Why does 9 mean SUM in SUBTOTAL?
It is because Sum is the 9th alphabetically in Average, Count, CountA, Max, Min, Product, StDev.S, StDev.P, Sum, VAR.S, VAR.P.
try this


Book1
AB
1Classification Table
2Happy
3Sad
4Cry
5
6DescriptionReturn Matches
7Happy PersonHappy
8Person is HappyHappy
9Two Sad PersonsSad
10A Cry PersonCry
98
Cell Formulas
RangeFormula
B7=LOOKUP(2,1/ISNUMBER(SEARCH($A$2:$A$4,A7)),$A$2:$A$4)
 
Upvote 0

Forum statistics

Threads
1,223,900
Messages
6,175,276
Members
452,629
Latest member
SahilPolekar

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