Automate Excel Data Handling with n8n: Import, Transform, Export

This n8n workflow automates importing Excel files from various sources, transforming data, and exporting updated spreadsheets. It solves tedious manual Excel tasks by streamlining file handling and data manipulation with nodes like Spreadsheet File, HTTP Request, and cloud storage uploads.
manualTrigger
spreadsheetFile
httpRequest
+7
Workflow Identifier: 1832
NODES in Use: manualTrigger, readBinaryFile, httpRequest, googleDrive, microsoftOneDrive, spreadsheetFile, set, writeSpreadsheetFile, writeBinaryFile, ftp
Automate Excel data with n8n and Google Drive

Press CTRL+F5 if the workflow didn't load.

Learn how to Build this Workflow with AI:

What this workflow does

This workflow downloads Excel files from many sources like HTTP URLs, Google Drive, OneDrive, or local files.
The workflow reads the spreadsheet data, calculates customer ages from birthdates, and updates the file.
Finally, it saves or uploads the new Excel file back to a chosen location.
This automation saves many hours, avoids manual mistakes, and manages customer data in one place.


Who should use this workflow

This workflow is for anyone who needs to handle Excel sheets often from different places.
It helps data analysts or teams getting weekly reports to automate repetitive downloads and uploads.
People with access to cloud services like Google Drive or OneDrive will benefit most.
Local file and SFTP users also can use it.
If manual Excel editing wastes time or causes errors, this workflow is useful.


Tools and services used

  • HTTP Request node: Downloads Excel files from web URLs.
  • Google Drive node: Gets files from Google Drive (needs API credentials).
  • Microsoft OneDrive node: Downloads files from OneDrive (needs OAuth credentials).
  • Spreadsheet File node: Converts Excel files to JSON and back.
  • Set node: Calculates customer age using date functions.
  • Write Binary File node: Saves files locally.
  • SFTP node: Uploads files to remote servers.

Using these nodes requires connected accounts or access permissions.


Inputs, Processing Steps, and Outputs

Inputs

  • Excel spreadsheets from HTTP URLs, Google Drive, OneDrive, or local storage.
  • Customer data with birthdate fields.

Processing Steps

  • Download or read the Excel file into n8n.
  • Convert spreadsheet to JSON data.
  • Calculate age from each birthdate using a date difference expression.
  • Update the data with new age information.
  • Convert the JSON data back to an Excel file with a timestamped name.

Outputs

  • A new Excel file with calculated ages saved locally or uploaded to cloud/SFTP.
  • The file includes a date in the name to identify the update time.

Beginner step-by-step: How to use this workflow in n8n

Importing and configuring

  1. Download the workflow file using the Download button on this page.
  2. Open your n8n editor and click Import from File.
  3. Select the downloaded workflow to add it to your n8n environment.
  4. Go through each node and add required credentials like Google Drive or OneDrive API Keys.
  5. Update any file URLs, File IDs, or paths in the HTTP Request or cloud nodes to match your data.
  6. Check the Set node’s date expression matches your Excel birthdate field name exactly.
  7. For saving, enter correct local paths or remote SFTP details.

Testing and activating

  1. Run the workflow once manually using the Manual Trigger node to test.
  2. Verify the output file is generated with correct ages and no errors.
  3. If all works, activate the workflow for production by clicking Activate.
  4. Optionally, replace the manual trigger with a Cron node for scheduled runs.

If self hosting n8n for this, visit self-host n8n for helpful information.


Common problems and edge cases

  • File download fails: Check URLs and if cloud credentials expired. Wrong File ID causes errors.
  • Age calculation error: Confirm birthdate field names and formats match the expression used.
  • File upload or save fails: Make sure file paths are correct and SFTP or cloud credentials valid.
  • Empty or corrupted Excel files: Confirm source files contain valid data before running workflow.

Customization ideas

  • Change the HTTP, Google Drive, or OneDrive file source by updating the URLs or File IDs.
  • Edit the Set node’s expression to calculate other fields like tenure or expiry days instead of age.
  • Add a Code or Function node after reading the spreadsheet to filter or validate rows.
  • Switch upload nodes on or off depending where the output file should go.
  • Add a Cron trigger node to automate running on schedules without manual start.

Summary of outcomes

✓ Imported Excel files from different sources without needing manual download.
✓ Converted and read spreadsheet data as JSON for easy changes.
✓ Calculated customer ages accurately using date expressions.
✓ Generated updated Excel files with timestamped names.
✓ Uploaded or saved updated files in cloud storage, local disk, or SFTP.
✓ Reduced manual work and lowered chances of errors.


Automate Excel data with n8n and Google Drive

Visit through Desktop to Interact with the Workflow.

Frequently Asked Questions

The workflow uses a Set node with a date expression that finds the difference in years between today’s date and the birthdate field in the spreadsheet data.
The workflow supports Excel files from HTTP URLs, Google Drive, Microsoft OneDrive, and local file systems.
Ensure the File ID is correct and the OAuth credentials in n8n are up to date and authorized for file access.
Yes, by replacing the Manual Trigger node with a Cron node, the workflow can run on a set schedule.

Promoted by BULDRR AI

Related Workflows

Automate Twist Channel Creation and Messaging with n8n

This workflow automates creating and updating a channel in Twist and sending a personalized message to specific users. It eliminates manual setup errors and saves time managing Twist communications.

Automate Ideogram Image Generation with Google Sheets & Gmail

This workflow automates graphic design image generation via Ideogram AI, storing image data in Google Sheets and Google Drive, with email alerts via Gmail. It saves designers hours by automating image creation, remixing, review, and record-keeping.

Automate IT Support with Slack and OpenAI in n8n

Streamline IT support by automating Slack message handling using n8n and OpenAI. This workflow handles Slack DMs, filters bots, queries a Confluence knowledge base, and delivers AI-generated responses, improving support efficiency and response time.

Automate Crypto Analysis with CoinMarketCap & n8n AI Agent

Discover how this unique n8n workflow leverages CoinMarketCap’s multi-agent AI to deliver precise, real-time cryptocurrency insights directly via Telegram. Manage crypto data analysis efficiently with automated multi-source API integration.

Automate Gumroad to Beehiiv Subscriber Sync with n8n

Learn how to automatically add new Gumroad sales customers as Beehiiv newsletter subscribers using n8n automation. This workflow saves time by syncing sales data to Google Sheets CRM and notifying your Telegram channel instantly.

Generate On-Brand Blog Articles Using n8n and OpenAI

This workflow automates the creation of on-brand blog articles by analyzing existing company content using n8n and OpenAI. It extracts article structures and brand voice to produce consistent draft articles, saving significant content creation time.
1:1 Free Strategy Session
Your competitors are already automating. Are you still paying for it manually?

Do you want to adopt AI Automation?

Every hour your team does repetitive work, you're burning real money.
While you wait, faster businesses are cutting costs and moving quicker.
AI and automations aren't the future anymore — they're the present.

Book a live 1-on-1 session where we show you exactly which of your daily tasks can be automated — and what it’s costing you not to.