Excel & CSV Merger: Consolidate, Pivot & Batch Convert avatar

Excel & CSV Merger: Consolidate, Pivot & Batch Convert

Pricing

from $0.10 / completed consolidation

Go to Apify Store
Excel & CSV Merger: Consolidate, Pivot & Batch Convert

Excel & CSV Merger: Consolidate, Pivot & Batch Convert

Automate spreadsheet reporting. Merge up to 50 Excel and CSV files, create pivot summaries, join tables, batch convert files, rename columns, and format workbooks. Export XLSX, CSV, or JSON. Supports API, scheduled workflows, and MCP integrations.

Pricing

from $0.10 / completed consolidation

Rating

0.0

(0)

Developer

DWS Build

DWS Build

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

3 days ago

Last modified

Categories

Features

Limited permissions

Share

Automate repetitive spreadsheet work without opening Excel.

Merge monthly reports, consolidate regional sales files, create pivot summaries, convert legacy Excel files, and standardize spreadsheet exports across up to 50 files in a single run.

Built for data analysts, business operations teams, developers, and AI-powered automation workflows.

What you can automate

  • Consolidate: Stack rows from multiple files or worksheets, automatically align column headers, or merge tables on a shared key.
  • Pivot: Group data across multiple input files and calculate sum, count, mean, minimum, and maximum.
  • Batch convert: Convert Excel and CSV files to XLSX, CSV, or JSON.
  • Batch rename: Standardize column names across multiple files.
  • Batch format: Apply bold and frozen headers, automatic column widths, and number or date formatting.

Supported input formats: .xlsx, .xlsm, .xls, .csv.

Supported output formats: .xlsx, .csv, .json.

Common use cases

  • Consolidate weekly or monthly sales reports.
  • Combine exports from multiple business systems.
  • Prepare spreadsheet data for dashboards and BI platforms.
  • Convert legacy XLS files into modern formats.
  • Standardize column names before importing data into a database.
  • Generate recurring management summaries.
  • Process spreadsheet files as part of scheduled automations and AI workflows.

Pricing

Event-based pricing with standard Apify platform usage billed separately.

EventPrice
Completed consolidation$0.10
Completed pivot$0.10
Successfully batch-processed file$0.02
Actor start$0.00005

For example, consolidating 20 spreadsheets into one output costs $0.10 in custom event fees, plus the startup fee and platform usage.

Batch converting those same 20 files costs $0.40 in custom event fees, plus the startup fee and platform usage.

Custom event fees apply after the corresponding output is saved. Startup and platform usage charges may still apply to unsuccessful runs.

How to provide files

This Actor runs in the cloud and accepts files through:

  1. Direct-download URLs (recommended): HTTP or HTTPS links, signed cloud storage URLs, Apify key-value store records, Dropbox direct-download links, or Google Drive direct-download links.
  2. Base64: For smaller API requests, provide {"base64": "...", "name": "jan.csv"}. The filename extension is required.

A sharing page that displays a spreadsheet in a browser is not necessarily a direct-download link.

Limits and important information

  • Maximum 50 input files per run.
  • Maximum 30 MB per file and 30 MB total per run.
  • Base64 inputs are limited to 5 MB per file and 10 MB per run.
  • The first row of each sheet is treated as the header row.
  • Outputs preserve cell values rather than original formulas, styles, merged cells, or charts. Formula cells return their last cached calculated values when available.
  • CSV output adds an apostrophe to potentially formula-like text beginning with =, +, -, or @ when the value is not numeric, reducing spreadsheet formula injection risk.

Larger workloads can be split into multiple runs.

Try it with sample data

The following examples use publicly available files from the DWS spreadsheet samples repository.

Copy an example into the Actor's JSON input and click Start. Replace the sample URLs with your own files when ready.

Example 1: Consolidate regional or monthly reports

{
"operation": "consolidate",
"files": [
{
"url": "https://raw.githubusercontent.com/eschaq/dws-spreadsheet-samples/main/north.csv"
},
{
"url": "https://raw.githubusercontent.com/eschaq/dws-spreadsheet-samples/main/south.xlsx"
},
{
"url": "https://raw.githubusercontent.com/eschaq/dws-spreadsheet-samples/main/west.xls"
}
],
"consolidate": {
"strategy": "stack_rows",
"addSourceColumn": true
},
"outputFormat": "xlsx"
}

