Skip to main content

Merge Excel Files - Consolidation for Zapier

PDF4me Merge Excel Files eliminates the tedious task of manually combining spreadsheets. Whether you're consolidating monthly reports from different departments, merging quarterly data files, or assembling customer records from multiple sources, this action intelligently combines worksheets while handling duplicate sheet names automatically. Control exactly which sheets to include from each file, specify the merge order, and output in Excel, PDF, or CSV format. Perfect for creating master reports, combining financial data, or assembling comprehensive datasets from distributed files.

Authenticating Your API Request

To access the PDF4me Web API through Zapier, every request must include proper authentication credentials. Authentication ensures secure communication and validates your identity as an authorized user, enabling seamless integration between your Zapier workflows and PDF4me's powerful Excel file merging services.

Merge Files Excel Zapier

Key Features

  • Multiple File Merging: Combine unlimited Excel files into one workbook
  • Selective Worksheet Merging: Choose specific worksheets or merge all from each file
  • Automatic Conflict Resolution: Duplicate worksheet names automatically renamed with suffixes
  • Sort Control: Specify merge order with SortPosition property
  • Multiple Output Formats: Save as XLSX, XLS, PDF, or CSV
  • Content Preservation: Full worksheet content and formatting preserved during merge

Parameters

Complete list of parameters for the Merge action. Configure these parameters to control file merging behavior.

Important: Parameters marked with an asterisk (***) are required and must be provided for the action to function correctly. Each document in the Documents array requires Base64-encoded file content.

ParameterTypeDescriptionExample
File Name***StringOutput Filename Seed
• Base filename for merged output workbook
• Extension automatically added based on Output Format parameter
• Used for output file identification
• Supports dynamic naming from Zap variables
• Required for merge operation
Q1_Report
Document***FileLegacy Parameter (Ignored)
• Kept for API pattern consistency with other Excel modules
• Use Documents array parameter instead for actual file content
• This parameter is not processed during merge
• Map any file to satisfy requirement
[File]
Documents***ArrayArray of Excel Files to Merge
• Array of MergeDocument objects, each with properties:
FileContent* (Base64) - Excel file content to merge from previous step
Filename* (String) - Source filename with extension for identification
SortPosition (Number) - Merge order position (ascending, default: 0)
WorksheetsToMerge (Array of Strings) - Worksheet names to include (empty array = merge all worksheets)
• Must contain at least one document object
• Files processed in SortPosition ascending order (lower numbers merged first)
• Duplicate worksheet names automatically renamed with numeric suffix (_1, _2, _3, etc.)
• Selective worksheet merging reduces output file size
[{
"FileContent":"[Base64]",
"Filename":"jan.xlsx",
"SortPosition":1,
"WorksheetsToMerge":["Summary","Data"]
}]
Output FormatEnumMerged File Output Format
XLSX - Excel 2007+ format (.xlsx) - Default, best compatibility and features
XLS - Excel 97-2003 format (.xls) - Legacy system compatibility
PDF - PDF document format (.pdf) - Read-only distribution and archival
CSV - Comma-separated values (.csv) - Note: CSV output includes first worksheet only
• Output filename automatically receives appropriate extension
• Default: XLSX for maximum compatibility
XLSX
Output File NameStringCustom Output Filename (no extension)
• Name for merged output file without extension
• Extension automatically added based on Output Format (.xlsx, .xls, .pdf, .csv)
• If empty or null, defaults to "merged"
• Supports dynamic naming with Zap variables
• Do not include file extension in this parameter
• Used for final output file identification
Quarterly_Combined

Output

The PDF4me Merge Excel Files action returns comprehensive output data for seamless Zapier workflow integration:

Table View

Response data in a structured table format:

ParameterTypeDescription
FileURLDirect URL to access the merged Excel file
File NameStringThe filename without extension
Full File NameStringComplete filename with extension
File ExtensionStringFile extension (.xlsx, .xls, .pdf, or .csv)

Scenario Examples

The PDF4me Merge Excel Files action in Zapier provides comprehensive scenario templates designed for real-world file consolidation needs:

Automated Monthly Department Report Consolidation Workflow

Consolidate multiple department reports into one executive workbook automatically:

Complete Scenario Steps:

  1. Trigger: Monthly consolidation scheduled on first day of month at 8 AM
  2. List Department Folders: Get all department report folders from Google Drive
  3. Iterate Departments: Loop through each department folder
  4. Get Department Report: Retrieve monthly report Excel from each folder
  5. Build Documents Array: Create array with FileContent, Filename, SortPosition
  6. Set Sort Order: Assign SortPosition 1-10 for department sequence
  7. Merge All Reports: Combine all department reports into one workbook
  8. Set Output: OutputFormat = XLSX, OutputFileName = "Monthly_Consolidated"
  9. Upload to Executive Folder: Save consolidated workbook to executive Google Drive
  10. Email Leadership: Send notification with consolidated report to C-suite

Business Benefits:

  • Consolidates 10+ department reports monthly automatically
  • Maintains department worksheet separation in consolidated workbook
  • Automatic conflict resolution handles duplicate worksheet names
  • Reduces manual consolidation time from 3 hours to 5 minutes

Industry Use Cases & Applications

  • Period Consolidation: Merge monthly P&L, balance sheet, and cash flow files into quarterly workbook
  • Entity Rollup: Combine subsidiary financial statements into consolidated reporting workbook
  • Budget Aggregation: Merge departmental budget files into master company budget workbook
  • Audit File Assembly: Consolidate working paper files from multiple audit areas into audit file
  • Variance Reporting: Merge actual results with budget/forecast files for variance analysis workbook

Get Help