Sub topic 3
Importing with File > Import
Assume you know how to create sheets, upload files to Google Drive, and use basic formulas such as TRIM and TEXT. This chapter focuses on the File > Import dialog. It is the best choice when you want to bring a local Excel, CSV, TSV, or similar file into an existing Google Sheets workflow and choose exactly where the data should go.
Open the import dialog
- Open the Google Sheets file that will receive the data.
- Select File > Import.
- Choose a file from My Drive, Shared with me, Recent, or Upload.
- Select the file and click Select.
Google Sheets supports common formats such as .xlsx, .xls, .csv, .tsv, .txt, and .ods. The available settings depend on the format. A delimited text file, such as CSV, needs separator and conversion settings. An Excel workbook may offer sheet-selection and conversion options.
The import dialog usually shows four groups of settings:
- Import location: where the imported content will be placed.
- Separator type: how columns are divided in a text file.
- Convert text to numbers, dates, and formulas: whether Sheets interprets values instead of keeping them as text.
- Sheet selection: which worksheet or worksheets to import from an Excel workbook.
Choose the import location
The import location determines what happens to existing data. Treat it as a data-safety decision, especially when the destination spreadsheet already contains formulas or reports.
| Location | Result | Main risk |
|---|---|---|
| Create new spreadsheet | Creates a separate Google Sheets file | Data is not in the current workbook |
| Insert new sheet(s) | Adds imported data as new tab(s) | Existing tabs remain unchanged |
| Replace spreadsheet | Replaces the workbook contents | Existing sheets and data can be lost |
| Replace current sheet | Replaces the selected tab | Formulas and formatting in that tab can be lost |
| Append to current sheet | Adds rows after existing data | Headers or duplicate rows may be added |
| Replace data at selected cell | Starts the import at the selected cell | Existing cells in the import area may be overwritten |
For a first import, Insert new sheet(s) is usually the safest option. It preserves the original workbook and gives you a separate area for verification. Use Append to current sheet only when the incoming columns match the existing table and you have decided how to handle the header row.
Configure separators and conversion
A separator, also called a delimiter, is the character that divides fields into columns. CSV normally uses commas. TSV uses tab characters. Some regional systems export semicolon-separated files because commas are used for decimal values.
Choose Detect automatically when the file is standard and consistent. Choose Comma, Tab, or Custom when automatic detection creates the wrong columns. If a row contains a comma inside a quoted value, such as "Smith, Ana", a correctly formed CSV keeps that value in one column.
The conversion option controls how Sheets interprets text. When enabled, a value such as 2026-11-28 may become a date, 42 may become a number, and text beginning with = may become a formula. When disabled, imported fields remain text more often, which is safer for identifiers and codes.
Use conversion when you are importing calculations or a numeric dataset. Disable it when exact text matters, such as product codes, account numbers, or postal codes.
Import an Excel workbook
For an Excel workbook, inspect the worksheet names before importing. You might need only one worksheet rather than the entire workbook. If you open an Excel file directly from Drive, Sheets can display it in Office compatibility mode. To create a native Google Sheets file, use File > Save as Google Sheets or the conversion command shown by Sheets.
Conversion can change features that do not have an exact Google Sheets equivalent. Check macros, external links, unsupported chart features, named ranges, conditional formatting, and formulas after conversion. Keep the original .xlsx file until the converted workbook passes your checks.
Verify the result
After importing, compare the source and destination:
- Confirm the number of expected columns and rows.
- Check the header names and their order.
- Inspect dates, decimal separators, and negative numbers.
- Search for
#REF!,#VALUE!, or other formula errors. - Check identifiers that may have lost leading zeros.
- Look for garbled characters, which often indicate an encoding mismatch.
- Confirm that an append did not duplicate the header row.
If the file contains extra spaces, clean a copy of the imported column with:
=ARRAYFORMULA(TRIM(A2:A))If a five-digit code lost its leading zero, restore its display with:
=TEXT(A2, "00000")Do not overwrite the raw import until you have confirmed the cleanup rules. Keeping an untouched source tab makes later troubleshooting easier.
Exercise
You need to import a CSV into an existing workbook without changing its current tabs. The CSV uses semicolons and contains product codes such as 00421. Which settings should you choose?
Show answer
Choose Insert new sheet(s), choose a semicolon custom separator, and disable conversion if the product codes must remain text. Then verify that 00421 was not changed to 421.