How do I copy and edit a Numbers file without changing the data?

I'm seeing a strange symptom. I have a Numbers file on my laptop which I use as a template. I need to make identical charts for many (20-30) .csv files, all which have the same row/column size.


So I duplicate the template in Finder, then open it in Numbers, copy/paste the data from .csv to the copy of the template. That all works fine. All the styling of the chart remains, only the data is changed.


Then later, when I'm committing my changes with git, it shows the new (copy) .numbers file being added, and the template file is marked as modified. In Finder the template file has a recent modified time. I can always “discard” the template change using git, but it is annoyingly mysterious.


Any idea why I am seeing this?



[Re-Titled by Moderator]

Original Title: copy Numbers file, edit copy, original is changed

MacBook Pro 16″, macOS 14.7

Posted on Jun 19, 2025 3:17 PM

Reply
Question marked as Top-ranking reply

Posted on Jun 21, 2025 2:19 PM

Thanks Badunit for the close read. I will respond briefly, but there is good news. I think I “fixed” the problem, basically by duplicating the oddly behaving template file.


First about your point #6: it was in the process of preparing (with the read-only “git status” command) to commit my project (to a repository on GitHub) that I noticed the template file had a new modified date. But this could also be seen in a Finder window. This is before git changes anything.


I wanted to make a minimal failing case, so I took these steps:


  1. make new folder on Desktop
  2. option-drag in a duplicate of the template, rename it template.numbers
  3. option-drag in a duplicate of a typical .cvs data file from my simulation, rename it new.cvs
  4. ⌘ D duplicate template.numbers rename it new.numbers 
  5. ⌘ O those two files (with Numbers) 
  6. copy the data from new.csv then paste it into new.numbers
  7. save new.numbers
  8. quit Numbers


After step 4, the folder contained:


> ls -l
-rw-r--r--@ 1 cwr  staff    7157 Jun 16 16:15 new.csv
-rw-r--r--@ 1 cwr  staff  246999 Jun 20 10:08 new.numbers
-rw-r--r--@ 1 cwr  staff  246999 Jun 20 10:08 template.numbers


After step 8:


> ls -l
-rw-r--r--@ 1 cwr  staff    7157 Jun 16 16:15 new.csv
-rw-r--r--@ 1 cwr  staff  245977 Jun 21 13:42 new.numbers
-rw-r--r--@ 1 cwr  staff  246999 Jun 20 10:08 template.numbers


This is what I want!! The template.numbers file is unchanged (time 10:08) and new.numbers is updated (time 13:42) with the desired contents.


As unlikely as it sounds, perhaps this was some sort of transient corruption of that template file. Making a duplicate of the file might have fixed the issue.


The odd behavior was as if the files were aliased to each other. But I looked at the “bad template” with Finder's ⌘ I and it described it as a Numbers file not an alias.


So I think my problem is solved. And after helpful hints from SGIII, I better understand how to use the built-in templating in Numbers.


Thanks to you both.

Similar questions

7 replies
Question marked as Top-ranking reply

Jun 21, 2025 2:19 PM in response to Badunit

Thanks Badunit for the close read. I will respond briefly, but there is good news. I think I “fixed” the problem, basically by duplicating the oddly behaving template file.


First about your point #6: it was in the process of preparing (with the read-only “git status” command) to commit my project (to a repository on GitHub) that I noticed the template file had a new modified date. But this could also be seen in a Finder window. This is before git changes anything.


I wanted to make a minimal failing case, so I took these steps:


  1. make new folder on Desktop
  2. option-drag in a duplicate of the template, rename it template.numbers
  3. option-drag in a duplicate of a typical .cvs data file from my simulation, rename it new.cvs
  4. ⌘ D duplicate template.numbers rename it new.numbers 
  5. ⌘ O those two files (with Numbers) 
  6. copy the data from new.csv then paste it into new.numbers
  7. save new.numbers
  8. quit Numbers


After step 4, the folder contained:


> ls -l
-rw-r--r--@ 1 cwr  staff    7157 Jun 16 16:15 new.csv
-rw-r--r--@ 1 cwr  staff  246999 Jun 20 10:08 new.numbers
-rw-r--r--@ 1 cwr  staff  246999 Jun 20 10:08 template.numbers


After step 8:


