跳到主要内容

合并 Excel 文件 Zapier

PDF4me 合并文件 是一个 Zapier 结合两种或多种动作 Excel 将多个工作簿合并到一个文件中,自动重命名重复的工作表名称,避免数据被覆盖。可用于合并月度部门报告、汇总区域数据或组装多文件数据集。选择要从每个文件中包含的工作表,并输出为 XLSX、XLS、PDF 或 CSV 格式。

此操作的作用

需要两个或两个以上 Excel 将之前 Zap 步骤中的工作簿合并到一个输出文件中。设置文件数量以匹配要合并的工作簿数量,然后映射每个文件和文件名对。“要合并的工作表”允许您仅包含每个文件中的特定工作表,“排序位置”控制文件的合并顺序,与每个文件映射到的文件槽无关。输出格式为 XLSX、XLS、PDF 或 CSV。

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

验证您的身份 API 要求

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

您不容错过的重要事实

文件数量控制显示多少个插槽。
首先设置文件数量。 Zapier 然后显示每个文件的文件、文件名、排序位置和要合并的工作表槽位,编号从 1 到您的计数。
重复的工作表名称会自动重命名。
两个源文件中名为“摘要”的工作表在合并后的工作簿中分别变为“摘要_1”和“摘要_2”,数据不会丢失或被覆盖。
排序位置(而非映射顺序)决定合并顺序
排序位置较低的值会优先合并。这与工作簿映射到哪个文件槽无关。

:::提示:映射之前步骤中的文件1、文件2等

使用 + 旁边的按钮 文件1文件2以及相应的 文件名1文件名2 要映射来自先前 Zap 步骤的字段。设置 文件数量 要与您要合并的文件数量相匹配。每个文件都必须提供完整内容。

:::

:::警告 文件:(存在但未显示)

如果您看到“文件:(存在但未显示)”并遇到错误,请选择提供相应选项的选项。 完整文件内容 相反。参见 Zapier & Power Automate 尖端 详情请见下文。

:::

PDF4me Excel 合并多个文件 Zapier 配置 - 输出文件名、输出格式、文件数量、文件 1/文件 2、要合并的工作表
输出文件名、输出格式和文件数量均带有星号,每个文件槽位还需填写文件和文件名。排序位置和要合并的工作表是可选的。

合并文件的主要功能有哪些?

  • 多文件合并:组合 2 个或多个 Excel 将多个文件合并到一个工作簿中(文件数量)
  • 选择性工作表:要合并的工作表1,要合并的工作表2,请为每个文件选择工作表,或留空以全部合并。
  • 排序控制排序位置1,排序位置2,先合并较小的数字
  • 输出格式XLSX、XLS、PDF 或 CSV
  • 重复名称处理重复的工作表名称会自动重命名并添加后缀

参数

合并文件操作的完整参数列表。参数名称与以下内容一致: Zapier 配置 UI 如上图所示。 UI 显示文件1、文件2等,每个文件一组,基于文件数量。

快速设置清单
  1. 输出文件名 (无扩展名) 输出格式 (XLSX、XLS、PDF 或 CSV 格式)
  2. 文件数量 (例如,2 代表文件 1 + 文件 2)
  3. 地图 文件1文件名1文件2文件名2; ETC。
  4. (可选) 要合并的工作表1要合并的工作表2 (或者所有页面都留空)
  5. 排序位置1排序位置2 合并顺序(1、2、3……)
范围必需的它的作用例子
Output FileNameRequiredMerged output filename, no extension. The extension is added based on Output Format.mergefile32
Output FormatRequiredOutput format for the merged file: XLSX, XLS, PDF, or CSV.XLSX
Number of filesRequiredCount of files to merge. Determines how many File, File Name, Sort Position, and Worksheets To Merge slots appear.2
File1RequiredFirst Excel file to merge, mapped from a previous step. Must provide full file content.[2. File from Step 2]
File Name1RequiredFirst file's filename, mapped from a previous step.add_header_sample_file.xlsx
Sort Position1ConditionalMerge order for the first file. Lower numbers are merged earlier.1
Worksheets To Merge1ConditionalComma-separated sheet names to include from File1. Empty includes all sheets.Sheet1, Sheet2
File2RequiredSecond Excel file to merge, mapped from a previous step.[2. File from Step 2]
File Name2RequiredSecond file's filename.abc.xlsx
Sort Position2ConditionalMerge order for the second file.2
Worksheets To Merge2ConditionalComma-separated sheet names to include from File2. Empty includes all sheets.Sheet5
合并超过 2 个文件

文件数量 到 3、4 等。 Zapier 将显示文件3、文件名3、排序位置3、要合并的工作表3等等。映射每个文件并设置合并顺序的排序位置。

重要的: 仅有的 文件文件名 每个文件,加上 输出文件名输出格式, 和 文件数量是必填项。重复的工作表名称会自动重命名(例如,Summary_1,Summary_2)。

合并文件会返回什么?

PDF4me 合并文件 操作返回合并后的结果。 Excel 该文件用于后续的 Zap 步骤。输出格式在所有 Zap 步骤中都是通用的。 PDF4me Excel 行动 Zapier

文件 URL

API 用于下载合并文件的端点。将其映射到下一步的文件输入。

