A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Excel » General Discussion
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Combining info for mailing labels



 
 
Thread Tools Display Modes
  #1  
Old November 18th, 2009, 06:18 PM posted to microsoft.public.excel.misc
Laura D.
external usenet poster
 
Posts: 1
Default Combining info for mailing labels

I have a basic spreadsheet with contact information. The way it is set up is
that everyone has their own entry, even if there are several people living in
the same address.

How do I set up my spreadsheet so that it amalgomates all names in the same
household? I want to sent one Christmas card per household and hopefully
address it to all people within that home.

My colums are First Name, Last Name, Address, City, Postal Code. I have
30000 names in this list so I am hoping Excel can do some of the footwork.


  #2  
Old November 18th, 2009, 08:56 PM posted to microsoft.public.excel.misc
Paul C
external usenet poster
 
Posts: 202
Default Combining info for mailing labels

First sort your data by Address, City and Postal Code
Delete any blank rows at the top

Next insert a column between Last name and Address
Put in a formula to merge the first and last name
=concatenate(A1," ",B1)
this will take
A B
John Smith

and make
A B C
John Smith John Smith

then you can use a small macro to combine. Copy the sheet so you are not
working on your original data just to be safe.

Sub mergenames()
Range("C1").Select
Do While ActiveCell Empty
'MATCH ADDRESS, CITY AND POSTAL CODE
If ActiveCell.Offset(0, 1) = ActiveCell.Offset(1, 1) And _
ActiveCell.Offset(0, 2) = ActiveCell.Offset(1, 2) And _
ActiveCell.Offset(0, 3) = ActiveCell.Offset(1, 3) Then
'COMBINE NAME AND DELETE
ActiveCell = ActiveCell & ", " & ActiveCell.Offset(1, 0)
ActiveCell.Offset(1, 0).Select
Selection.EntireRow.Delete
Else
ActiveCell.Offset(1, 0).Select
End If
Loop
End Sub
--
If this helps, please remember to click yes.


"Laura D." wrote:

I have a basic spreadsheet with contact information. The way it is set up is
that everyone has their own entry, even if there are several people living in
the same address.

How do I set up my spreadsheet so that it amalgomates all names in the same
household? I want to sent one Christmas card per household and hopefully
address it to all people within that home.

My colums are First Name, Last Name, Address, City, Postal Code. I have
30000 names in this list so I am hoping Excel can do some of the footwork.


 




Thread Tools
Display Modes

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

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


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


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.