ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   Multiple Find and Replace in one function (https://www.excelbanter.com/excel-worksheet-functions/109311-multiple-find-replace-one-function.html)

[email protected]

Multiple Find and Replace in one function
 
I'm wondering how I can clean one column of text using multiple find
arguments. This is what I have so far:

=MID(B3,1,FIND(" Corp.",B3,1)-1)

In addition to " Corp." I want to remove " Inc.", " Co." and a couple
other ones. Any help is much appreciated.


Nobody

Multiple Find and Replace in one function
 
=SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(B3," Corp.","")," Inc.","")," Co.","")


" wrote:

I'm wondering how I can clean one column of text using multiple find
arguments. This is what I have so far:

=MID(B3,1,FIND(" Corp.",B3,1)-1)

In addition to " Corp." I want to remove " Inc.", " Co." and a couple
other ones. Any help is much appreciated.



Biff

Multiple Find and Replace in one function
 
Try this:

=SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(A1," Corp. ","")," Inc. ","")," Co. ","")

Note that Substitute is case sensitive. <spcorp.<sp will not match
<spCorp.<sp

Biff

wrote in message
ups.com...
I'm wondering how I can clean one column of text using multiple find
arguments. This is what I have so far:

=MID(B3,1,FIND(" Corp.",B3,1)-1)

In addition to " Corp." I want to remove " Inc.", " Co." and a couple
other ones. Any help is much appreciated.




[email protected]

Multiple Find and Replace in one function
 
Awesome! Thanks!
Biff wrote:
Try this:

=SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(A1," Corp. ","")," Inc. ","")," Co. ","")

Note that Substitute is case sensitive. <spcorp.<sp will not match
<spCorp.<sp

Biff

wrote in message
ups.com...
I'm wondering how I can clean one column of text using multiple find
arguments. This is what I have so far:

=MID(B3,1,FIND(" Corp.",B3,1)-1)

In addition to " Corp." I want to remove " Inc.", " Co." and a couple
other ones. Any help is much appreciated.



Biff

Multiple Find and Replace in one function
 
You're welcome!

Biff

wrote in message
oups.com...
Awesome! Thanks!
Biff wrote:
Try this:

=SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(A1," Corp. ","")," Inc. ","")," Co.
","")

Note that Substitute is case sensitive. <spcorp.<sp will not match
<spCorp.<sp

Biff

wrote in message
ups.com...
I'm wondering how I can clean one column of text using multiple find
arguments. This is what I have so far:

=MID(B3,1,FIND(" Corp.",B3,1)-1)

In addition to " Corp." I want to remove " Inc.", " Co." and a couple
other ones. Any help is much appreciated.






All times are GMT +1. The time now is 07:48 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com