api.pdf4me.com/Zapier/GetDocument?d=...
备用文件网址

备用下载 URL 文件名包含在路径中。

api.pdf4me.com/Zapier/GetAltDocument/.../mergefile32.xlsx
场地类型它包含什么
Job IdStringUnique identifier for the Zapier job execution.
File UrlURLAPI endpoint to download the merged file.
Alternate File UrlURLAlternate download URL with the filename in the path.
File NameStringBase filename without extension.
File ExtensionStringFile extension of the returned file, e.g. .xlsx.
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 for Excel operations.

例子 JSON 输出URL(仅显示格式,链接无效):

{
"Job Id": "969f2da3-f10a-49bf-b084-6fc4759991ec",
"File Url": "api.pdf4me.com/Zapier/GetDocument?d=...",
"Alternate File Url": "api.pdf4me.com/Zapier/GetAltDocument/.../mergefile32.xlsx",
"File Name": "mergefile32",
"File Extension": ".xlsx",
"Full File Name": "mergefile32.xlsx",
"Document Id": "07386627-184a-44b2-a040-5ea2712a4bc5",
"File Size": 212764,
"Doc Text": ""
}
所有输出相同 PDF4me Excel 操作

此输出结构在以下各项中共享: 合并文件添加行删除行以及其他 PDF4me Excel 行动 Zapier。 这 URL这些是临时的,请在过期前在下一步中使用它们。

典型配置

工作流程示例Common Zapier workflow patterns using Merge Files.
每月部门合并
  1. 预定触发器会在每月的第一天触发。
  2. PDF4me 合并文件将每个部门的报告映射到 File1 到 File10,并为每个报告设置排序位置,以便它们按一致的顺序合并。
  3. 合并后的工作簿已上传到领导层共享的云端硬盘文件夹。
区域数据汇总
  1. 每周触发一次,从区域 Dropbox 文件夹中检索销售报告。
  2. PDF4me 合并文件功能会将每个文件的“要合并的工作表”设置为仅包含“摘要”和“详细信息”工作表,而将其他工作表排除在合并文件之外。
  3. 合并后的报告将通过电子邮件发送给销售副总裁。
季度 PDF 存档
  1. 每季度触发一次,检索每个月的数据。 Excel 文件来自 SharePoint
  2. PDF4me 将三个月的文件合并在一起,输出格式设置为 PDF,排序位置设置为按时间顺序。
  3. 不可修改的 PDF 存档已上传至合规性存储。

实用技巧

File: (Exists but not shown) causes errors
Select the mapping option that provides the file's full binary content instead of a reference. See Zapier & Power Automate Tips for the exact steps.
Set Number of files before mapping
Zapier only shows File3, File Name3, and so on after Number of files is set high enough. Set it first, then map each slot.
Use Sort Position, not mapping order, for sequence
Files merge in Sort Position order, not the order you happened to map them into File1, File2, etc.
Duplicate sheet names are handled automatically
A repeated sheet name like Summary is renamed with a numeric suffix in the output, you do not need to rename sheets before merging.
Choose PDF or CSV output deliberately
PDF produces an unmodifiable archive copy that loses live formulas. CSV flattens to a single sheet of data. Pick XLSX or XLS if the merged file still needs to be editable with multiple sheets.

速查表

场地价值
ActionMerge Files
Output FileNamemergefile32
Output FormatXLSX
Number of files2
File1 / File2[Mapped from previous steps]
Sort Position1 / 21 / 2
Worksheets To Merge1Sheet1, Sheet2 (or empty for all)

常见问题

How do I merge more than 2 Excel files in Zapier?+
Set Number of files to the total count. Zapier then shows File3, File Name3, Sort Position3, and Worksheets To Merge3, and so on for each additional file. See Microsoft's guide to combining data from multiple sheets for how the native Excel feature compares.
What happens to worksheets with the same name when merging?+
Duplicate worksheet names are automatically renamed with a numeric suffix, for example Summary becomes Summary_1 and Summary_2, so no data is overwritten during the merge.
Can I merge only specific worksheets from each file?+
Yes. Set Worksheets To Merge1, Worksheets To Merge2, and so on to a comma-separated list of sheet names for that file. Leave the field empty to include every worksheet from that file.
What output formats are supported when merging Excel files?+
XLSX, XLS, PDF, or CSV. Choose PDF for an unmodifiable archive copy, or CSV when the destination app only needs the flattened data.
Does the order I map files control the order in the merged workbook?+
No, Sort Position does. Set Sort Position1, Sort Position2, and so on to whole numbers, lower numbers are merged earlier, regardless of which File slot each workbook is mapped to. See Ablebits' overview of merging multiple Excel files for how manual merge order works by comparison.

相关操作

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

行业应用案例及应用

  • 期间合并将月度损益表、资产负债表和现金流量表文件合并到季度工作簿中
  • 实体汇总将子公司财务报表合并到合并报告工作簿中
  • 预算汇总将各部门预算文件合并到公司主预算工作簿中
  • 审计文件集将多个审计领域的工作底稿文件合并到一个审计文件中
  • 差异报告将实际结果与预算或预测文件合并,以生成差异分析工作簿。

获取帮助