跳到主要内容

合并重复行 Excel 使用 Zapier

合并行 是一个 Zapier 采取行动 PDF4me 合并重复项 Excel 您可以按选定的关键列对行进行分组。合并每个客户的多个订单行、聚合产品变体或自动汇总类别数据,非关键值将以分号分隔符合并,并删除内部重复项。最终生成干净、统一的数据,无需手动操作电子表格。

相关博客文章
目前尚无关于此功能的博客文章——敬请期待。
在此期间,您可以浏览 PDF4me 博客,查看适用于各平台的教程和工作流程。
访问博客

我如何验证我的身份 API 要求?

要访问 PDF4me 网站 API 通过 Zapier每个请求都必须包含正确的身份验证凭据。身份验证可确保通信安全,并验证您作为授权用户的身份,从而实现与您的系统之间的无缝集成。 Zapier 工作流程和 PDF4me强大的 Excel 行合并服务。

PDF4me Excel 合并行 Zapier 配置 - 文件、文件名、工作表编号 1、3、合并键列数 5、输出格式 XLSX
配置 Excel 合并行操作、文件输入、工作表目标、合并键和输出格式。

您不容错过的重要事实

仅需文件即可。
截图证实,“文件”是唯一带有星号的字段。 Zapier UI文件名、工作表编号、合并键列和输出格式均为可选。
并非如此 Excel'合并单元格功能
此操作会按主列值对重复行进行分组,并合并其其他值,但不会像其他方式那样在视觉上合并相邻单元格。 Excel它的原生“合并单元格”按钮可以做到这一点。
空合并键列仅表示完全重复项
将“合并键列”留空,则仅合并每列都相同的行,这是最窄的分组。

配置概览

示例配置来自 Zapier 界面

屏幕截图显示使用第 5 列作为合并键合并工作表 1 和 3 中的行,文件和文件名从上一步映射,输出格式设置为 XLSX。

文件

添加标题样本文件.xlsx

工作表编号

1,3

合并关键列

5

输出格式

XLSX

参数

合并行操作的完整参数列表。参数名称与……匹配 Zapier 配置 UI

必需 Zapier UI 仅文件。文件名、工作表编号、合并键列和输出格式均为可选。工作表编号和列编号均使用从 1 开始的索引(1 = 第一个工作表,1 = A 列)。

范围必需的它的作用例子
FileRequiredExcel file content, mapped from a previous step using full file content.[2. File from Step 2]
File NameConditionalFilename with .xlsx or .xls extension, used for output naming.add_header_sample_file.xlsx
Worksheet NumbersConditionalComma-separated, 1-based worksheet numbers to process. 1 is the first worksheet.1,3
Merge Key ColumnsConditionalComma-separated, 1-based column numbers used to identify duplicate rows. Empty merges only exact duplicates across every column.5
Output FormatConditionalOutput file format: XLSX, XLS, XLSB, or CSV.XLSX

输出结果包含哪些字段?

该操作返回合并后的结果。 Excel 文件加上跟踪元数据。此输出格式在合并行、添加行、删除行和其他操作之间共享。 PDF4me Excel 返回文件的操作。

场地类型它包含什么
Job IdStringUnique identifier for the Zapier job execution.
File UrlURLAPI endpoint to download the processed Excel file. Map this to the next step, Drive, Dropbox, or another PDF4me Excel action.
Alternate File UrlURLAlternate download URL with the filename in the path.
File NameStringBase filename without extension.
File ExtensionStringFile extension of the output, matching the chosen Output Format.
Full File NameStringComplete filename including extension.
Document IdStringUnique identifier for the processed document.
File SizeNumberSize of the output file in bytes.
Doc TextStringExtracted text, typically empty for Excel merge output.

典型配置

工作流程示例Common Zapier workflow patterns using Merge Rows.
合并每个客户的多个订单
  1. 预定的触发器会从电子商务系统中检索当天的订单导出数据。
  2. 合并行时,工作表编号设置为 1,合并键列设置为 CustomerID 列,因此同一客户的每个订单都会合并为一行,订单详细信息用分号连接。
  3. 合并后的文件将上传到客户服务云盘文件夹以供审核。
导入时删除完全重复的行
  1. 新数据文件进入 Dropbox 导入文件夹,触发 Zap。
  2. “合并行”操作在“合并键列”留空的情况下运行,因此只有每列都相同的行才会被合并,这相当于标准的重复项删除。
  3. 清理后的文件将上传到下游系统使用的 Dropbox 文件夹。
将产品数据汇总到类别级别
  1. 每周触发一次,从……检索产品销售数据 SharePoint
  2. 合并行时,合并键列设置为“类别”和“子类别”列,输出格式设置为 CSV将每个类别中的所有产品合并为一行,以便导入数据库。
  3. 汇总结果将作为品类业绩摘要通过电子邮件发送给市场营销团队。

实用技巧

Map full file content, not a reference
If File shows "Exists but not shown", pick the mapping option that provides full file content, or the action returns a File Is Empty error.
Merge Key Columns controls the grouping granularity
A single key column groups broadly (all rows sharing that value), while multiple key columns require an exact match across all of them before rows are merged.
Non-key values are semicolon-joined, not summed
Numeric columns outside the key are combined as text with a semicolon separator, not added together. Do downstream math separately if you need totals.
Worksheet Numbers accepts multiple sheets at once
List several 1-based worksheet numbers, such as 1,3, to run the merge across more than one sheet in a single action call.
This is not Excel's Merge Cells feature
It groups and consolidates duplicate rows, it does not visually join adjacent cells the way Excel's built-in Merge Cells button does.

速查表

场地价值
ActionMerge Rows
File[mapped from previous step, full content]
File Nameadd_header_sample_file.xlsx
Worksheet Numbers1,3
Merge Key Columns5
Output FormatXLSX

常见问题解答

How do I merge duplicate rows in Excel automatically in Zapier?+
Add the PDF4me Merge Rows action to a Zap, map File with full file content, set Worksheet Numbers and Merge Key Columns to identify the grouping, choose an Output Format, and run the Zap. See Microsoft's guide to merging and unmerging cells for how Excel's own, different, cell-merge feature works by comparison.
What happens to the non-key column values when rows are merged?+
Values from non-key columns are combined into a single cell separated by semicolons, and duplicate values within that merged cell are removed automatically, so you get one clean, consolidated value instead of a comma pile-up.
What if I leave Merge Key Columns empty?+
With no key columns specified, the action only merges rows that are exact duplicates across every column, which is the narrowest possible match, equivalent to standard duplicate-row removal.
Can I merge rows across more than one worksheet in a single run?+
Yes. Worksheet Numbers accepts a comma-separated list such as 1,3, and the merge runs on each listed worksheet within the same action call.
Is this the same as Excel's Merge Cells feature?+
No. Excel's native Merge Cells visually joins adjacent cells into one, it does not combine data from duplicate rows. This action instead groups rows that share the same key column values and consolidates their other column values into one row per group. See Ablebits' guide on merging rows without losing data for the manual approach this action automates.

相关操作

在其他平台上执行相同任务

行业应用案例及应用

  • 客户订单合并将每个客户的多条订单记录合并为一条记录,显示所有订单。
  • 产品 SKU 聚合将产品变体按父 SKU 合并,并将所有变体分组在一起。
  • 账户汇总按账户 ID 合并账户活动行,合并所有交易
  • 领土整合按地区汇总的集团销售数据,合并了每个地区所有销售代表的活动
  • 通道聚合按渠道(直销、合作伙伴、线上)汇总销售数据,显示每个渠道的所有产品

获取帮助