Merge Duplicate Rows in Excel Using Zapier
Merge Rows is a Zapier action by PDF4me that consolidates duplicate Excel rows by grouping them on key columns you choose. Combine multiple order rows per customer, aggregate product variants, or roll up category data automatically, non-key values are merged with a semicolon separator and internal duplicates are removed. The result is clean, consolidated data without manual spreadsheet work.
How Do I Authenticate My 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 row merging services.

Important Facts You Should Not Miss
Configuration at a Glance
The screenshot shows merging rows in worksheets 1 and 3 using column 5 as the merge key, with File and File Name mapped from a previous step and Output Format set to XLSX.
add_header_sample_file.xlsx
1,3
5
XLSX
Parameters
Complete list of parameters for the Merge Rows action. Parameter names match the Zapier configuration UI.
Required in the Zapier UI: File only. File Name, Worksheet Numbers, Merge Key Columns, and Output Format are all optional. Both worksheet and column numbers use 1-based indexing (1 = first worksheet, 1 = column A).
| Parameter | Required | What it does | Example |
|---|---|---|---|
| File | Required | Excel file content, mapped from a previous step using full file content. | [2. File from Step 2] |
| File Name | Conditional | Filename with .xlsx or .xls extension, used for output naming. | add_header_sample_file.xlsx |
| Worksheet Numbers | Conditional | Comma-separated, 1-based worksheet numbers to process. 1 is the first worksheet. | 1,3 |
| Merge Key Columns | Conditional | Comma-separated, 1-based column numbers used to identify duplicate rows. Empty merges only exact duplicates across every column. | 5 |
| Output Format | Conditional | Output file format: XLSX, XLS, XLSB, or CSV. | XLSX |
What Fields Does the Output Include?
The action returns the consolidated Excel file plus tracking metadata. This output shape is shared across Merge Rows, Add Rows, Delete Rows, and other PDF4me Excel actions that return a file.
| Field | Type | What it contains |
|---|---|---|
Job Id | String | Unique identifier for the Zapier job execution. |
File Url | URL | API endpoint to download the processed Excel file. Map this to the next step, Drive, Dropbox, or another PDF4me Excel action. |
Alternate File Url | URL | Alternate download URL with the filename in the path. |
File Name | String | Base filename without extension. |
File Extension | String | File extension of the output, matching the chosen Output Format. |
Full File Name | String | Complete filename including extension. |
Document Id | String | Unique identifier for the processed document. |
File Size | Number | Size of the output file in bytes. |
Doc Text | String | Extracted text, typically empty for Excel merge output. |
Typical Setups
Workflow ExamplesCommon Zapier workflow patterns using Merge Rows.
- A scheduled trigger retrieves the day's order export from the e-commerce system.
- Merge Rows runs with Worksheet Numbers set to 1 and Merge Key Columns set to the CustomerID column, so every order for the same customer becomes one row with order details combined by semicolons.
- The consolidated file is uploaded to a customer-service Drive folder for review.
- A new data file lands in a Dropbox import folder, triggering the Zap.
- Merge Rows runs with Merge Key Columns left empty, so only rows that are identical across every column are consolidated, equivalent to standard duplicate removal.
- The cleaned file is uploaded to a Dropbox folder used by downstream systems.
- A weekly trigger retrieves product sales data from SharePoint.
- Merge Rows runs with Merge Key Columns set to the Category and Subcategory columns and Output Format set to CSV, consolidating all products within each category into one row for database import.
- The rollup is emailed to the marketing team as a category performance summary.
Practical Tips
Cheat Sheet
| Field | Value |
|---|---|
| Action | Merge Rows |
| File | [mapped from previous step, full content] |
| File Name | add_header_sample_file.xlsx |
| Worksheet Numbers | 1,3 |
| Merge Key Columns | 5 |
| Output Format | XLSX |
Frequently Asked Questions
Related Actions
Same Task on Other Platforms
Industry Use Cases & Applications
- Sales & E‑Commerce
- Finance & Accounting
- Human Resources
- Operations
- Customer Order Consolidation: Merge multiple order rows per customer into single record showing all orders
- Product SKU Aggregation: Consolidate product variants by parent SKU grouping all variants together
- Account Rollup: Merge account activity rows by account ID combining all transactions
- Territory Consolidation: Group sales data by territory merging all rep activities per territory
- Channel Aggregation: Consolidate sales by channel (direct, partner, online) showing all products per channel
- GL Account Consolidation: Merge transaction rows by GL account combining all entries
- Vendor Rollup: Consolidate invoice rows by vendor ID showing all invoices per vendor
- Cost Center Aggregation: Group expenses by cost center merging all expense types
- Project Consolidation: Merge project cost rows by project ID combining labor, materials, expenses
- Department Rollup: Consolidate budget/actual rows by department showing all accounts
- Employee Timesheet Consolidation: Merge timesheet rows by employee ID combining all time entries
- Training Record Aggregation: Group training records by employee showing all courses completed
- Department Headcount Rollup: Consolidate employee rows by department combining all employees
- Benefits Enrollment Consolidation: Merge benefit selection rows by employee combining all elections
- Performance Record Aggregation: Group review data by employee merging all rating categories
- Inventory Location Consolidation: Merge stock rows by SKU combining quantities across locations
- Equipment Maintenance Rollup: Group maintenance records by asset ID showing all service events
- Quality Inspection Aggregation: Consolidate QC rows by batch number combining all inspection results
- Production Run Consolidation: Merge production rows by work order combining all operations
- Supplier Performance Rollup: Group supplier data by supplier ID merging delivery and quality metrics