Need Macro that returns a "true" value in a new column for each row that contains a search term

DLR1981

New Member
Joined
Sep 15, 2016
Messages
9
Hi Everyone,

I have a spreadsheet that contains 6 columns. One of the columns contains system descriptions, which may run a paragraph or two in length. I would like to create a Macro that searches the system description column for a key word and returns "true" in a new column.

For example, if I search for "content management," I would like a macro that returns in a new column on the same spreadsheet a value of "true" in the row(s) that contains the term "content management" in the system description column (column H). Ideally, I'd like to be able to search for multiple terms on the same spreadsheet, such that if I search for "content management," all "true" values in return in column I, and if I search for "case management" all true values are returned in column J, and so on...

Does anyone know how to do this?
 
Hi Rick,

I am getting the following error on this line: "If InStr(1, Data(R, C), Phrase, vbTextCompare) Then"
 
Upvote 0

Excel Facts

Links? Where??
If Excel says you have links but you can't find them, go to Formulas, Name Manager. Look for old links to dead workbooks & delete.

Forum statistics

Threads
1,223,532
Messages
6,172,878
Members
452,486
Latest member
standw01

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