Discussion Locked

Excel Import split address into columns

0 helpful
5 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

Hi, I have some customer data that has been imported into an excel sheet. The data looks like this:
contact company address
address
address

I need to move all the address data onto the same rowas the rest to individual columns. The number of address lines changes for each customer. I cannot modify the data before importing it into excel. When it is imported each field is delimited with a semi-colon. The address lines are all in 1 field (free form text). I need to use the data in a mail merge with Word. At the moment I get a page for each of the address lines as it treats them as new data as they are on different rows.

Any suggestions greatly appreciated

Richard

5 replies

by fossil

Is there a blank line between each related grouping of lines? If so, here's what I do:
1) start WORD and open the document with the data
2) chagne all occurances of two start paragraph marks "^p^p" to something that doesn't appear in the document, like "@@@@@" or "!@#$%" or anything else you like.
3) change all paragraph marks "^p" to the separator character -- in your case, ";"
4) now change the "funny string" - i.e. "@@@@@" or "!@#$%" or whatever else you used as the "to" string in step 2 to a paragraph mark "^p"

You now have your three lines on a single line separated by the separator character.
At this point save as a new file.

by donq

Your data came from a database and your only recourse is to "concatenate" Once before importing or on a per need basis in Excel.

This discussion is closed to new replies.