export mysql data into multiple rows in excel

I have a plugin in wordpress that sets up addresses for a google map.

I'd like to export the data into separate columns in Excel.  My first attempt didn't work as it puts everything into 1 column in Excel.

I can get the information exported out of phpMyAdmin correctly, but need to split what's exported into name, address, city, state, zip.

Here's how it exports

"310 E. Argonne Dr
Kirkwood, MO 63122
Mail to:  PO Box 515134
314-984-9224
Pastor: Thomas Lovis"

Is there something I'm missing on the export or a tool in Excel that I'm overlooking?  I tried data to columns but it only grabbed the address.
LVL 2
axessJoshAsked:
Who is Participating?
 
Harry LeeConnect With a Mentor Commented:
axessJosh,

In your new export do you see the Fields termination symbols in the data?

If you do, you can now separate the data into column by doing Text-To-Column in Excel.

1.

Highlight you data in Excel.

2.

Open up Text to Columns Wizard in Excel. Do that by going to Data Ribbon Menu, then Text to Columns.

3.

Select Delimited as the separation method and click next.

4.

In the Delimiters section, uncheck everything, then check Other:. In the provided text box, type in Fields Termination Symbol you have choose to use when you exported your data. As you type in the Field Termination Symbol, you should be able to see the separation line in the Data Preview Pane. Click Next to continue.

5.

This final step is optional. In this step, you can choose to assign different format to the data columns and you can also choose to not importing some of the columns. Make changes if needed and click Finish when done.
You should now have everything broken into columns for you.
0
 
Harry LeeCommented:
axessJosh,

When you export from phpMyAdmin, did you setup the export options?

Fields terminated by  ,
Fields enclosed by    "
Fields escaped by     \
Lines terminated by   AUTO
Replace NULL by       NULL

Instead of using ,(Comma) in the Fields Terminated By, I usually use some Ascii symbols that does not normally exist in the data. For example, ¤ (Alt-1231). That way, when I open the CSV somewhere else, I can delimit it with ¤ instead of comma. That way, there is no field mix.
0
 
axessJoshAuthor Commented:
I didn't set any export options.  I wasn't sure there was rhyme or reason to how the fields were saved in the DB and didn't know there were options like that.

I'll look at re-exporting with those changes.
0
 
axessJoshAuthor Commented:
I can see where that will work, but when I tried, all the info is contained into one cell in the DB.  I can't see where there's anything to select in the "text to columns" wizard that'll let me distinguish where to separate.
0
All Courses

From novice to tech pro — start learning today.