> ls -l
-rw-r--r--@ 1 cwr  staff    7157 Jun 16 16:15 new.csv
-rw-r--r--@ 1 cwr  staff  245977 Jun 21 13:42 new.numbers
-rw-r--r--@ 1 cwr  staff  246999 Jun 20 10:08 template.numbers


This is what I want!! The template.numbers file is unchanged (time 10:08) and new.numbers is updated (time 13:42) with the desired contents.


As unlikely as it sounds, perhaps this was some sort of transient corruption of that template file. Making a duplicate of the file might have fixed the issue.


The odd behavior was as if the files were aliased to each other. But I looked at the “bad template” with Finder's ⌘ I and it described it as a Numbers file not an alias.


So I think my problem is solved. And after helpful hints from SGIII, I better understand how to use the built-in templating in Numbers.


Thanks to you both.

Jun 20, 2025 12:23 AM in response to cwr

I haven't tried using Numbers with git.


Would you consider using its native functionality for templating and versioning?


  1. Set up the document as you like
  2. Clear out the data (optional).
  3. File > Save as Template and give it a name.


When you want to create a new chart with new data:


  1. File > New and choose the template you created.
  2. Give the document a name.
  3. Add the data via copy/paste.


If you make further changes and find you need to roll those back, then go to File > Revert to ...


Manage Numbers templates on Mac - Apple Support


Restore an earlier version of a spreadsheet in Numbers on Mac - Apple Support


SG







Jun 21, 2025 5:07 PM in response to cwr

Just a final note: I replaced my previous “bad template” with the new copy in my project's local git repository, then did a git commit to push that change to the server. I also replaced old with new in the Numbers template chooser. Everything seems to be working as expected now.

Jun 20, 2025 9:20 AM in response to SGIII

Thank you. I could have sworn I searched for a “Save as Template” in Numbers but obviously missed it.


What you suggest is an ideal “work around” for my problem. In fact I used the option to “Add to Template Chooser” which is more convenient than what I do now.


However I continue to see the odd “aliasing” behavior. When I create a new Numbers file from the newly saved template from my template chooser, it continues to modify the underlying file. I tested it a few minutes ago at 9:16am:


> ls -l plot_template.numbers
-rw-r--r--@ 1 cwr  staff  243426 Jun 20 09:16 plot_template.numbers

Jun 21, 2025 9:43 AM in response to SGIII

I think it is a workaround for the issue I actually raised. My original post was titled “copy Numbers file, edit copy, original is changed.” 


I appreciate you trying to help, and I did learn something about the Numbers template chooser. However that was not the issue I asked about. (Cartoon analogy: “Q: Every time I start my car, the windshield wipers start running. A: have you considered riding a bike?”)


To your questions: yes, it is significant and does affect the user. Files have had Date Modified fields since the 1960s because they are a key bit of file state. If a file named “2021 Financial report” has a last modified date of 2025, that is highly suspicious. When making a commit to a git repository, you are being asked to verify that each modified file was intentional, and to explain why. So every few days for the next 6 months, I will have to deal with this issue for each experiment I plot using this template.


What I hoped to learn is why this file is exhibiting this odd behavior. I know it is not typical. It may have nothing to do with Numbers. I just want to find a way to fix it.

Jun 21, 2025 10:24 AM in response to cwr

I assume it has something to do with "committing my changes with git". It might help if you explain that part further. I don't know what that entails and don't want to make any assumptions. "Committing changes with git" does not sound like it has anything to do with the Numbers app. Here is what I heard in your original post, filling in a few details that may or may not be correct:


  1. You have a folder on the hard drive of your computer. This folder contains a Numbers file that you are using as a "template".
  2. You use File->Duplicate to make a duplicate of it in that same folder. The modification date of the original file did not change. The modification date of the duplicate is the same as that of the original.
  3. You open the duplicated file in Numbers. You do not open the original.
  4. You drag some CSV data into a table and do whatever else you need to do.
  5. You save the document to the same folder and close it in Numbers. The file has a modification date and time of today at the correct time. The original "template" file that is in the same folder still has its correct modification date.
  6. You "commit with git". I do not want to make any assumptions about what this is or how you do it because this is likely the part that is causing the problem.

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

How do I copy and edit a Numbers file without changing the data?

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