Sub topic 4
Choosing where the data goes: new, replace or append
The File > Import dialog asks one question that decides what happens to your existing work: where should the imported data go? This chapter covers the six import location options and what each does to data already in the spreadsheet. It also covers how each choice affects formulas that depend on that data, and how to pick the right option and recover from a wrong one.
This chapter assumes you can open the File > Import dialog and choose a file (covered in the previous chapter). It also assumes you know what a CSV file is and how references between sheets work. Separator type and text conversion are covered in the next chapter.
The six import locations
After you choose a file, the dialog shows an Import location list. The options are:
| Option | What it does | Existing data |
|---|---|---|
| Create new spreadsheet | Makes a new Sheets file from the imported data | Untouched, because the data goes to a different file |
| Insert new sheet(s) | Adds one or more new tabs to the current spreadsheet | Untouched |
| Replace spreadsheet | Replaces everything in the current spreadsheet with the file | All existing sheets are lost |
| Replace current sheet | Clears the active tab and fills it with the file | The active tab is overwritten, and other tabs stay |
| Append to current sheet | Adds the file's rows below the last row of data in the active tab | Kept, and new rows go underneath |
| Replace data at selected cell | Writes the file starting at the cell you selected | Overwritten only where the imported block lands |
Which options appear depends on the file. Delimited text files (CSV, TSV, TXT) produce a single block of rows, so all six options make sense. An Excel workbook can hold several sheets, so you typically see only the whole-file options: create a new spreadsheet, insert new sheets, or replace the spreadsheet. If an option you expect is missing, the file type is the first thing to check.
The six options fall into three groups by risk:
- Safe: Create new spreadsheet and Insert new sheet(s). Nothing you already have is changed.
- Partial overwrite: Replace current sheet and Replace data at selected cell. One tab, or one block of cells, changes.
- Whole-file change: Replace spreadsheet. Every tab is affected.
- Additive: Append to current sheet changes nothing that exists, but it makes the sheet longer.
Choosing with a decision flow
The diagram shows the questions to ask. Answer them from the top.
When you are unsure, choose Insert new sheet(s). You can compare the new tab with the old one, then delete whichever you do not need. This costs one extra tab and no data.
Create new spreadsheet
This option makes a separate Sheets file in your Drive, named after the imported file. A confirmation message offers an Open now link. Use it when:
- The file is unrelated to the spreadsheet you are in.
- You want to inspect the import before it goes anywhere near your real work.
- You plan to share the converted data on its own.
It is also the right choice for a first look at an Excel workbook. Conversion can change some features (see the chapter on Excel workbooks), and a throwaway file lets you see what changed without risk.
Insert new sheet(s)
This option adds the data as new tabs inside the current spreadsheet. For a CSV file you get one new tab, named after the file. For an Excel workbook, each sheet in the workbook becomes its own tab.
Your formulas can then refer to the new tab. For example, a summary tab can read =SUM(sales_2026!C2:C). This is useful for monthly exports: import each file as a new tab and let a summary tab combine them.
One edge case: if a tab with the same name already exists, Sheets does not overwrite it. It adds the new tab with a modified name, so check the tab names after the import.
Replace spreadsheet
This option replaces the entire contents of the current spreadsheet with the file. Every existing tab is removed and the file's data takes its place.
Be careful with this option for two reasons:
- It deletes tabs you may not be looking at, including hidden ones. Formulas, charts and named ranges that lived on those tabs go with them.
- It is not suitable for a spreadsheet other people also edit. A coworker's tab disappears the same way yours does.
Replace spreadsheet is rarely the right choice inside a working file. It fits a scratch file that you reuse only as a landing area for imports.
Replace current sheet
This option clears the active tab and fills it with the imported data. Other tabs are untouched. It suits a recurring pattern where one tab holds the latest raw export and every other tab reads from it.
An important detail is how references behave. A formula on another tab such as =SUMIF(raw!B:B, "Paid", raw!D:D) points at the tab named raw. If you use Replace current sheet while raw is active, the tab stays in place. The formula keeps working and recalculates against the new rows. If you instead delete the tab and insert a fresh one, the reference breaks and shows #REF!.
This is why the "raw tab plus report tabs" layout works well:
- Keep one tab, say
raw, that you never edit by hand. - Build all formulas and charts on other tabs, pointing at
raw. - Each time a new export arrives, select the
rawtab and import with Replace current sheet.
Because the whole tab is replaced, formatting you applied to raw (column widths, number formats, filters) may be lost. Keep formatting on the report tabs, not on raw.
If the new file has fewer rows than the old one, the old rows must not survive. Replace current sheet clears the tab, so they do not. That is the main reason to prefer it over Replace data at selected cell for recurring exports.
Append to current sheet
This option writes the file's rows after the last row that contains data in the active tab. It is meant for files that add to a table you already have, such as one CSV file per day or per region.
Check these points before you append:
- Header rows repeat. If every file starts with a header row, each append adds another header row in the middle of your data. Delete it afterwards, or remove the header from the file first. This is the most common append mistake.
- Columns must line up. Append adds the data from the first column on. It does not match columns by header name. If the new file has columns in a different order, values land under the wrong headers.
- The "last row" depends on the tab's contents. If something sits far below your table, such as a note in row 500, the appended rows can start after it. Clear stray cells first.
- Types still convert. The text conversion setting applies to appended rows too, so rows can end up with types that differ from the existing rows if you changed the setting between imports.
To check an append, count the rows before and after. In a spare cell:
=COUNTA(A:A)The count should rise by the number of data rows in the file, not by that number plus one. If it rises by one more, a header row was added. To locate stray headers directly, count how often the header text appears:
=COUNTIF(A:A, "Order ID")The result should be 1. A higher number means header rows were appended into the data.
Replace data at selected cell
This option writes the imported block starting at the cell you selected before opening the dialog. The top-left cell of the file goes to the selected cell, and the data extends right and down.
Use it when you want to place the data inside a layout, for example below a title area or next to a block that must stay put. Select the cell first, then open File > Import. Selecting the cell afterwards does nothing, because the dialog reads the selection at the moment you open it.
The behavior to remember:
- Cells inside the imported block are overwritten, including cells that held formulas.
- Cells outside the block are untouched. If the new file is smaller than an earlier import, leftover rows from the earlier import remain below it.
- The data is not inserted. Nothing shifts to make room, so anything underneath is replaced.
The leftover-rows issue is the reason this option is risky for repeated imports of changing size. For those, use Replace current sheet on a dedicated tab.
Recovering from a wrong choice
Imports are normal edits, so recovery tools apply:
- Press Ctrl+Z (Cmd+Z on Mac) immediately after the import. This usually reverses the whole import in one step.
- If you noticed later, open File > Version history > See version history, find a version from before the import, and restore it. You can also copy the needed tab or range out of an older version before restoring.
- For Create new spreadsheet, the original file was never touched. Delete the new file from Drive.
Quick comparison
Use this table to match common tasks to options.
| Situation | Best option |
|---|---|
| First look at an unknown file | Create new spreadsheet |
| One more tab of source data | Insert new sheet(s) |
| Weekly export that replaces last week's | Replace current sheet on a dedicated raw tab |
| Daily file that adds rows to a log | Append to current sheet (strip the header first) |
| Data that must sit below a title block | Replace data at selected cell |
| Throwaway file reused as a landing area | Replace spreadsheet |
Exercise
A tab named raw holds last week's export of 2,000 rows. This week's export has only 1,500 rows. Other tabs use formulas that refer to raw. Which import location should you use, and why would Replace data at selected cell (with A1 selected) be a worse choice?
Show answer
Use Replace current sheet with the raw tab active. It clears the tab before filling it, so the 500 extra rows from last week do not survive, and the tab (and the references to it) stays in place. Replace data at selected cell only overwrites the 1,500-row block, so rows 1,501 to 2,000 from last week would remain below the new data and be counted by the formulas.
Exercise
You append a daily CSV to a log tab, and =COUNTIF(A:A, "Order ID") returns 4 after four daily imports. What happened, and what should it be?
Show answer
Each file begins with a header row, and Append to current sheet added it each time, so there is one header at the top plus three in the middle of the data. The count should be 1. Delete the repeated header rows, and remove the header line from future files before appending.
Exercise
You want to import a CSV below a title block in rows 1 to 3, so the data starts at A5. What do you do before opening File > Import, and which location do you choose?
Show answer
Select cell A5 first, then open File > Import and choose Replace data at selected cell. The dialog reads the selection when it opens, and the data is written from A5 right and down.