substitute array operaion

farhan1194123

New Member
Joined
Aug 28, 2017
Messages
24
Office Version
  1. 365
Platform
  1. Windows
i have text in col B1:B101
How can i build the formula in A1 and copy it down
by using substitute function to substitute multiple text at once

==SUBSTITUTE(B1,"1st floor" & "2nd floor"&…So On,"")
OLD TEXT is multiple new text will be ""
 

Excel Facts

Format cells as currency
Select range and press Ctrl+Shift+4 to format cells as currency. (Shift 4 is the $ sign).
Can you give a a few examples of before and after? It's not clear what multiple strings you want replaced with a blankstring or how the output should look
 
Upvote 0
How can i build the formula in A1 and copy it down
by using substitute function to substitute multiple text at once

Hi, you'd need to nest them, which can quickly become unpractical if you have more than a handful of substitutions.

For example:

=SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(B1,"1st floor",""),"2nd floor",""),"and so on","")
 
Upvote 0
Can you give a a few examples of before and after? It's not clear what multiple strings you want replaced with a blankstring or how the output should look

there are address in col b1:b101, i want to replace "ground floor" "1st floor" and so on. other items in text string remain
same.
can be done with CTRL+H to search and replace with blank one by one but i want to do with formula.
 
Upvote 0

Forum statistics

Threads
1,224,822
Messages
6,181,164
Members
453,021
Latest member
Justyna P

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