substitute several words in one column

miaomay

New Member
Joined
Sep 10, 2013
Messages
8
Hi all,

In the raw file, there have several different words I need to clean up first so I use formula SUBSTITUTE to do it. For example, I need to substitute %20, http://, and WER: to be blank. I created three columns, one for Substitute[ColumnA, "%20",""], another column Substitute[ColumnB, "http://",""] and the other Substitute[ColumnC, "WER:",""].

Does anyone know how to combine three factors into one column if one or more of them exists, replace them to blank?

Thank you!
 

Excel Facts

Excel Can Read to You
Customize Quick Access Toolbar. From All Commands, add Speak Cells or Speak Cells on Enter to QAT. Select cells. Press Speak Cells.
Maybe you are looking for something like:

=substitute(substitute(substitute(a1,"%20",""),"http://",""),"WER:","")

Change a1 to the right cell reference.

Hope that helps.
 
Upvote 0

Forum statistics

Threads
1,223,958
Messages
6,175,627
Members
452,661
Latest member
Nonhle

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