Removing multiple duplicate events
Lightly tested, this should work ok ..
The reference suburbs in B1:B165 are assumed fully populated
With your source addresses in A1 down,
Put this in C1, normal ENTER to confirm will do:
=IF(SUMPRODUCT(--ISNUMBER(SEARCH($B$1:$B$165,A1)))0,TRIM(SUBSTITUT E(A1,INDEX($B$1:$B$165,MATCH(TRUE,INDEX(ISNUMBER(S EARCH($B$1:$B$165,A1)),),0)),"")),"")
Copy C1 down to the last row of source data in col A. Col C should return
the desired cleansed results. Success? wave it here ..
--
Max
Singapore
"Father John" wrote in message
...
I have a spreadsheet that has a complete address in one column (a)
In column (b) (B1:B165) I have the name of the suburbs I wish to remove
from col (a)
Start
Col (A)
15 Smith Street Blacktown
Col (B7) contains the suburb Blacktown (I have 165 suburbs in this column)
I want to remove that same data from (A) so I just end up with 15 Smith
Street.
Any ideas?
Thanks in advance - Stephen
|