Merge Rows in Excel in Make
What this module does
PDF4me Excel — Merge Rows consolidates duplicate rows in an Excel worksheet by grouping on one or more key columns. Rows that share the same key column values are merged into a single row — values from all other columns are combined into one cell using a semicolon separator, with identical values automatically removed. Use it to consolidate customer orders by ID, deduplicate data exports, or roll up product data to category level — all without writing a single formula or opening Excel.
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 row merging requests securely.
Important Facts You Should Not Miss

File Name and Document are mapped from a prior module. Worksheet Numbers and MergeKey Columns use 1-based indexing as comma-separated strings.
Parameters
Required: Connection, File Name, Document, and Worksheet Numbers must all be provided. MergeKey Columns and Output Format are optional — leave MergeKey Columns empty to remove only exact duplicate rows; Output Format defaults to XLSX.
| Parameter | Required | What it does | Example |
|---|---|---|---|
| Connection | Yes | PDF4me API connection. Click Add and paste your API key if connecting for the first time. | Your PDF4me connection |
| File Name | Yes | Excel filename with extension. Map from the prior module's file name output. | orders_export.xlsx |
| Document | Yes | Binary Excel buffer from a cloud storage download (Google Drive, Dropbox, SharePoint), email attachment, or HTTP response. | 1. Data |
| Worksheet Numbers | Yes | Comma-separated 1-based worksheet numbers to process. Worksheet 1 is the first tab. At least one number is required. | 1,2 |
| MergeKey Columns | No | Comma-separated 1-based column numbers used as the grouping key — column 1 is A, column 2 is B. Rows matching on all key columns are merged. Leave empty to remove only exact duplicate rows. | 1,2 |
| Output Format | No | Format for the output file: XLSX (default, modern Excel), XLS (legacy), XLSB (binary, smaller), or CSV (first worksheet only as plain text). | XLSX |
Quick Setup
- Add PDF4me Excel → Merge Rows to your Make scenario.
- Select Connection (or click Add to create one with your API key).
- Map File Name and Document from a prior cloud storage download or email attachment module.
- Enter Worksheet Numbers as a comma-separated string of 1-based tab numbers (e.g.
1or1,2). - Enter MergeKey Columns as 1-based column numbers — for example
1to group by column A, or1,2to group by columns A and B together. Leave empty to remove exact duplicates only. - Choose Output Format and click Save. The document output is the deduplicated workbook — pipe it into an upload module to save or distribute.
Workflow Examples
Workflow ExamplesCommon Make scenario patterns using Merge Rows in Excel.
- A scheduled trigger downloads the daily orders export Excel from Google Drive.
- Merge Rows runs with Worksheet Numbers "1" and MergeKey Columns "1" (CustomerID in column A).
- All order lines per customer are collapsed into one row — order numbers, products, and amounts joined with semicolons in their respective cells.
- The consolidated XLSX is uploaded to the customer service Google Drive folder for same-day review.
- A Dropbox Watch Folder triggers when a new data file is dropped into the import folder.
- Merge Rows runs with MergeKey Columns left empty — every column is a key so only fully identical rows are removed.
- The first occurrence of each duplicate is kept; all subsequent copies are discarded.
- The clean file is moved to the processed folder and an email notifies the data team of the duplicate count removed.
- A weekly trigger downloads the product catalog Excel from SharePoint.
- Merge Rows runs with MergeKey Columns "1,2" (Category and Subcategory) — all product SKUs within each category are merged into one row.
- Output Format is set to CSV for direct import into the product database.
- The CSV is uploaded to the database import folder and a webhook notifies the data pipeline to begin ingestion.