jeffcoleky
Active Member
- Joined
- May 24, 2011
- Messages
- 274
I hope my title wasn't too long and was helpful! It explains my issue pretty nicely. Here is a list of addresses we have in excel.
Excel 2010
<colgroup><col style="width: 25pxpx"><col><col><col><col><col><col><col><col><col></colgroup><thead>
</thead><tbody>
[TD="align: center"]1[/TD]
[TD="align: center"]2[/TD]
[TD="align: right"]50599[/TD]
[TD="align: right"]50599[/TD]
[TD="align: center"]3[/TD]
[TD="align: right"]50599[/TD]
[TD="align: right"]50599[/TD]
[TD="align: center"]4[/TD]
[TD="align: right"]50599[/TD]
[TD="align: right"]50599[/TD]
[TD="align: center"]5[/TD]
[TD="align: right"]50599[/TD]
[TD="align: right"]50599[/TD]
[TD="align: center"]6[/TD]
[TD="align: right"]50599[/TD]
[TD="align: right"]50599[/TD]
[TD="align: center"]7[/TD]
[TD="align: right"]50556[/TD]
[TD="align: right"]40258[/TD]
[TD="align: center"]8[/TD]
[TD="align: right"]50599[/TD]
[TD="align: right"]40272[/TD]
[TD="align: center"]9[/TD]
[TD="align: right"]50556[/TD]
[TD="align: right"]40229[/TD]
</tbody>
The result looks like this:
Excel 2010
<colgroup><col style="width: 25pxpx"><col><col><col><col><col><col><col><col><col></colgroup><thead>
</thead><tbody>
[TD="align: center"]1[/TD]
[TD="align: center"]2[/TD]
[TD="align: right"]50599[/TD]
[TD="align: right"]50599[/TD]
[TD="align: center"]3[/TD]
[TD="align: right"]50599[/TD]
[TD="align: right"]50599[/TD]
[TD="align: center"]4[/TD]
[TD="align: right"]50599[/TD]
[TD="align: right"]50599[/TD]
[TD="align: center"]5[/TD]
[TD="align: right"]50599[/TD]
[TD="align: right"]50599[/TD]
[TD="align: center"]6[/TD]
[TD="align: right"]50599[/TD]
[TD="align: right"]50599[/TD]
[TD="align: center"]7[/TD]
[TD="align: right"]50556[/TD]
[TD="align: right"]40258[/TD]
[TD="align: center"]8[/TD]
[TD="align: right"]50599[/TD]
[TD="align: right"]40272[/TD]
[TD="align: center"]9[/TD]
[TD="align: right"]50556[/TD]
[TD="align: right"]40229[/TD]
[TD="align: center"]10[/TD]
[TD="align: right"]40258[/TD]
[TD="align: right"]40258[/TD]
[TD="align: center"]11[/TD]
[TD="align: right"]40272[/TD]
[TD="align: right"]40272[/TD]
[TD="align: center"]12[/TD]
[TD="align: right"]40229[/TD]
[TD="align: right"]40229[/TD]
</tbody>
Then we use mail merge in word to create mailing labels from this list.
Is there a smarter way to do this?
Excel 2010
A | B | C | D | E | F | G | H | I | |
---|---|---|---|---|---|---|---|---|---|
Owners | Street1 | City1 | State1 | Zip1 | Street2 | City2 | State2 | Zip2 | |
Antuane & Tiffany Samarka | 5369 Brentwood Ave | Woolstock | IA | 536 Brentwood Ave | Woolstock | IA | |||
Sally Kellam & Kirk Bolder | 278 Fleming Ave | Woolstock | IA | 2718 Fleming Ave | Woolstock | IA | |||
James & Connie Macdonald | 1114 Lansford Dr | Woolstock | IA | 11114 Lansford Dr | Woolstock | IA | |||
Paula & Douglas Mills | 1019 Allen Dr | Woolstock | KY | 146 Breckenridge Ln Apt B2 | Woolstock | KY | |||
Theresa Jackson | 1012 Blue Creek Dr | Woolstock | KY | 10112 Blue Creek Dr | Woolstock | KY | |||
Jon Smith | 6214 Maravian Dr | Ledyard | IA | 123 Main St | Louisville | KY | |||
Sally Jones | 1822 Golden Dr | Woolstock | IA | 552 Jones St | Louisville | KY | |||
Thomas Wong & Billie Chai | 3709 Astrocraft Dr | Ledyard | IA | 111 Maple St | Louisville | KY |
<colgroup><col style="width: 25pxpx"><col><col><col><col><col><col><col><col><col></colgroup><thead>
</thead><tbody>
[TD="align: center"]1[/TD]
[TD="align: center"]2[/TD]
[TD="align: right"]50599[/TD]
[TD="align: right"]50599[/TD]
[TD="align: center"]3[/TD]
[TD="align: right"]50599[/TD]
[TD="align: right"]50599[/TD]
[TD="align: center"]4[/TD]
[TD="align: right"]50599[/TD]
[TD="align: right"]50599[/TD]
[TD="align: center"]5[/TD]
[TD="align: right"]50599[/TD]
[TD="align: right"]50599[/TD]
[TD="align: center"]6[/TD]
[TD="align: right"]50599[/TD]
[TD="align: right"]50599[/TD]
[TD="align: center"]7[/TD]
[TD="align: right"]50556[/TD]
[TD="align: right"]40258[/TD]
[TD="align: center"]8[/TD]
[TD="align: right"]50599[/TD]
[TD="align: right"]40272[/TD]
[TD="align: center"]9[/TD]
[TD="align: right"]50556[/TD]
[TD="align: right"]40229[/TD]
</tbody>
Sheet1
This is what we do manually that we'd like to automate with a macro:1) Select a range of Rows
2) Copy
3) Paste values into "Export" sheet in same workbook, starting in row 2.
4) Look for all rows that have a different Address 2 (Street, City, State, & Zip) than the Address 1 and Duplicate those rows
5) Replace Address 1 with Address 2 on the duplicate line.
2) Copy
3) Paste values into "Export" sheet in same workbook, starting in row 2.
4) Look for all rows that have a different Address 2 (Street, City, State, & Zip) than the Address 1 and Duplicate those rows
5) Replace Address 1 with Address 2 on the duplicate line.
The result looks like this:
Excel 2010
A | B | C | D | E | F | G | H | I | |
---|---|---|---|---|---|---|---|---|---|
Owners | Street1 | City1 | State1 | Zip1 | Street2 | City2 | State2 | Zip2 | |
Antuane & Tiffany Samarka | 5369 Brentwood Ave | Woolstock | IA | 536 Brentwood Ave | Woolstock | IA | |||
Sally Kellam & Kirk Bolder | 278 Fleming Ave | Woolstock | IA | 2718 Fleming Ave | Woolstock | IA | |||
James & Connie Macdonald | 1114 Lansford Dr | Woolstock | IA | 11114 Lansford Dr | Woolstock | IA | |||
Paula & Douglas Mills | 1019 Allen Dr | Woolstock | KY | 146 Breckenridge Ln Apt B2 | Woolstock | KY | |||
Theresa Jackson | 1012 Blue Creek Dr | Woolstock | KY | 10112 Blue Creek Dr | Woolstock | KY | |||
Jon Smith | 6214 Maravian Dr | Ledyard | IA | 123 Main St | Louisville | KY | |||
Sally Jones | 1822 Golden Dr | Woolstock | IA | 552 Jones St | Louisville | KY | |||
Thomas Wong & Billie Chai | 3709 Astrocraft Dr | Ledyard | IA | 111 Maple St | Louisville | KY | |||
Jon Smith | 123 Main St | Louisville | KY | 123 Main St | Louisville | KY | |||
Sally Jones | 552 Jones St | Louisville | KY | 552 Jones St | Louisville | KY | |||
Thomas Wong & Billie Chai | 111 Maple St | Louisville | KY | 111 Maple St | Louisville | KY |
<colgroup><col style="width: 25pxpx"><col><col><col><col><col><col><col><col><col></colgroup><thead>
</thead><tbody>
[TD="align: center"]1[/TD]
[TD="align: center"]2[/TD]
[TD="align: right"]50599[/TD]
[TD="align: right"]50599[/TD]
[TD="align: center"]3[/TD]
[TD="align: right"]50599[/TD]
[TD="align: right"]50599[/TD]
[TD="align: center"]4[/TD]
[TD="align: right"]50599[/TD]
[TD="align: right"]50599[/TD]
[TD="align: center"]5[/TD]
[TD="align: right"]50599[/TD]
[TD="align: right"]50599[/TD]
[TD="align: center"]6[/TD]
[TD="align: right"]50599[/TD]
[TD="align: right"]50599[/TD]
[TD="align: center"]7[/TD]
[TD="align: right"]50556[/TD]
[TD="align: right"]40258[/TD]
[TD="align: center"]8[/TD]
[TD="align: right"]50599[/TD]
[TD="align: right"]40272[/TD]
[TD="align: center"]9[/TD]
[TD="align: right"]50556[/TD]
[TD="align: right"]40229[/TD]
[TD="align: center"]10[/TD]
[TD="align: right"]40258[/TD]
[TD="align: right"]40258[/TD]
[TD="align: center"]11[/TD]
[TD="align: right"]40272[/TD]
[TD="align: right"]40272[/TD]
[TD="align: center"]12[/TD]
[TD="align: right"]40229[/TD]
[TD="align: right"]40229[/TD]
</tbody>
Export
Then we use mail merge in word to create mailing labels from this list.
Is there a smarter way to do this?