Columns are matched by name, ignoring case, extra spaces, and differences between spaces, underscores, and hyphens.

For example, Cust ID and cust_id align automatically. Similar but unmatched columns are retained separately and listed in the warnings.

The optional _source column identifies the originating file and sheet.

To join files side by side instead, use:

{
"strategy": "merge_on_key",
"keyColumn": "SKU"
}

Example 2: Pivot revenue by region

{
"operation": "pivot",
"files": [
{
"url": "https://raw.githubusercontent.com/eschaq/dws-spreadsheet-samples/main/sales.xlsx"
},
{
"url": "https://raw.githubusercontent.com/eschaq/dws-spreadsheet-samples/main/legacy.xls"
},
{
"url": "https://raw.githubusercontent.com/eschaq/dws-spreadsheet-samples/main/march.csv"
}
],
"pivot": {
"groupBy": ["Region"],
"values": ["Revenue"],
"aggregations": ["sum", "count", "mean"]
},
"outputFormat": "xlsx"
}

Pivot operations read every sheet by default. Use the optional sheets field to select particular workbook sheets. CSV files are always included.

Non-numeric values in aggregation columns are skipped and reported in the warnings.

Example 3: Batch rename and format spreadsheets

{
"operation": "format",
"files": [
{
"url": "https://raw.githubusercontent.com/eschaq/dws-spreadsheet-samples/main/orders_1.csv"
},
{
"url": "https://raw.githubusercontent.com/eschaq/dws-spreadsheet-samples/main/orders_2.csv"
},
{
"url": "https://raw.githubusercontent.com/eschaq/dws-spreadsheet-samples/main/orders_3.csv"
},
{
"url": "https://raw.githubusercontent.com/eschaq/dws-spreadsheet-samples/main/orders_4.csv"
},
{
"url": "https://raw.githubusercontent.com/eschaq/dws-spreadsheet-samples/main/orders_5.csv"
}
],
"renameColumns": {
"Cust ID": "customer_id",
"Order Date": "order_date"
},
"format": {
"boldHeader": true,
"freezeHeader": true,
"autoWidth": true,
"columnFormats": {
"order_date": "yyyy-mm-dd",
"Amount": "#,##0.00"
}
},
"outputFormat": "xlsx"
}

The convert, rename_columns, and format operations share a batch-processing pipeline. Rename and format options can be combined for a single file-processing event per successfully processed input file.

Formatting requires XLSX output. Column formats reference column names after renaming.

ISO dates stored as text become Excel date cells when supported. Time-zone-qualified and ambiguous date strings remain text.

Output

Each generated file is saved to the run's key-value store. The dataset contains a processing report with download links, row counts, warnings, and charged events.

Example:

{
"operation": "consolidate",
"outputFormat": "xlsx",
"filesIn": 3,
"filesLoaded": 3,
"sheetsIn": 3,
"rowsIn": 9,
"rowsOut": 9,
"outputs": [
{
"key": "consolidated.xlsx",
"url": "https://api.apify.com/v2/key-value-stores/.../records/consolidated.xlsx",
"rows": 9
}
],
"warnings": [],
"chargedEvents": {
"consolidate-run": 1
},
"stoppedAtChargeLimit": false
}

The report contains metadata and download links rather than the spreadsheet row data itself.

Files that cannot be downloaded or parsed are reported as warnings, allowing other files to be processed.

Automate recurring spreadsheet workflows

Use Apify's scheduling and API capabilities to run spreadsheet processing as part of recurring reporting and data-preparation workflows.

For example:

  1. Publish daily or weekly spreadsheet exports to accessible cloud storage.
  2. Run the consolidation or pivot operation.
  3. Retrieve the generated output file.
  4. Send the output into your reporting or downstream automation workflow.

You can also use the Actor's spending-limit settings to control event-based charges.

Connect to Claude and other MCP clients

Use the hosted Apify MCP server with this Actor selected:

https://mcp.apify.com?tools=dws_build/excel-csv-merger-consolidate-pivot-batch-convert

Configure your MCP client with the appropriate Apify authentication, then provide spreadsheet file URLs when invoking the Actor.

Support

Have a spreadsheet workflow that this Actor doesn't currently support?

Open an issue on the Actor's Apify Store page describing your use case.

Built and maintained by DWS Build.