Importing, Exporting, and Sharing Files

There’s lots of talk, much of it snide, regarding the Apple “ecosystem” and its “walled garden” of hardware and software that work together—and alone, not playing well with others. If there’s any place Apple and Mac users can’t ignore the outside world, it’s the spreadsheet arena, where Excel has worn the laurels for decades. This chapter explains how you exchange files with Excel, Import and Export Text Files, and Share with iCloud.

Exchange Files with Excel

The good news is that you can open Excel documents in Numbers, and even charts can survive the procedure. The not-as-good news is that not everything survives, since Excel offers functions and options that Numbers does not. And now back to the good news: many things import flawlessly or with only minor problems, including cell and chart formatting and table-status items such as hidden columns—and even graphic elements. This Apple page offers a very extensive list of supported, partially supported, and unsupported Excel features.

Some machinations are needed when you go in the other direction. Although Excel documents can have multiple worksheets, each one is a single “table” in Numbers-speak. So, each table in Numbers turns into a worksheet on the Excel side.

To export a Numbers document for Excel:

  1. Choose File > Export To > Excel.
  2. Click the Excel button in the export dialog.
  3. If the document has more than one table, check Include a Summary Worksheet. This compiles a worksheet that describes where elements from the Numbers document went in the Excel document, with helpful links for jumping to the worksheets. Figure 184 shows the summary report for the Grade Book template.
    **Figure 184:** The summary sheet, displayed in Excel, compiled for Numbers’ Grade Book template.
    Figure 184: The summary sheet, displayed in Excel, compiled for Numbers’ Grade Book template.
  4. Click Advanced Options to reveal the Format pop-up menu, from which you can choose the .xlsx format for compatibility with current Excel versions or .xls for the 1997–2004 versions.
  5. Click Next to get to the Save dialog.
  6. Name the export document, choose where it should be saved, and click Export.

Numbers exports a copy of the file as an Excel spreadsheet.

Import and Export Text Files

Numbers can import two types of text files: CSV and tab delimited. For text-based exporting, it can save only CSV files.

In a CSV (comma separated values) file, which has a .csv filename extension, commas separate items that are going into or coming from individual cells, while a paragraph return marks the end of a row. This format is common enough that there’s even a specific export command for it in Numbers.

A tab-delimited file uses tabs to separate the values in a row; it, too, uses returns to mark the end of the row. It usually has the filename extension .txt, but a .txt extension is no guarantee that a file is tab delimited, since a text file can hold any kind of text.

Import a CSV or Tab-delimited File

You have several options for opening CSV and tab-delimited files into Numbers. In each case, the data is automatically slapped into a table for you:

Export in CSV Format

To export a Numbers spreadsheet in CSV format, choose File > Export To > CSV and then click Next to get the standard Save dialog. (Unless you have a specific reason to do otherwise, keep the Text Encoding pop-up menu in the export dialog set to Unicode (UTF-8).)

Here’s what happens when you export to CSV format:

Share with iCloud

If your goal in exporting isn’t so much to put the file into a different format as it is to share it with another person, or with yourself on a different device, sharing via iCloud could work nicely for you.

To do so, your Yosemite Mac must be signed in to iCloud with iCloud Drive enabled. If you haven’t done this yet, first read the TidBITS article Moving to iCloud Drive and then:

  1. Go to System Preferences > iCloud.
  2. If you aren’t already signed in to iCloud, enter your Apple ID and password, and click the Sign In button.
  3. Select iCloud Drive in the panel, and click its Options button.
  4. In the list of apps, select Numbers and click Done.

With iCloud Drive set up, you can share a Numbers 3.5 file:

Multiple people should be able to work on the file in real time in Numbers for iCloud, even while you also work on it on your Mac; all edits should sync up nicely. However, in practice it’s often best for only one person at a time to make significant changes. It’s also good practice to give a shared file a few minutes to catch up to its current state after waking your Mac or relaunching Numbers.