Back to Blog

How to Automatically Import CSV Data Into Google Sheets With No Coding

The manual import of a published online CSV file from an app or Google Drive to Google Sheets is a breeze. A few clicks will do the job. If you want to automate this process, you will need to write custom code with Google Apps Script. But, can I do this without any coding? Now you can. Spend a few minutes exploring Coupler.io, a Google Sheets add-on that lets you automate parsing and importing online CSV data into Google Sheets. 

Why convert CSV into spreadsheets?

The CSV, which stands for comma separated values, is mostly a go-between data format. It is supported by versatile apps and most databases. Here is how it usually works:

  • you export data from a source app into a CSV file 
  • you import the CSV file to a target app 

In our case, Google Sheets is the target app. Users opt for this multifunctional tool to handle calculation-centered and data visualization tasks. Entrepreneurs and small business owners do budgeting, accounting, and tax calculations in spreadsheets. Data analysts build custom reporting and versatile performance dashboards. You might have your own use case and reasons to automate CSV import to Google Sheets. Now, let’s discover how this can be done in less than 5 minutes of your time.

How to automate CSV data import into Google Sheets from cloud?

Coupler.io is a tool for importing data from different sources including CSV files. Install it via this link or find it on the Google Workspace Marketplace:

CSV importer 

An importer is an integration that connects Google Sheets to a specific app or data source. Since we’re going to import CSV data, we need to set up a CSV importer. For this, open Coupler.io in the Add-ons tab of a spreadsheet, click on the +Add Importer button and choose CSV. Complete the following steps to set it up:

1. Fill out the “Title” field

Enter the name of your importer.

2. Set up your data source

Enter the URL of your CSV file into the “CSV URL” field. 

Note: If you’re importing CSV files stored on OneDrive or Dropbox, read our blog post with detailed instructions.

3. Set up your data destination

Enter the name of the sheet, which will be receiving data.

4. Configure importer’s settings

Enable the Automatic data refresh if you want to import CSV data on a specific schedule.

For more about additional fields and settings available, refer to the Coupler.io knowledge base.

5. Save & Run

Click Save to save the parameters or Save & Run to save the parameters and run the initial import right away.

How to automate CSV import from a Google Drive folder

To automate CSV import from a Google Drive folder, you can use two ways:

  • Choose Google Drive as a source application and connect Google Drive to Excel or Google Sheets or BigQuery.
  • Choose CSV as a source application and connect CSV to your destination app. In this case, however, you’ll need to get a shareable link of your CSV file:
    • Go to Google Drive and right-click on your CSV file
    • Select “Get shareable link” 
    • Change “Restricted” to “Anyone with the link” 

Now your CSV file is shared: Anyone on the internet with this link can view

Note: The folder on your GDrive with the CSV file must also be shared with “Anyone with the link.”

Enter your CSV file’s shareable link to the “CSV URL” field for data import. Check out more about CSV from Google Drive to Google Sheets.

Import CSV to Google Sheets from cloud with IMPORTDATA

In Google Sheets, there is a dedicated function, IMPORTDATA, for importing CSV or TSV data from a published online file. Just enter the file URL in the formula, =IMPORTDATA("URL"), and the data will be fetched within a few seconds.

Read our blog post to learn more about IMPORTDATA in Google Sheets.

IMPORTDATA vs. Coupler.io CSV importer 

