Here are Just a few examples of the hundreds of addresses i have in one
column...
61 Associates #12 Attn Bill Ritzel 350 Fifth Avenue Ste 3410 New York, NY
10118
A Highmark LLC C/O Marks Paneth & Shron LLP Attn Phyllis Jaffee 622 Third
Ave 7th Fl New York, NY 10017
A Paul Victor And Ellen G Victor T.I.C 50 East 79th Street Apt 15c New York,
NY 10021
A Paul Victor 50 E 79th Street Apt 15c New York, NY 10021
Aaa Garment Delivery Inc Pension Plan & Trust 242 West 36th Street New York,
NY 10018
I need the above info to be seperated into seperate columns so can do a
label mail merge.... It should be seperated into columns that are shown
below...
First name Last name Company Street Address City State ..... and so
on...
So basically there is no consistency with the address info...Does this
help?? thank you for responding to the first post...
It helps. But, unfortunately, it only helps with showing how difficult the
task would be to automate.
1. Separating out the Zip Code is relatively simple, since it is the last
"word" in every string:
=TRIM(RIGHT(SUBSTITUTE(A2," ",REPT(" ",99)),99))
2. You can obtain the correct city, state by doing a Zip Code lookup, either
from a table that you have loaded someplace in Excel, or by using automation
and looking it up on the Internet. Looking it up at the USPS site on the
Internet, automatically through Excel, would be quite time-consuming.
a. IF all of the City,State combos are entered in the USPS required
format (highly unlikely in my opinion), you could then separate out the first
part of the address with:
=LEFT(A2,SEARCH(cell_ref_containing_City_State,A2)-1)
3. I see no simple method of separating out the rest. It's a pattern
recognition problem and you'd have to code all the various patterns. It'd
probably be a lot simpler to hire someone to just enter the addresses properly
into a form, so you can do your mail merge.
--ron