メインコンテンツへスキップ

マージ Excel ファイル Zapier

PDF4me ファイルの結合 は Zapier 2つ以上の要素を組み合わせたアクション Excel 複数のワークブックを1つのファイルに統合し、重複するワークシート名を自動的に変更することで、データの上書きを防ぎます。月次の部門別レポートの統合、地域データの集計、複数ファイルからなるデータセットの組み立てなどに活用できます。各ファイルから含めるシートを選択し、XLSX、XLS、PDF、またはCSV形式で出力できます。

このアクションが何をするか

2個以上必要 Excel 前の Zap ステップで作成したワークブックを結合し、単一の出力ファイルを作成します。結合するワークブックの数に合わせて「ファイル数」を設定し、各ファイルとファイル名のペアをマッピングします。「結合するワークシート」では、ファイルごとに特定のシートのみを含めることができ、「並べ替え位置」では、各ファイルがマッピングされているファイルスロットに関係なく、ファイルが結合される順序を制御します。出力形式は XLSX、XLS、PDF、または CSV です。

関連ブログ記事
この機能に関するブログ記事はまだありません。近日公開予定です。
その間、PDF4me ブログを閲覧して、あらゆるプラットフォームのチュートリアルやワークフローをご覧ください。
ブログをご覧ください →

認証 API リクエスト​

アクセスするには PDF4me ウェブ API を通して Zapierすべてのリクエストには適切な認証情報を含める必要があります。認証により安全な通信が保証され、承認されたユーザーとしての身元が検証され、シームレスな統合が可能になります。 Zapier ワークフローと PDF4meの Excel ファイル結合サービス。

見逃してはならない重要な事実​

ファイル数によって表示されるスロット数が制御されます。
まずファイル数を設定してください。 Zapier 次に、各ファイルに対して、ファイル、ファイル名、並べ替え位置、および結合するワークシートのスロットが表示され、1から指定した番号まで番号が振られます。
重複するワークシート名は自動的に変更されます
2つのソースファイルにある「Summary」という名前のシートは、結合されたワークブックでは「Summary_1」と「Summary_2」となり、データの損失や上書きは発生しません。
マッピング順序ではなく、ソート位置によってマージ順序が設定されます。
ソート位置の値が低いほど、先にマージされます。これは、ワークブックがどのファイルスロットにマッピングされているかに関係なく適用されます。

:::ヒント 前の手順でファイル1、ファイル2などをマップします + 隣のボタン ファイル1、 ファイル2および対応する ファイル名1、 ファイル名2 以前のZapステップからマッピングするフィールドを設定します。 ファイル数結合するファイルの数に合わせてください。各ファイルには完全なコンテンツが含まれている必要があります。 :::

:::警告 ファイル: (存在しますが表示されません) 「ファイル: (存在しますが表示されません)」が表示され、エラーが発生した場合は、 ファイルの内容全体 代わりに。参照 Zapier & Power Automate ヒント詳細は :::

PDF4me Excel 複数ファイル結合 Zapier 設定 - 出力ファイル名、出力形式、ファイル数、ファイル1/ファイル2、結合するワークシート
出力ファイル名、出力形式、ファイル数にはアスタリスク(*)が付きます。各ファイルスロットのファイル名にもアスタリスク(*)が付いています。並べ替え位置と結合するワークシートはオプションです。

マージファイルの主な機能は何ですか?​

  • 複数ファイルの結合2つ以上を組み合わせる Excel 複数のファイルを1つのワークブックにまとめる(ファイル数)
  • 選択式ワークシート: 結合するワークシート1、結合するワークシート2、ファイルごとにシートを選択するか、すべて空欄のままにします
  • ソートコントロール: ソート位置1、ソート位置2、小さい番号が最初にマージされます
  • 出力形式: XLSX、XLS、PDF、またはCSV
  • 重複名の処理重複するワークシート名は自動的に接尾辞付きで名前が変更されます

パラメータ​

ファイルのマージ アクションのパラメーターの完全なリスト。パラメーター名は、 Zapier 構成 UI 上記のスクリーンショットに示されている。 UI ファイル数に基づいて、ファイル1、ファイル2など、ファイルごとに1セットずつ表示されます。

クイックセットアップチェックリスト
  1. セット 出力ファイル名 (延長なし) 出力形式 (XLSX、XLS、PDF、またはCSV形式)
  2. セット ファイル数 (例:ファイル1+ファイル2の場合は2)
  3. 地図 ファイル1、 ファイル名1; ファイル2、 ファイル名2など。
  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. Defaults to XLSX.XLSX
Number of filesRequiredCount of files to merge. Determines how many File, File Name, Sort Position, and Worksheets To Merge slots appear. Defaults to 1.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 ステップで使用するためのファイル。出力形式はすべて共通です。 PDF4me Excel アクション Zapier。

ファイルURL

API 結合されたファイルをダウンロードするためのエンドポイント。これを次のステップのファイル入力にマッピングします。

api.pdf4me.com/Zapier/GetDocument?d=...
代替ファイルURL

代替ダウンロード URL パスにファイル名を含めて。

api.pdf4me.com/Zapier/GetAltDocument/.../mergefile32.xlsx
分野タイプ内容物
jobIdTextID of the PDF4me job that processed the request.
traceIdTextTrace ID of the request, when PDF4me returns one. Give it to PDF4me support when reporting a problem.
documentIdTextID PDF4me gives the resulting document.
File NameTextName of the resulting file, without extension.
File ExtensionTextExtension of the resulting file, for example `.pdf`.
Full File NameTextName of the resulting file, with extension.
File UrlTextDownload link of the resulting file. Map it into any later step that needs the file, for example an upload to Google Drive, Dropbox or OneDrive.
Alternate File UrlTextAlternative download link of the resulting file, with the file name at the end of the URL.
File SizeNumberSize of the resulting file, as reported by PDF4me.

例 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. 毎月1日に、スケジュールされたトリガーが作動します。
  2. PDF4me ファイル結合機能は、各部門のレポートをファイル1からファイル10にマッピングし、それぞれの並べ替え位置を設定することで、一貫した順序で結合されるようにします。
  3. 統合されたワークブックは、経営陣向けの共有ドライブフォルダにアップロードされます。
地域別データ集計
  1. 毎週実行されるトリガーによって、地域別のDropboxフォルダから売上レポートが取得されます。
  2. PDF4me 「ファイルの結合」機能では、各ファイルの「結合するワークシート」に「概要」シートと「詳細」シートのみが含まれるように設定し、その他のタブは統合ファイルに含めないようにします。
  3. 統合されたレポートは営業担当副社長にメールで送信されます。
四半期ごとのPDFアーカイブ
  1. 四半期ごとのトリガーは、各月のデータを取得します。 Excel ファイルから SharePoint。
  2. PDF4me ファイル結合機能は、出力形式をPDF、並べ替え位置を時系列順に設定して、3か月分のデータを結合します。
  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.

関連アクション​

他のプラットフォームでの同じタスク​

業界におけるユースケースとアプリケーション​

  • 期間統合月次の損益計算書、貸借対照表、キャッシュフロー計算書を四半期ごとのワークブックに統合する
  • エンティティロールアップ子会社の財務諸表を統合報告ワークブックにまとめる
  • 予算集計部門別予算ファイルを会社のマスター予算ワークブックに統合する
  • 監査ファイルアセンブリ複数の監査領域からの作業書類ファイルを監査ファイルに統合する
  • 差異報告実績結果を予算ファイルまたは予測ファイルとマージして差異分析ワークブックを作成する

ヘルプが必要な場合​