Change a column with multiple words to just one word?

sabot7726

Board Regular
Joined
Jun 2, 2006
Messages
62
Hi!

I have a sheet with 14,000 radio ids with 3 columns. The third column is full of words, some of which I don't need. I'm looking for a way to search for a specific word, and if it finds it in that third column, delete everything else but that word.

For example it might say "engine 45 portable on loan from battalion 41". I would want to get rid of everything except PORTABLE which is all I care about.

Is there a way to search and replace for specific words and ditch the rest?

-Mike
 

Excel Facts

Format cells as time
Select range and press Ctrl+Shift+2 to format cells as time. (Shift 2 is the @ sign).
You'd need a list of words of interest somewhere and probably VBA rather than a formula.
 
Upvote 0
Hrm I'm horrible with VBA but I do have the list of words.

I understand I'll have to specify the range, I just don't know the commands to do the search and replace. I see a few examples in the forums I could try to emulate but I don't know how to blow out the existing text and replace it with one of the keywords though.
 
Upvote 0
You're going to want to utilize wildcards.

If you have a long list of items you want to search for, VBA will be the way to go. Either way, the wildcard is *.

So to look for portable

Find *portable*

Replace with portable
 
Upvote 0
I was able to convince my boss to go another direction but I do appreciate all the tips. Someday I'll actually have the time to learn this stuff!
 
Upvote 0

Forum statistics

Threads
1,224,521
Messages
6,179,289
Members
452,902
Latest member
Knuddeluff

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