Skip to main content

Merge Excel Files in Make

What this module does

PDF4me Excel — Merge Files automatically combines multiple Excel workbooks into a single consolidated file in your Make scenario — without Power Query, without VBA, and without manual copy-pasting. Add each source file to the Files array, assign a Sort Position to control the tab order in the output workbook, choose which worksheets to include from each file, and select an output format. Duplicate worksheet names are resolved automatically. The merged workbook comes back ready to upload, email, or pass to any downstream module.

Authenticating Your API Request

Every PDF4me module in Make requires a valid Connection. Create or select one that holds your PDF4me API key so the scenario can authenticate workbook merging requests securely.

Important Facts You Should Not Miss

Sort Position controls tab order in the output

Files are merged in ascending Sort Position order — the file with the lowest number goes first. Assign 1 to January, 2 to February, 3 to March — or 1 to North, 2 to South — to get a consistent, predictable worksheet sequence in the output workbook every time the scenario runs.

Worksheets To Merge limits which tabs are included

For each file in the array, you can list specific worksheet names to pull in. Leave the field empty to include every sheet from that file. Selecting only the tabs you need — for example "Summary" and "Data" — significantly reduces output file size when the source workbooks contain raw or intermediate calculation sheets.

Duplicate sheet names are resolved automatically

When two source workbooks both contain a worksheet named "Summary", the module renames the second occurrence to Summary_1, the third to Summary_2, and so on. You never need to pre-rename tabs in your source files before running the merge.

Make PDF4me Excel Merge Files module showing Output File Name, OutputFormat set to XLSX, and a Files array item with File Name, File content, Sort Position, and Worksheets To Merge fields

Output File Name and OutputFormat are set at the top. Each item in the Files array supplies one source workbook with its Sort Position and optional worksheet filter.

Parameters

Required: Connection, Output File Name, OutputFormat, and at least one item in the Files array with File Name and File content must be provided for the module to run.

ParameterRequiredWhat it doesExample
ConnectionYesPDF4me API connection. Click Add and paste your API key if connecting for the first time.Your PDF4me connection
Output File NameYesName for the merged output file without any extension. The correct extension is added automatically based on the OutputFormat you select.Q1_Consolidated
OutputFormatYesFormat for the merged output. XLSX works with all modern Excel versions. XLS supports legacy systems. PDF creates a read-only archive. CSV exports the first worksheet only as plain comma-separated text.XLSX
Files — File NameYesOriginal filename including extension for each source workbook item in the Files array.january_sales.xlsx
Files — FileYesBase64-encoded content of the source Excel file. Map from a Google Drive, Dropbox, or SharePoint download module, or from an HTTP request that returns the file.Base64-encoded file content
Files — Sort PositionNoMerge order for this file — lower numbers are placed first in the output. Assign 1 to January, 2 to February, and so on.1
Files — Worksheets To MergeNoList of specific worksheet names to include from this file. Leave empty to include all sheets. Naming specific tabs reduces output file size.Summary, Data

Quick Setup

  1. Add PDF4me ExcelMerge Files to your Make scenario.
  2. Select Connection (or click Add to create one with your API key).
  3. Enter the Output File Name (without extension) and choose OutputFormat.
  4. Click Add item under Files. For each source workbook, map the File Name and File content from a prior download module, set Sort Position, and optionally list Worksheets To Merge.
  5. Click Save and run. The document output contains the merged workbook in Base64 — pipe it into an upload module to save to Google Drive, Dropbox, or SharePoint.

Workflow Examples

Workflow ExamplesCommon Make scenario patterns using Merge Excel Files.
Monthly department report consolidation
  1. A scheduled trigger runs on the 1st of every month at 8 AM.
  2. Google Drive downloads each department's monthly Excel report. Each file is mapped as an item in the Files array with Sort Position 1–10 for consistent department order.
  3. Merge Files combines all reports into one consolidated workbook with department names as worksheet tabs.
  4. The merged XLSX is uploaded to the executive Google Drive folder and emailed to leadership.
Quarterly archive as a read-only PDF
  1. A scheduled trigger fires on the first day after quarter end.
  2. SharePoint downloads January, February, and March Excel files. Sort Positions 1, 2, and 3 enforce chronological tab order.
  3. Merge Files runs with OutputFormat set to PDF — the merged workbook is archived as an uneditable quarterly snapshot.
  4. The PDF is saved to compliance storage and an entry is logged in the compliance index sheet.
Regional sales rollup with selective sheets
  1. A weekly trigger retrieves regional sales reports from Dropbox — five files for five regions.
  2. Each file item sets Worksheets To Merge to "Summary" and "Data" only — raw calculation tabs are excluded, keeping the output compact.
  3. Sort Position assigns a consistent regional order (North=1, South=2, East=3, West=4, Central=5).
  4. The consolidated XLSX is emailed to the sales VP every Monday morning.

Frequently Asked Questions

How many Excel files can I merge in a single module call?+
There is no enforced limit on the number of items in the Files array. Add one item per source workbook and assign each a Sort Position. The module processes all of them in a single API call, making it practical for consolidating 10, 20, or more monthly or regional reports in one scenario run.
What happens when two source workbooks have a worksheet with the same name?+
Duplicate worksheet names are resolved automatically. The module appends a numeric suffix to later occurrences — so if two workbooks both have a "Summary" tab, the second becomes "Summary_1", the third "Summary_2", and so on. You never need to pre-rename tabs in your source files.
Can I include only specific worksheets from each file?+
Yes. In each Files array item, list the exact worksheet names you want in the Worksheets To Merge field. Leave the field empty to include every sheet from that file. Selecting only the sheets you need — for example "Summary" and "Data" — significantly reduces the output file size when source workbooks contain raw or intermediate calculation tabs.
When should I choose PDF or CSV output instead of XLSX?+
Choose PDF when the merged workbook is for distribution or compliance archiving — it preserves the visual layout and cannot be accidentally edited. Choose CSV when the consolidated data needs to go directly into a database or another system that reads plain text. Note that CSV output contains only the first worksheet of the merged result.
Does the merged output preserve formulas and formatting from the source files?+
Yes. Worksheet content and cell formatting from each source file are preserved in the output. Formulas are included as-is when outputting to XLSX or XLS. If you need the merged file to contain only static values for a clean data handoff, consider passing the output through a subsequent Excel processing module before distribution.

Get Help