How to edit and save a CSV on Mac, including in Numbers
Open the CSV as a table, change the values, then export a CSV copy. In Numbers, saving your spreadsheet and exporting a .csv file are separate actions; check which file you are about to send.
Keep an original and identify the edit
Duplicate the source file before changing inventory, prices or status values. Write down the intended change, such as “set the status for product 00123 from review to ready.” That gives you something specific to check after saving.
For practice, download this synthetic inventory CSV. It contains four rows including the header, with four columns. Try the full open, edit and save cycle on a copy before using your own business data.
Edit a copy in Numbers
- In Finder, right-click the CSV and choose Open With → Numbers.
- Check the column headings, readable text and identifier values.
- Select the cell to change, enter the replacement and confirm it.
- For a CSV output, use File → Export To → CSV and save under a different name.
If all fields appear in one column or text is garbled, fix the import before editing. See CSV files that open in one column or CSV encoding problems.
A saved Numbers document is different from an exported CSV. For multiple tables and output encoding, use the dedicated Numbers-to-CSV export guide. Menu labels can vary with the app version and language.
Check identifiers separately from quantities
A quantity can be a number; a product code or ZIP code often needs to remain text. Watch for 00123 becoming 123, the last digits of a long ID changing, or a label such as 03-04 becoming a date. The leading-zero guide covers these checks.
CSV carries table values, not a spreadsheet layout. Do not use it as the only copy of a document whose colors, charts or column widths matter. Keep the working spreadsheet and the CSV intended for import as separate files.
Reopen the exported file
- Confirm that you have a .csv file distinct from the original.
- Check the edited cell, nearby rows and identifier columns.
- Compare headings, column count and record count.
- Match the receiving system’s encoding and column order.
A file that looks correct in one app may be interpreted differently by another. Test a small copy in the receiving system first. To change what happens when you double-click future CSV files, choose a different default app.
References
See Apple’s instructions for importing text files and exporting to another format.