Skip to main content

Merge Rows in Excel - Data Consolidation for Zapier

PDF4me Merge Rows in Excel cleans up messy datasets by intelligently consolidating duplicate rows. Whether you have multiple customer orders that need combining, product variations to aggregate, or category data to group, this action identifies duplicates based on key columns and merges their values automatically. It combines non-key column data with semicolon-separated formatting while removing duplicate values within merged cells—so you get clean, consolidated data without manual processing. Perfect for organizing order data, cleaning up customer records, or preparing category-level summaries.

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 row merging services.

PDF4me Excel Merge Rows Zapier configuration - File, File Name, Worksheet Numbers, Merge Key Columns, Output Format
Configure the Excel Merge Rows action—File input, worksheet targeting, merge keys, and output format.

Configuration at a Glance

Example configuration from the Zapier interface

The screenshot above 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.

File

add_header_sample_file.xlsx

Worksheet Numbers

1,3

Merge Key Columns

5

Output Format

XLSX

Map File and File Name from previous steps

Use the + button next to File and File Name to map from earlier Zap steps—e.g., Full File Name from a previous PDF4me Excel action. The Excel file must provide full content, not "Exists but not shown" references.

File: (Exists but not shown)

If you see "File: (Exists but not shown)" in the File field and get "File is Empty" errors, select the option that provides the full file content instead. See Zapier & Power Automate Tips for details.

Key Features

  • Intelligent Row Grouping: Group duplicate rows based on Merge Key Columns
  • Value Consolidation: Non-key columns merged with "; " separator
  • Duplicate Detection: Automatically identify and consolidate duplicate records
  • Multiple Worksheet Support: Worksheet Numbers (1,3,5)—comma-separated, 1-based
  • Flexible Key Selection: Merge Key Columns—empty = all columns (exact duplicates only)
  • Output Format: XLSX, XLS, XLSB, or CSV

Parameters

Complete list of parameters for the Merge Rows action. Parameter names match the Zapier configuration UI.

Quick setup checklist
  1. Map File (Excel) and File Name from previous step
  2. Enter Worksheet Numbers (e.g., "1,3" for worksheets 1 and 3)
  3. Set Merge Key Columns (e.g., "5" or "1,2"—empty for exact duplicates only)
  4. Select Output Format (XLSX, XLS, XLSB, CSV)

Important: Parameters marked with an asterisk (***) are required. Both worksheet and column numbers use 1-based indexing (1 = first worksheet, 1 = column A).

ParameterTypeDescriptionExample
File***FileExcel File Content—map from previous step. Shows "File: (Exists but not shown)" when mapped[2. File from Step 2]
File Name***StringExcel Filename—map from previous step (e.g., Full File Name)add_header_sample_file.xlsx
Worksheet Numbers***StringWorksheets to process (1-based)—comma-separated. 1 = first worksheet1,3
Merge Key ColumnsStringKey columns for grouping (1-based)—comma-separated. 1 = A, 5 = E. Empty = exact duplicates only5 or 1,2
Output FormatStringOutput format—XLSX, XLS, XLSB, or CSVXLSX

Output

The PDF4me Merge Rows in Excel action returns the modified Excel file for use in subsequent Zap steps. The output format is common across PDF4me Excel file-returning actions in Zapier.

Key output fields (map these to your next step)

File Url

API endpoint to download the processed Excel file.

api.pdf4me.com/Zapier/GetDocument?d=...
Alternate File Url

Alternative download URL with filename in path.

api.pdf4me.com/Zapier/GetAltDocument/.../add_header_sample_file.xlsx
File Name / Full File Name / File Extension

Use for naming or passing metadata to the next step.

Complete output structure

ParameterTypeDescription
Job IdStringUnique identifier for the Zapier job execution
File UrlURLAPI endpoint to download the processed Excel file
Alternate File UrlURLAlternate download URL with filename in path
File NameStringBase filename without extension
File ExtensionStringFile extension
Full File NameStringComplete filename with extension
Document IdStringUnique identifier for the processed document
File SizeNumberSize of the output file in bytes
Doc TextStringExtracted text (typically empty)
Same output for file-returning Excel actions

This output structure is shared across Merge Rows, Add Rows, Delete Rows, and other PDF4me Excel actions that return a file. The URLs are temporary—use them in the next step before they expire.

Scenario Examples

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

Automated Customer Order Consolidation Workflow

Consolidate multiple order rows per customer into single customer records:

Complete Scenario Steps:

  1. Trigger: Daily order consolidation scheduled at midnight
  2. Get Order Export: Retrieve daily orders Excel from e-commerce system
  3. Merge Rows: Map File, File Name; set Worksheet Numbers = "1", Merge Key Columns = "1" (CustomerID column)
  4. Consolidate Orders: Non-key columns (OrderID, Product, Amount) merged with "; "
  5. Set Output Format: OutputFormat = "XLSX" for further processing
  6. Remove Duplicate Values: Automatic deduplication in merged cells
  7. Upload Result: Map File Url from output to Google Drive customer data folder
  8. Email Customer Service: Send consolidated view to customer service team
  9. Archive Source: Move original order export to archive folder
  10. Log Consolidation: Record consolidation event with row count reduction

Business Benefits:

  • Consolidates 1000+ order rows into 200 customer records daily
  • Customer service sees all orders per customer in single row
  • Reduces report row count by 80% improving readability
  • Eliminates manual customer order grouping saving 3 hours daily

Industry Use Cases & Applications

  • 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

Get Help