FM
FlowMarket
DevOps & GitHub Intermediate ⚡ 9 n8n Nodes

Import multiple CSV to Google Sheets

This workflow imports multiple CSV files and appends or updates them to a Google Sheets document. Here's a step-by-step breakdown: 1. When clicked "Execute W...

🔌 Nodes & Integrations Used (4)

Read Binary Files Spreadsheet File Item Lists Google Sheets

📖 Implementation & Setup Guide

This workflow imports multiple CSV files and appends or updates them to a Google Sheets document.

Here's a step-by-step breakdown: 1. When clicked "Execute Workflow", the process starts. 2. The "Read Binary Files" node reads all the '.csv' files from the specified directory. 3. The files are then split into batches (one file in a batch) by the "Split In Batches" node. 4. For each file, the "Read CSV" node reads the data from the CSV file. 5. The "Assign source file name" node assigns the source file name to the data. 6. The data is then processed by the "Remove duplicates" node. This removes any duplicate entries based on the 'user_name' field. 7. The "Keep only subscribers" node filters the data to keep only those entries where the 'subscribed' field is set to 'TRUE'. 8. The data is then sorted by the 'date_subscribed' field using the "Sort by date" node. 9. Finally, the processed data is appended or updated to a specified Google Sheets document using the "Upload to spreadsheet" node. It checks for the 'user_name' field, if the data corresponding to that 'user_name' already exists, it updates the data, otherwise appends the new data.

⚡ How to import this workflow into n8n:

  1. Click the Direct Download JSON button above to save Import multiple CSV to Google Sheets.json.
  2. Log in to your n8n Cloud or self-hosted n8n instance.
  3. In your workflow canvas, click the menu in top-right and select Import from File (or paste the JSON directly).
  4. Configure your credentials (e.g. API keys, database URLs) in the corresponding node settings.
  5. Click Execute Workflow to test and switch to Active!

Related DevOps & GitHub Workflows

View All in DevOps & GitHub →