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

Quick Sum
Select a range of cells. The total appears in bottom right of Excel screen. Right-click total to add Max, Min, Count, Average.
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,215,061
Messages
6,122,921
Members
449,094
Latest member
teemeren

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