PC Review


Reply
Thread Tools Rate Thread

Convert mailing list from columns to rows

 
 
Loren Smith
Guest
Posts: n/a
 
      3rd Oct 2007
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?
 
Reply With Quote
 
 
 
 
Don Guillett
Guest
Posts: n/a
 
      3rd Oct 2007
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?


 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Convert Columns to Rows and insert into another table based on valuesin columns Gurvinder Microsoft Access Form Coding 7 25th Nov 2008 10:03 PM
Convert Columns to Rows and insert into another table based on valuesin columns Gurvinder Microsoft Access Queries 0 24th Nov 2008 09:00 PM
RE: Changing Mailing labels from rows to columns =?Utf-8?B?SkxhdGhhbQ==?= Microsoft Excel Worksheet Functions 2 20th Oct 2006 02:45 AM
Convert columns to rows: create duplicate rows based on column val =?Utf-8?B?Q2FycmllUg==?= Microsoft Access 3 30th Aug 2006 07:07 PM
to convert columns to rows having mulit independent group columns =?Utf-8?B?UXVhY3k=?= Microsoft Excel Worksheet Functions 1 22nd Aug 2006 11:20 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 05:46 PM.