Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

how to import csv-file in Numbers 3.2.2.

I start using Numbers in stead of Excel. I would like to import csv-files from my bank, but when I open the csv-file in Numbers, everything is imported in the same cell. I composed a testfile: 01/08/2014,”text”,”more text”,”even more text” in Pages, exported to a textfile and changed the extension from .txt in .csv. It did not help, everything was in the same cell. What must be changed to become successful in importing csv-files? I am using Numbers 3.2.2. and an iMac with 2,8 GHz Intel Core i7 processor and 8 GB 1067 MHz DDR3 memory with OS X 10.9.4.

Thanks, Joan Voormolen

iMac, OS X Mavericks (10.9.4)

Posted on Sep 1, 2014 7:26 AM

Reply
Question marked as Best reply

Posted on Sep 1, 2014 10:58 AM

In order to import comma-separated CSV into Numbers.app properly, you need to set the decimal separator to period in System Preferences. If decimal separator is set to comma, Numbers.app can only import semicolon-separated CSV.


What you need to do would be -


1) Quit Numbers.app;

2) Set the decimal separator to period, temporarily, in System Preferences;

3) Launch Numbers.app, import the CSV file and save the resultant Numbers file;

4) Quit Numbers.app;

5) Reset the decimal separator to the original (presumably, comma) in System Preferences;



Forcing user to change system's number format temporarily just in order to import a CSV file of some sort has been a long standing design flaw of this application, which has never been corrected.


H

30 replies

Dec 30, 2014 6:30 PM in response to Hiroto

Hi H,


Just a note from my personal experience. I've found targeted use of scripts more efficient and less likely to have unintended consequences than fiddling with system preferences, especially when several applications are open at the same time.


In use on OS X up through Yosemite, both your script and the Nigel Garvey script contained within the Automator Service perform well on a variety of CSV files, with a slight edge to Garvey script for being a little better able to handle not-quit-perfectly-formed CSV of the sort one can encounter in "real word" usage.


I don't think users need be worried about "potentially problematic" scripts here. I have yet to find a script or app than can handle all the flavors of CSV one can encounter, and I've tried a lot of them. Excel is really go at it. Numbers less so. But there are situations that even Excel can't handle gracefully.


The consequence of a problem in the script (or, indeed, in a built-in parser in Excel or Numbers) is that one file may import badly, and a user has to go back and retry or do manual cleanup. It doesn't affect other applications.


SG

Jan 1, 2015 8:35 PM in response to Hiroto

Hi H,


Agree character-separated-values (which includes comma-separated and tab-separated) have their flaws. That's not Numbers's fault, though. Even Excel can't do a good job with some of the data files found "in the wild."


Despite the fact that the csv "standard" is loose and imperfect and that both Excel's built-in parser and, for Numbers, the scripts posted here sometimes come up short, they are really useful in many situations.


I tend to favor whatever works that gets the job done, and try not to let "perfect become the enemy of the good."


SG

Jan 1, 2015 10:05 PM in response to SGIII

SGIII,

The CSV to Tabs on Clipboard service does a way better job at importing CSV files than Numbers does itself. Numbers tries to be too smart about it and messes up text that it thinks are numbers. I have this problem all the time with Numbers importing a CSV file that has a column of "task" numbers (3.1, 3.2,..., 3.9, 3.10,...) where Numbers converts the "3.10" into "3.1" so I end up with two 3.1's and no 3.10. The automator service does not make that mistake.

Jan 9, 2015 8:03 AM in response to Badunit

Hello Badunit,


I'd guess it is one of the defects newly introduced in Numbers v3, for the following CSV data are imported correctly with Numbers v2.


1.0,1.00,1.000 "1.0","1.00","1.000"



User uploaded file




If I were to use Numbers v3, I'd let Apple fix the obviously broken programme rather than indulging them with clumsy workarounds. However, I myself will never use Numbers v3 and thus not bother to send any feedback even if they're assumed to have an ear to lend to users.


All the best,

H

Jan 9, 2015 8:31 AM in response to Hiroto

Hi H,


As an actual user of Numbers 3, I find that (like any other application, including Numbers 2) it has its quirks. But I do not think it is fair to describe it as a "broken programme."


Furthermore, I do not think the solutions here are fairly described as "clumsy workarounds." They do a good job in many real-world situations.

Both Numbers 3 and the solutions here are useful for me, and I think for many other users.


SG

Dec 22, 2015 4:08 PM in response to JOANV

Simply remove .xls part of file extension? I had this problem too. I imported the Excel spreadsheet from my bank. When opened in Numbers all data came in to one cell. The file I downloaded from my bank had a .csv.xls file extension. I just removed the .xls part of the file name and Numbers then recognized the .csv extension and opened it correctly.

how to import csv-file in Numbers 3.2.2.

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple ID.