Jump to content

[SOLVED] csv files, EXCEL, character for line break?


Recommended Posts

ok I have a large text file that I am converting into excel spreadsheet for eventual table in mysql.

 

all I know about csv is that every , comma makes a new cell / field.

 

is there a way to make a line break? For example...

 

one entry, two entry, third entry, (line break) 4th entry, 5th entry,

 

basically I want to make all entry's in my text file (currently sepoerated by , commas) become one column when I open in excel.

 

hope that makes sense, I could go through the file and manually add a line break after every comma...but with 7000 lines with each line having about 18 commas.....ummm there goes my weekend

Link to comment
Share on other sites

CSV format is seperated by columns, one row per line

Col1,Col2,Col3,Col4,Col5

 

if u want everything in Col1, than output yer data as

 

mydata,,,,

 

notice that i leave the , for the other columns

you can skip columns as well, by doing the same thing, say we want data in col3

 

,,mydata,,

 

it's not all that hard

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.