Search Text in string and return a value from table

krishnanshu

New Member
Joined
Aug 29, 2014
Messages
8
Here is the table of raw data
[TABLE="width: 440"]
<colgroup><col></colgroup><tbody>[TR]
[TD][/TD]
[/TR]
[TR]
[TD]
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD]Hi, I will call Sonia to come and get Nidhi from US for the party[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]R u going to teach in the school, where Rashi is teaching[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Hi, I went to california and I saw Nidhi over there. I think she has shifted[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]I would like to me Karl in office today[/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[/TR]
</tbody>[/TABLE]

I would like These words to be searched in sequential order from L1 to L4 column. If any found, return with value of L5 in new column

[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD][TABLE="width: 441"]
<colgroup><col><col><col><col><col></colgroup><tbody>[TR]
[TD]L1[/TD]
[TD]L2[/TD]
[TD]L3[/TD]
[TD]L4[/TD]
[TD]L5[/TD]
[/TR]
[TR]
[TD]Gopal[/TD]
[TD]Babu[/TD]
[TD]Venkat[/TD]
[TD]Nidhi[/TD]
[TD]Sunnyvale[/TD]
[/TR]
[TR]
[TD]Sudeep[/TD]
[TD]Sameer[/TD]
[TD]Rashi[/TD]
[TD]Bala[/TD]
[TD]Los angeles[/TD]
[/TR]
[TR]
[TD]Sonia[/TD]
[TD]Arun[/TD]
[TD]Satish[/TD]
[TD]Jeeda[/TD]
[TD]New York[/TD]
[/TR]
[TR]
[TD]ABC[/TD]
[TD]Monika[/TD]
[TD]Karl[/TD]
[TD]MNO[/TD]
[TD]San Jose[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
 

Excel Facts

Show numbers in thousands?
Use a custom number format of #,##0,K. Each comma after the final 0 will divide the displayed number by another thousand

Forum statistics

Threads
1,225,477
Messages
6,185,218
Members
453,283
Latest member
Shortm88

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