Match the right tags

ramananhrm

Board Regular
Joined
Apr 19, 2011
Messages
156
I have a question for the below mentioned issue
I have to find out the right tag from the approriate sub categories in the following sentences
How do we create a formula for this issue?
Please help me out

Pets Wild Birds Insects
Dog Lion Parrot Bee
Cat Tiger Pigeon Fly
Goat Crocodile Love Birds Bug
Sheep Cheetah Duck Ant
Hen Elephant Peocock Mosquito

Subcategories: Sentances
Wild: The Lion king
Pets: Dog is my friend
Insects: The risk insect is Mosquito
Insects: The Ant is always active
Wild: The Cheetah is fastest animal
Wild: The Lion and tiger are wild animals

The output should be as mentioned below

Subcategories: Sentances: Tags
Wild: The Lion king: Lion
Pets: Dog is my friend: Dog
Insects: The risk insect is Mosquito: Mosquito
Insects: The Ant is always active: And
Wild: The Cheetah is fastest animal: Cheetah
Wild: The Lion and tiger are wild animals: Lion, Tiger
 

Excel Facts

Test for Multiple Conditions in IF?
Use AND(test, test, test, test) or OR(test, test, test, ...) as the logical_test argument of IF.
Hi Ramananhrm,

Try this:
=LOOKUP(3^15,SEARCH($H$2:$H$7,B2),$H$2:$H$7)

In Column H put TAGS & in Column B enter sentences

Hope this will work.

Shweta
 
Upvote 0
Hi Shweta,

Thank you so much for the timely reply.
Im little confused with the solution.
Please help me out how do i attach the excel sheet to show you the correct output.
 
Upvote 0

Forum statistics

Threads
1,224,574
Messages
6,179,633
Members
452,933
Latest member
patv

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