Without seeing samples or a workbook, suggest working from the bottom up
for i= 200 to 2 step -1
if isnumeric(cells(i,1)) then
if
next i
or use select case for each cells(i,1)
cells(i-1)
cells(i-2)
???
--
Don Guillett
Microsoft MVP Excel
SalesAid Software
(E-Mail Removed)
"Loren Smith" <lorensmith - - gmail> wrote in message
news:(E-Mail Removed)...
>I have been handed a list that I need to convert and I am stumped.
>
> The worksheet contains three columns of addresses. The addresses are
> generally in one of three formats:
>
> Company
> Contact
> Street number and name
> City State
> Zip
>
> or
>
> Name
> Street number and name
> City State
> Zip
>
> or
>
> The repeat of the above with two lines for street information.
>
> As far as I can tell so far, these four are the only different
> formats.
>
> Some of the addresses have a comma between the city and state.
>
> One final complication, some addresses use the 5 digit zip, some use
> the zip+4 with a dash.
>
> Is there a way to convert these columns into appropriate rows so this
> can be used as a mail merge?