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

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

Learn how to Build this Workflow with AI:

Visit through Desktop for Best experience

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.


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 Viral UGC Video Creation Using n8n + Degaus (Beginner-Friendly Guide)

Learn how to automate viral UGC video creation using n8n, AI prompts, and Degaus. This beginner-friendly guide shows how to import, configure, and run the workflow without technical complexity.
Form Trigger
Google Sheets
Gmail
+37
Free

AI SEO Blog Writer Automation Workflows in n8n

A complete beginner guide to building an AI SEO blog writer automation using n8n.
AI Agent
Google Sheets
httpRequest
+5
Free

Automate CrowdStrike Alerts with VirusTotal, Jira & Slack

This workflow automates processing of CrowdStrike detections by enriching threat data via VirusTotal, creating Jira tickets for incident tracking, and notifying teams on Slack for quick response. Save hours daily by transforming complex threat data into actionable alerts effortlessly.
scheduleTrigger
httpRequest
jira
+5
Free

Automate Telegram Invoices to Notion with AI Summaries & Reports

Save hours on financial tracking by automating invoice extraction from Telegram photos to Notion using Google Gemini AI. This workflow extracts data, records transactions, and generates detailed spending reports with charts sent on schedule via Telegram.
lmChatGoogleGemini
telegramTrigger
notion
+9
Free

Automate Email Replies with n8n and AI-Powered Summarization

Save hours managing your inbox with this n8n workflow that uses IMAP email triggers, AI summarization, and vector search to draft concise replies requiring minimal review. Automate business email processing efficiently with AI guidance and Gmail integration.
emailReadImap
vectorStoreQdrant
emailSend
+12
Free

Automate Email Campaigns Using n8n with Gmail & Google Sheets

This n8n workflow automates personalized email outreach campaigns by integrating Gmail and Google Sheets, saving hours of manual follow-up work and reducing errors in email sequences. It ensures timely follow-ups based on previous email interactions, optimizing communication efficiency.
googleSheets
gmail
code
+5
Free