Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default Address Format Problem

Hey,
I've got a list of a couple thousand names and addresses.
Unfortunately somewhere along the fields "Address Number" and "Street
Name" where merged together. Whoever merged them forgot to add the " "
Character inbetween. Now I have a bunch of addresses like "1234Main
St.","1111Grand" and "250E 10th St.". Any idea how I can fix these? I
figure I need to use a macro because I've been playing around with the
text string functions and can't find any thing that will work.

KCJ

  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11,058
Default Address Format Problem

Try this small user defined function:

Function blank_in(r As Range) As String
blank_in = ""
s = r.Value
n = Len(s)
trip = False
For i = 1 To n
sbit = Mid(s, i, 1)
If IsNumeric(sbit) Then
blank_in = blank_in & sbit
Else
If trip = False Then
trip = True
blank_in = blank_in & " " & sbit
Else
blank_in = blank_in & sbit
End If
End If
Next
End Function


if A1 contains:
123main street
then
=blank_in(A1)
will return
123 main street

--
Gary''s Student - gsnu200718
  #3   Report Post  
Posted to microsoft.public.excel.misc
CLR CLR is offline
external usenet poster
 
Posts: 1,998
Default Address Format Problem

You could copy the column over into a helper column, giving two columns with
the same data.........then, using ASAP Utilities, a free add-in available at
www.asap-utilities.com, there is a feature therein that will delete all
alpha-characters from one column, and another that will delete all numerical
characters from the other.....

Vaya con Dios,
Chuck, CABGx3



" wrote:

Hey,
I've got a list of a couple thousand names and addresses.
Unfortunately somewhere along the fields "Address Number" and "Street
Name" where merged together. Whoever merged them forgot to add the " "
Character inbetween. Now I have a bunch of addresses like "1234Main
St.","1111Grand" and "250E 10th St.". Any idea how I can fix these? I
figure I need to use a macro because I've been playing around with the
text string functions and can't find any thing that will work.

KCJ


  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 268
Default Address Format Problem

Lumping all elements of a name and / or address into one field is a common
problem by people who just don't realise the practical implications. It
would be a good idea to put 'house number' and 'Street' into separate
fields. This facilitates, amongst other things, searching and sorting on
those elements. Fore more information please go to
http://www.1001solutions.co.uk/Desig...preadsheet.pdf

Regards.

Bill Ridgeway
Computer Solutions

wrote in message
oups.com...
Hey,
I've got a list of a couple thousand names and addresses.
Unfortunately somewhere along the fields "Address Number" and "Street
Name" where merged together. Whoever merged them forgot to add the " "
Character inbetween. Now I have a bunch of addresses like "1234Main
St.","1111Grand" and "250E 10th St.". Any idea how I can fix these? I
figure I need to use a macro because I've been playing around with the
text string functions and can't find any thing that will work.

KCJ



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
Address book worksheet problem sharon Excel Worksheet Functions 5 March 24th 07 12:31 AM
Sum - Offset - Address problem. DaveO Excel Worksheet Functions 1 February 22nd 07 03:59 PM
excel problem: sum(address(4,2,1):address(2,1,1)) DrSlowpoke Excel Discussion (Misc queries) 2 December 22nd 06 02:50 AM
Problem using ADDRESS() in SUMPRODUCT() rmellison Excel Discussion (Misc queries) 2 January 9th 06 11:14 AM
cell address problem solrac99 Excel Discussion (Misc queries) 4 May 31st 05 09:55 PM


All times are GMT +1. The time now is 11:40 PM.

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

About Us

"It's about Microsoft Excel"