Sub topic 3
Importing with File > Import
This chapter covers the File > Import dialog: where it is, what each control does, and what you should check before you press the button. It assumes you can use Google Sheets (cells, rows, sheets), upload files to Google Drive, and recognize a CSV file and an Excel workbook. Later chapters go deeper on the import location options, separators, Excel conversion, and type problems. Here you learn the whole flow once, so those details have a place to fit.
What the dialog does
File > Import is the main manual route for getting a file's data into a spreadsheet that is already open. It reads a file, turns its contents into cells, and puts those cells where you tell it to. The result is a copy of the data. Google Sheets does not keep a link to the source file, and the source file is never changed.
The dialog works in two stages:
- Choose a file.
- Choose how to import it, using the options panel.
Everything the import does to your data is decided by the options in stage 2. Skipping that panel is the most common cause of bad imports.
Stage 1: Open the dialog and pick a file
In an open spreadsheet, choose File > Import. A dialog titled "Import file" appears with several tabs. Each tab is a different place to find the file.
| Tab | What it shows | Use it when |
|---|---|---|
| My Drive | Files and folders in your own Drive | The file is already uploaded to your Drive |
| Shared with me | Files other people shared with you | A colleague sent you the file through Drive |
| Recent | Files you opened lately | You just worked with the file |
| Upload | A drop area and a Browse button | The file is on your computer and not in Drive yet |
The Upload tab sends the file to Google first and then continues to the options panel. You can drag a file onto the drop area or click Browse to pick one.
In the Drive tabs, only files Sheets can read are selectable. These are Excel workbooks (.xlsx, .xls), OpenDocument spreadsheets (.ods), and delimited text (.csv, .tsv, .txt). If your file is grayed out, check its extension. A report exported as .pdf or .xlsb cannot go through this dialog.
You need at least view access to a file to import from it. Import copies the data into your spreadsheet, so you need edit access to the destination spreadsheet.
Stage 2: Read the options panel
After you select a file, the dialog changes to show import settings. Which settings appear depends on the file type.
| Setting | Choices | Shown for |
|---|---|---|
| Import location | Create new spreadsheet, Insert new sheet(s), Replace spreadsheet, Replace current sheet, Append to current sheet, Replace data at selected cell | All file types |
| Separator type | Detect automatically, Tab, Comma, Custom | Delimited text files only |
| Convert text to numbers, dates, and formulas | A checkbox | Delimited text files only |
The location menu is the one with consequences for your existing data, and the next chapter covers each choice. For now, remember one rule: "Create new spreadsheet" and "Insert new sheet(s)" add data without removing anything. The "Replace" choices overwrite existing cells.
The separator and conversion settings do not appear for Excel and ODS files. Those files already store cells and types, so there is nothing to split or guess.
Separator type
A delimited text file stores one row per line, with a special character between fields. The separator setting tells Sheets which character that is.
- Detect automatically examines the file and picks a separator. It works for ordinary comma-separated and tab-separated files.
- Tab and Comma force that choice.
- Custom lets you type one character, such as
;or|.
Use Custom when a file uses semicolons. This is common for CSV files exported from software configured for European locales. If you leave automatic detection on and the whole row lands in column A, the file's separator was not recognized. Undo and choose the separator yourself.
Convert text to numbers, dates, and formulas
When this box is checked, Sheets examines each field and converts it if it looks like a number, a date, or a formula. When it is unchecked, every field stays as plain text exactly as it appears in the file.
Neither setting is always right:
- Checked is usually what you want for amounts, quantities, and dates that you plan to sum, sort, or chart.
- Unchecked is safer for identifiers such as ZIP codes, phone numbers, and product codes, where a leading zero or a dash is part of the value.
A field that begins with = becomes a live formula when conversion is on. Treat that as a security habit: do not import files from sources you do not trust with conversion enabled.
A worked example
Suppose you have this file, orders.csv:
order_id,zip,order_date,amount
1001,02134,2026-03-04,19.50
1002,90210,2026-03-05,7.00
1003,10001,2026-03-05,42.25You want it in a new sheet inside a spreadsheet called "Q1 Orders". Follow these steps.
- Open "Q1 Orders" and choose File > Import.
- On the Upload tab, click Browse and pick
orders.csv. - Set Import location to Insert new sheet(s).
- Leave Separator type on Detect automatically. The commas are standard.
- Uncheck Convert text to numbers, dates, and formulas.
- Click Import data.
A new sheet named after the file appears. With conversion off, the sheet holds this:
| order_id | zip | order_date | amount |
|---|---|---|---|
| 1001 | 02134 | 2026-03-04 | 19.50 |
| 1002 | 90210 | 2026-03-05 | 7.00 |
| 1003 | 10001 | 2026-03-05 | 42.25 |
The ZIP code 02134 keeps its zero. The cost is that order_date and amount are also text. Sorting amount would order it as text, and =SUM(D2:D4) would return 0, because SUM ignores text.
Now repeat the import with conversion checked. The amounts become numbers and the dates become real dates, which is what you want. But 02134 becomes the number 2134 and the zero is gone.
You cannot choose per column in this dialog. This is the central trade-off of File > Import. You have three ways to handle it:
- Import with conversion on, then repair the identifier column afterward with
=TEXT(A2, "00000")in a helper column. - Import with conversion off, then convert the number columns afterward (for example, with
=VALUE(D2)). - Import twice into separate sheets and combine the correct columns.
The first option is usually the quickest. Chapter 8 covers these repairs in detail.
The import is a one-time snapshot
After the import finishes, the cells in your spreadsheet are ordinary cells. If someone updates orders.csv tomorrow, your sheet does not change. To refresh, you run the import again, and depending on the location you chose, that either adds a second copy or overwrites the first.
This matters when you plan a recurring process. For data that changes, a link is a better fit than a manual import, and the IMPORTDATA function and Apps Script chapters cover that.
Importing from Drive without the dialog
You can also work from Drive. Double-clicking a CSV in Drive opens a preview, not a spreadsheet. Right-click and choose Open with > Google Sheets to create a new spreadsheet from it. For an Excel file, this opens the file in Sheets and may offer a conversion to a native Google Sheets file. This route always creates a new spreadsheet. It gives you no choice of location and no separator or conversion controls, so for delimited text, File > Import is the more controllable option.
Common mistakes in the dialog
- Everything lands in column A. The separator was not detected. Undo, then set Separator type to Custom and enter the correct character.
- Existing data disappears. A Replace option was selected. Undo immediately, then re-run with "Insert new sheet(s)" or "Append to current sheet".
- Data appears far from where you expected. For "Replace data at selected cell", the selected cell becomes the top-left corner of the import. Click the cell you want before opening the dialog, not after.
- Numbers will not add up. Conversion was off, so numbers are text. Left-aligned values in a numeric column are a quick sign of this.
- Identifiers lost their leading zeros. Conversion was on. See the worked example above.
- The file will not appear in the list. The extension is unsupported, or the file is a Google Docs file rather than a spreadsheet or text file.
- The import button seems to do nothing for a large file. Large files take time to process, and files that are too large fail. The limits chapter covers the sizes.
A short checklist before you click Import data
- Is the right file selected, with the right extension?
- Is the location correct, and does it avoid overwriting data you need?
- If the file is delimited, is the separator right?
- Should conversion be on or off for this particular file?
- If you chose "Replace data at selected cell", is the correct cell selected?
After the import, scan the first and last rows and the columns that hold identifiers, dates, and amounts. Chapter 9 describes a systematic way to verify the result.
Exercise
You import a semicolon-separated file with Separator type set to "Detect automatically". All of each row appears in column A. What should you do, and why does this happen?
Show answer
Undo the import (Ctrl+Z) and run File > Import again, this time setting Separator type to Custom and typing a semicolon. It happens because automatic detection did not recognize the semicolon as the field separator, so Sheets treated each line as a single field.
Exercise
A file has a "part_number" column with values like 00417 and a "price" column with values like 12.50. You can import with conversion on or off, but not per column. Which setting would you pick, and what do you do afterward?
Show answer
Either answer is workable if you repair the other column. A common choice is conversion on, so price becomes numeric, followed by restoring part_number with a helper column such as =TEXT(A2, "00000"). The other choice is conversion off, which keeps 00417 intact, followed by converting price to numbers with VALUE. The key point is that no single setting gets both columns right, so one column needs a fix after the import.