2

I'm using Excel on Mac and it's always painful to have to reopen all exported CSVs in another text editor just to change the line endings from "CR" to "LF" and the delimiter from ";" to ","

Is there a way to set the preferred CSV save format permanently?

slhck
  • 223,558
  • 70
  • 607
  • 592
Dan
  • 83
  • 3
  • 8

3 Answers3

0

I found that solution for Windows version of Excel:

  • Click the Windows Start menu.
  • Click Control Panel.
  • Open the Regional and Language Options dialog box.
  • Click the Regional Options Tab.
  • Click Customize.
  • Type a new separator in the List separator box.
  • Click OK twice.

I didn't find anything for Excel for Mac.

slhck
  • 223,558
  • 70
  • 607
  • 592
Vassily
  • 101
0

I discovered a couple of valuable bits of info on this. Firstly, NeoOffice gives you full control over the delimiter character on csv export. You can open any excel file in NeoOffice, which is a FREE office suite. Secondly, I found that Excel for Mac does some bad things to csv files sometimes. Today I spent 4 hours trying to find out why a csv import was failing. I traced it down to Excel, it does something that I cannot see in the files, I cannot see any difference in two files when opened in a plain text editor (TextWrangler) yet the one coming from Excel fails on import and the one coming from NeoOffice works.

Robin
  • 1
  • If your answer to the question is to recommend NeoOffice, please read https://meta.superuser.com/questions/5329/how-do-i-recommend-software-in-my-answers for information on how to recommend software. – Jason Aller Jul 03 '15 at 18:08
  • Please exercise caution when recommending software. As written, your answer may be seen as spam. Your answer should include a description of the software and how it addresses the question. More information: [How do I recommend software in my answers?](http://meta.superuser.com/q/5329) – bwDraco Jul 03 '15 at 18:10
-1

I'm not sure how to change the line endings, but the delimiter is a semicolon due to regional settings.

But I hesitate to recommend changing your regional settings.

A better recommendation would be to not use Excel. Excel is a spreadsheet program, not a database.

surfasb
  • 22,452
  • 5
  • 52
  • 77
  • There are many legitimate reasons for exporting CSV from Excel that are nothing to do with databases. Other than that I think you are spot on. – Lunatik Dec 21 '11 at 16:37