Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 19
Default 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.

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 47
Default 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.


  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,688
Default 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.



  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 19
Default 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.


  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,688
Default 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.




Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
My Find and Replace function in Excel is not working? BPeach Excel Worksheet Functions 2 December 20th 06 11:27 PM
Macro: Find and replace Bertie Excel Discussion (Misc queries) 1 May 29th 06 02:01 PM
Help! - Lost function in Find & Replace! jmn13 Excel Discussion (Misc queries) 1 May 25th 06 06:16 PM
HOW CAN I GET THE REPLACE FUNCTION TO DEFAULT TO FIND WHAT? mdmerriam Excel Discussion (Misc queries) 1 April 30th 05 02:57 AM
How can I do a find and replace for a cell that has multiple line. yrat Excel Discussion (Misc queries) 1 April 19th 05 03:48 PM


All times are GMT +1. The time now is 06:50 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"