IMPORTDATAFeatureCSV importer
CSV, TSVFile formats supportedCSV, TSV, XLSX
Read more about how to import Excel to Google Sheets with the CSV importer.
You are not safe from data loss, as each error cleans your data.Output data typeYou are always safe from total data loss if any error occurs.
You can make up to 50 calls on a single spreadsheet.Limitations & errorsOnly if the result is too big to be placed according to Google Spreadsheets limits or Google Sheets API limits that are used to place data.
No support has been officially claimed.Secure CSV link as a data sourceYou can use the Request headers field to provide authentication credentials and use data from secured data sources.
No support has been officially claimed.Data update on demandYou can RUN your importers any time you need to update data with one click of a button.
No support has been officially claimed.SchedulingYou can set up scheduled data updates.
No support has been officially claimed.Global data updateYou can use the RUN ALL button or scheduling option.
Available with the help of the QUERY function.Fields selectionYou can cut off data you don’t need using the Fields parameter. This will let you import only the selected columns. 
No support has been officially claimed.Fields reorderingYou can set up fields order for output.
Available with the help of the QUERY function.
Skip rowsYou can easily skip rows with data you don’t need using the Skip rows parameter.
The cell in which you applied the function will be the target cell to get output.Insert data at cell address You can set up the target cell to get output where you need it.
No support has been officially claimed.Appending optionYou can place data from multiple sources (with the same fields structure and order) using the append mode together with the skip lines parameter. This will let you get a single data set to work with (for example, to combine monthly reports into a single year report).
Available with the help of the QUERY function.Advanced requestsYou can make more precise requests, such as time ranges, users and others, using the URL query string parameter. This is useful when you import data from secured connections for API-styled requests such as reports from time-tracking tools (Toggl, Clockify) or similar ones.

A combination of IMPORTDATA and QUERY can give you a wider scope of data import capabilities. We’ve blogged about the Google Sheets Query Function and what you can do with it. For the rest, the CSV importer looks more practical.

IMPORTDATA lacks any automation features. So, each time you need to update your imported CSV data, you’ll have to do it manually. The only way to automate importing purely in Google Sheets is to write a code using Google Apps Script. You may check out Stack Overflow and discover a code sample provided by one of the users. But should you? 

Coupler.io already has this feature implemented. All you have to do is to toggle the automatic data refresh on and customize the schedule.

How to manually import CSV data into Google Sheets from your device

OK, if you do not work with CSV recurrently, you may not need to automate this flow. In this case, you should go with the manual import. 

Open CSV in Google Sheets

The simplest way to open a CSV file in Google Sheets is to upload it. To do this, open your Google Sheets doc, go to File => Import, click Upload, and select the CSV file from your device.

Then you’ll need to select the Import location, separator type, and whether you need to convert text to numbers, dates, and formulas.

As a result, the CSV data from your file will be converted into a Google Sheets format. For example, this is what the Etsy listings exported in CSV look like after the import to Google Sheets:

So, it’s not a CSV file anymore. If you don’t want to convert CSV to Google Sheets, but need to keep it as CSV with the possibility of opening it in Google Sheets, do the following.

How to open a CSV file in Google Sheets without converting CSV data

Open your GDrive or GDrive folder you want to upload the CSV file to. Go to the Settings menu (click the gear wheel, and select Settings).

Make sure that the Convert uploads checkbox is unchecked.

Note: If you enable this function, all your CSV files will be converted to Google Sheets format when uploaded.

After that, you can drag and drop the CSV file from your device and it will be uploaded without any changes.

When you double-click on the file, the CSV data will be shown as a table. 

If you need to open the uploaded CSV file in Google Sheets, click Open with and select Google Sheets in the drop-down menu.

Your CSV file will be open in Google Sheets in a separate tab, and a converted Google Sheets file will be created in the same folder automatically.

How to use CSV data imported to Google Sheets: Income monitor based on a CSV report

We have a database system, which generates a CSV report. We’ve been inspired by the Railsware video: “How to track income” and decided to build our own real-time income monitor. For this, the data has to be updated as frequently as possible. 

So, first, we set up a CSV importer in Coupler.io, which will update our data every hour. Once the raw data is in the spreadsheet, we can use the power of Google Sheets: two formulas and a Geo chart to tailor a simple income tracker.

Now, with the automatic data refresh, your chart will update every hour, like this:

Program CSV import without a single piece of code

When routine tasks are automated, this lets you focus on other valuable jobs that need to be done. Thus, you save your time and increase your efficiency. Coupler.io was specifically designed to make this happen. You’ll only need to spend less than 5 minutes on the installation and setup. After that, you’ll get a fully automated CSV data importer, which you can use for your project. You may also be interested in other integrations available with the use of the CSV importer: Clockify to Google Sheets and Jira Server to Google Sheets.

Do you have any questions? Feel free to ask them in the comments section. Good luck!

Back to Blog

Comments are closed.

Access your data
in a simple format for free!

Start Free