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>
</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>
</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 | |
---|---|---|---|---|---|---|---|---|---|
1 | Owners | Street1 | City1 | State1 | Zip1 | Street2 | City2 | State2 | Zip2 |
2 | Antuane & Tiffany Samarka | 5369 Brentwood Ave | Woolstock | IA | 50599 | 536 Brentwood Ave | Woolstock | IA | 50599 |
3 | Sally Kellam & Kirk Bolder | 278 Fleming Ave | Woolstock | IA | 50599 | 2718 Fleming Ave | Woolstock | IA | 50599 |
4 | James & Connie Macdonald | 1114 Lansford Dr | Woolstock | IA | 50599 | 11114 Lansford Dr | Woolstock | IA | 50599 |
5 | Paula & Douglas Mills | 1019 Allen Dr | Woolstock | KY | 50599 | 146 Breckenridge Ln Apt B2 | Woolstock | KY | 50599 |
6 | Theresa Jackson | 1012 Blue Creek Dr | Woolstock | KY | 50599 | 10112 Blue Creek Dr | Woolstock | KY | 50599 |
7 | Jon Smith | 6214 Maravian Dr | Ledyard | IA | 50556 | 123 Main St | Louisville | KY | 40258 |
8 | Sally Jones | 1822 Golden Dr | Woolstock | IA | 50599 | 552 Jones St | Louisville | KY | 40272 |
9 | Thomas Wong & Billie Chai | 3709 Astrocraft Dr | Ledyard | IA | 50556 | 111 Maple St | Louisville | KY | 40229 |
<colgroup><col style="width: 25pxpx"><col><col><col><col><col><col><col><col><col></colgroup><thead>
</thead><tbody>
</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 | |
---|---|---|---|---|---|---|---|---|---|
1 | Owners | Street1 | City1 | State1 | Zip1 | Street2 | City2 | State2 | Zip2 |
2 | Antuane & Tiffany Samarka | 5369 Brentwood Ave | Woolstock | IA | 50599 | 536 Brentwood Ave | Woolstock | IA | 50599 |
3 | Sally Kellam & Kirk Bolder | 278 Fleming Ave | Woolstock | IA | 50599 | 2718 Fleming Ave | Woolstock | IA | 50599 |
4 | James & Connie Macdonald | 1114 Lansford Dr | Woolstock | IA | 50599 | 11114 Lansford Dr | Woolstock | IA | 50599 |
5 | Paula & Douglas Mills | 1019 Allen Dr | Woolstock | KY | 50599 | 146 Breckenridge Ln Apt B2 | Woolstock | KY | 50599 |
6 | Theresa Jackson | 1012 Blue Creek Dr | Woolstock | KY | 50599 | 10112 Blue Creek Dr | Woolstock | KY | 50599 |
7 | Jon Smith | 6214 Maravian Dr | Ledyard | IA | 50556 | 123 Main St | Louisville | KY | 40258 |
8 | Sally Jones | 1822 Golden Dr | Woolstock | IA | 50599 | 552 Jones St | Louisville | KY | 40272 |
9 | Thomas Wong & Billie Chai | 3709 Astrocraft Dr | Ledyard | IA | 50556 | 111 Maple St | Louisville | KY | 40229 |
10 | Jon Smith | 123 Main St | Louisville | KY | 40258 | 123 Main St | Louisville | KY | 40258 |
11 | Sally Jones | 552 Jones St | Louisville | KY | 40272 | 552 Jones St | Louisville | KY | 40272 |
12 | Thomas Wong & Billie Chai | 111 Maple St | Louisville | KY | 40229 | 111 Maple St | Louisville | KY | 40229 |
<colgroup><col style="width: 25pxpx"><col><col><col><col><col><col><col><col><col></colgroup><thead>
</thead><tbody>
</tbody>
Export
Then we use mail merge in word to create mailing labels from this list.
Is there a smarter way to do this?