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

Copy formula down without changing references
If you have =SUM(F2:F49) in F50; type Alt+' in F51 to copy =SUM(F2:F49) to F51, leaving the formula in edit mode. Change SUM to COUNT.
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,223,889
Messages
6,175,224
Members
452,620
Latest member
dsubash

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