LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default SUBSTITUTE using arrays?

What I need to do is a massive search-and-replace-type thing.

Specifically, I have a ton of addresses. I want to edit out the useles
and repetative words like RD, LANE, PKWY, NORTH, SOUTH, NW, AVE.
etc... and basically be left with "123 Maple 405" instead of "123 S
Maple APT # 405".

I have a nice column of items to be deleted, but I can't figure out ho
to apply that field to my other field of addresses.

I have used the SUBSTITUTE command, but it seems to work on only on
cell at a time. I need to specify ranges of cells.

Let's assume my addresses are in a1:a1000 and my "bad" phrases are i
c1:c25. My output column will be B1:b1000.

In B1, I can put:

=SUBSTITUTE($A1,$C$1,"")

I can copy it down the column and it works fine for a singl
substitution (C1). But, what I need to do is something like this:

{=SUBSTITUTE($A1,$C$1:$C$25,"")}

Except that the above line doesn't work. It outputs exactly what th
source text is.

Am I going about this the completely wrong way or do I just need t
tweak it a little

--
Message posted from http://www.ExcelForum.com

 
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
Substitute Respective Entries In Arrays FARAZ QURESHI Excel Discussion (Misc queries) 7 June 6th 09 07:43 AM
Substitute Trish Excel Worksheet Functions 7 April 28th 09 08:58 PM
=SUBSTITUTE(SUBSTITUTE(SUBSTITUTE.... max. limit 8 :( [email protected] Excel Discussion (Misc queries) 6 May 22nd 08 05:33 PM
SUBSTITUTE Steved Excel Worksheet Functions 4 June 2nd 06 06:51 PM
substitute for = CEN7272 - ExcelForums.com Excel Worksheet Functions 3 August 15th 05 09:08 PM


All times are GMT +1. The time now is 07:24 PM.

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"