Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Lady Layla
 
Posts: n/a
Default Address labels to columns

I have an employee who has saved a mailing list as the actual address labels
within Word. We have pulled this listing over to Excel wanting to change it
from the current layout to a more practical database style listing

The format is currently

Name
Company
Address
City, State Zip

We would like to transpose each "label" into the following format without having
to physically cut an paste.

Name Company Address City State Zip

Temporary solutions we have started trying is to use the Array Forumla
Transpose. This at leasts pulls 1 label into a row, but is there a macro or
other way to do this more efficiently?

I know I have seen something similar here but can not find it.


Thanks!



  #3   Report Post  
Jason Morin
 
Posts: n/a
Default

You can use OFFSET, but it depends on the exact layout of
your data. Are there breaks between labels? Is the
city/state/zip in one cell or 3?

Take a look at some examples through a google search
using keywords "OFFSET" and "city". Here's one example:

http://tinyurl.com/5fffh

HTH
Jason
Atlanta, GA

-----Original Message-----
I have an employee who has saved a mailing list as the

actual address labels
within Word. We have pulled this listing over to Excel

wanting to change it
from the current layout to a more practical database

style listing

The format is currently

Name
Company
Address
City, State Zip

We would like to transpose each "label" into the

following format without having
to physically cut an paste.

Name Company Address City State Zip

Temporary solutions we have started trying is to use the

Array Forumla
Transpose. This at leasts pulls 1 label into a row, but

is there a macro or
other way to do this more efficiently?

I know I have seen something similar here but can not

find it.


Thanks!



.

  #4   Report Post  
Gord Dibben
 
Posts: n/a
Default

Layla

If the data is consistent......4 rows per set.....try this macro.

Sub ColtoRows_NoError()
Dim Rng As Range
Dim i As Long
Dim j As Long
Dim nocols As Integer
Application.ScreenUpdating = False
Set Rng = Cells(Rows.Count, 1).End(xlUp)
j = 1
On Error Resume Next
nocols = InputBox("Enter Number of Columns Desired")
For i = 1 To Rng.Row Step nocols
Cells(j, "A").Resize(1, nocols).Value = _
Application.Transpose(Cells(i, "A").Resize(nocols, 1))
j = j + 1
Next
Range(Cells(j, "A"), Cells(Rng.Row, "A")).ClearContents
Application.ScreenUpdating = True
End Sub


Gord Dibben Excel MVP

On Fri, 18 Feb 2005 10:23:44 -0500, "Lady Layla" wrote:

I have an employee who has saved a mailing list as the actual address labels
within Word. We have pulled this listing over to Excel wanting to change it
from the current layout to a more practical database style listing

The format is currently

Name
Company
Address
City, State Zip

We would like to transpose each "label" into the following format without having
to physically cut an paste.

Name Company Address City State Zip

Temporary solutions we have started trying is to use the Array Forumla
Transpose. This at leasts pulls 1 label into a row, but is there a macro or
other way to do this more efficiently?

I know I have seen something similar here but can not find it.


Thanks!



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
how can I print address labels from an excel file bcowan Excel Discussion (Misc queries) 2 February 10th 05 02:07 PM
Word address labels to Excel Columns jlbowman Excel Discussion (Misc queries) 4 February 9th 05 06:51 PM
convert text labels to excel columns RSF New Users to Excel 2 February 9th 05 01:16 AM
How can I import addresses in Excel over to address labels in Wor. Eskielover Excel Discussion (Misc queries) 3 January 21st 05 02:09 AM
HOW DO I ENTER TWO NAMES IN ONE ROW FOR ONE ADDRESS FOR LABELS sheilam Excel Discussion (Misc queries) 1 November 30th 04 03:12 PM


All times are GMT +1. The time now is 10:21 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"