Import and Clean CSV Files in Google Sheets

Quickly import CSV exports into Google Sheets and clean common issues—mixed delimiters, extra spaces, duplicates, numbers-as-text, and hidden characters—so your data is ready for formulas and reporting.

What the video covers

Import a CSV file into Google Sheets and apply built-in cleanup tools to produce a clean, formula-ready table.

Watch the video on YouTube

Step-by-step instructions

  1. Open or create a Google Sheets file
    Launch Google Sheets in your browser and open a new or existing spreadsheet to receive the CSV data.
  2. Import the CSV file
    Use the spreadsheet’s Import file option and upload or drag your CSV into the dialog. Choose whether to replace the spreadsheet, insert a new sheet, or append to the current sheet. Select automatic detection for the separator or pick a custom delimiter if your file uses semicolons, pipes, or tabs. Allow conversion of text to numbers and dates if you want Google Sheets to parse those automatically.
  3. Remove duplicate rows
    Select the imported table range, use Data cleanup Remove duplicates, include the header row if applicable, and run the check to delete exact duplicate records.
  4. Trim extra whitespace and remove hidden characters
    With the range selected, run Data cleanup Trim whitespace to delete leading/trailing spaces. For non-printable characters, create a helper column and apply =TRIM(CLEAN(A2)) (adjust column reference) then fill down; this removes hidden control characters and extra spaces.
  5. Split combined columns when needed
    If fields like full name or address are in one column, select that column and use Split text to columns, then choose the separator character (space, comma, or custom) to divide values into separate columns.
  6. Convert numbers and dates stored as text
    Select numeric/date columns and choose a numeric or date format (Format Number Automatic/Number/Date). If formatting doesn’t convert values, apply VALUE() in a helper column or re-import with conversion turned on, then replace the original column.
  7. Replace helper formulas with hard values
    After cleaning in helper columns, copy the cleaned range, then Paste special Values only over the original columns to remove formulas and keep the fixed cleaned values.

Watch the video

Video thumbnail for Import and Clean CSV Files in Google Sheets Play tutorial

Watch on YouTube

Why it matters

CSV exports from CRMs, ad platforms, or databases often include mixed delimiters, stray whitespace, non-printable characters, duplicated rows, and numeric fields stored as text. Cleaning these issues ensures lookups, sums, and dates work reliably in reports and automations.

Check your result

You have a new sheet (or replaced sheet) with the imported data; no duplicate rows (or only expected duplicates); no leading/trailing spaces; numeric/date columns evaluate as numbers/dates; combined fields are split where needed; helper formulas replaced with hard values.

Troubleshooting

If numbers still act like text, confirm there are no non-numeric characters (use CLEAN and TRIM). If dates import incorrectly, try changing separator settings or reformat columns to a date format. For persistent delimiter problems, re-open the import dialog and explicitly set the separator. If Paste special Values only isn’t available, copy the range and use the menu command for pasting values.