Search for text

undemane

Board Regular
 Group Name Result xxx-global-hds-xxx hds xxx-network-xxx-xxx network xxx-xxx-orcl-xxx-xxx orcl

<tbody>
</tbody>
I have a table with the column on the left. I want to scan the column A (Group Name) for key words like HDS or Network or ORCL, and if I find them, then paste them to the column B. How do I do this?

Excel Facts

Do you hate GETPIVOTDATA?
Prevent GETPIVOTDATA. Select inside a PivotTable. In the Analyze tab of the ribbon, open the dropown next to Options and turn it off
You're just searching for those three words ONLY?

in B1
=IF(ISNUMBER(SEARCH("hds",A1)),"hds","")&IF(ISNUMBER(SEARCH("network",A1)),"network","")&IF(ISNUMBER(SEARCH("orcl",A1)),"orcl","")

For now, yes. Thank you for your help

You're just searching for those three words ONLY?

in B1
=IF(ISNUMBER(SEARCH("hds",A1)),"hds","")&IF(ISNUMBER(SEARCH("network",A1)),"network","")&IF(ISNUMBER(SEARCH("orcl",A1)),"orcl","")

You can also use this following formula by creating a table in C & D columns like given below. Formula =LOOKUP(2^15,SEARCH(C1:C10,A2),D1:D10) where A2 is the cell contains Group Name "xxx-global-hds-xxx", just drag up to the end.

 C hds D hds network network orcl orcl

<tbody>
</tbody>

If you want to search more words like those three words you have provided, you can simply add those in the C:D table and expand the range (rows) in lookup formula.

Replies
6
Views
198
Replies
3
Views
803
Replies
2
Views
325
Replies
3
Views
517
Replies
4
Views
606

1,219,828
Messages
6,150,471
Members
450,966
Latest member
Yali

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?

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

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