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

Excel 別々のワークシート Power Automate

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

PDF4me Excel - 別紙のワークシート 複数シートのXLSXワークブックを、個々の単一シートのワークブックに分割します。 Power Automate フロー。ソースファイルをマッピングします SharePoint、 OneDriveDropbox、Dataverse、または Outlook 添付ファイル、アクションは 出力ドキュメント シートごとに 1 つのファイル (シート自体と同じ名前) を含む配列。 それぞれに適用する 周囲に書き込みを分散させ、指定した宛先に書き込みます。この動作は動的で、ワークブックにシートが2枚であろうと200枚であろうと関係ありません。

関連ブログ記事(1)

認証 API リクエスト​

の PDF4me コネクタを接続します Power Automate 有効な 繋がり あなたの PDF4me API キー。フロー設計時に一度接続を作成し、その後は PDF4me テナント内のアクションがそれを再利用します。

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

ワークブックを1冊入れると、ワークブックがずらりと並ぶ。
出力は 出力ドキュメント 各要素は独自の配列を持っています。 ファイル名 そして ファイルの内容常に結果をループします それぞれに適用するファイルの数は動的であるため、単一のファイルを直接参照しようとしないでください。
シート名がファイル名になります
各出力ファイルは、ソースシートに .xlsx 拡大。 シート5 になる Sheet5.xlsx.カスタム名 2025年第1四半期 なる Q1 2025.xlsx.それを使って直接ファイルを作成するか、まずコンポーズステップで変換してください。
クロスシート式は設計上破綻する
シートを分割して独立したワークブックにすると、 =シート2!A1 Sheet1からの参照は対象を失います。シート内の数式(同じシート上にあるすべての数式)は保持されます。ワークブックで複数のシートにまたがる値を連結する場合は、事前に計画を立ててください。
Power Automate の Excel - ワークシートの分離アクション。ファイルコンテンツは、以前の Dropbox ファイルコンテンツの取得ステップからマッピングされます。ファイル名は Separate.xlsx です。詳細パラメーターには、カルチャと言語設定が en-US に設定されていることが示されています。

アクション構成。Dropbox からマッピングされたファイルコンテンツ取得ステップ、ファイル名別.xlsx、カルチャと言語設定 en-US。

パラメータ​

必須: ファイルの内容。 推奨: ファイル名。 高度な: 文化と言語の設定(デフォルトは en-US)

パラメータ必須その機能例
File ContentRequiredContent of the Excel file to process. Map it from the file content returned by a previous action, such as SharePoint or OneDrive Get file content.@{body('Get_file_content')?['$content']}
File NameOptionalName of the Excel file, including its extension (for example `report.xlsx`). Map it from the file name returned by a previous action. Defaults to `Separate.xlsx`.report.xlsx
Culture & Language SettingsOptionalCulture name for formatting (e.g., en-US, fr-FR, de-DE).your value

出力​

このアクションは、ファイルの配列とエラーフィールドを返します。 Power Automate dynamic-content picker は、以下の名前を公開します。

Excel 用の動的コンテンツピッカー - 別々のワークシート: ファイル名、ファイルの内容、エラーメッセージ、エラーの詳細項目。

動的コンテンツピッカーは、outputDocuments内の各項目についてファイル名とファイルコンテンツを表示するほか、エラーが発生した場合はエラーメッセージとエラーの詳細を表示します。

動的コンテンツフィールドタイプ内容物
outputDocumentsArraySeparated excel files
outputDocuments[].File NameTextOutput file name
outputDocuments[].File ContentFile contentOutput file content
Error MessageTextError message if operation failed
Error DetailsArrayList of detailed error messages

生の応答形状​

参考のために (または基となるものを呼び出すとき) REST エンドポイントを直接指定すると、5シート分割の場合、次のようなボディが返されます。

Excelからの生HTTPレスポンス - 個別のワークシート。ステータスコード200、Content-Type application/json。本文には、5つのエントリ(Sheet1.xlsx~Sheet5.xlsx)を含むoutputDocuments配列があり、各エントリにはstreamFile Base64文字列が含まれています。

ステータスコード200、コンテンツタイプ アプリケーション/json。 出力ドキュメント 1つ持ち運ぶ {ファイル名、ストリームファイル} 1枚のシートにオブジェクトを1つずつ配置します。

サンプルファイル​

フローの例​

Power Automateの一般的なワークフローパターンTypical ways to chain Excel - Separate Worksheets into a flow.
SharePointのシートごとのライブラリへのアップロード
  1. SharePoint ファイルが作成されると トリガーは /Documents/InboundWorkbooks で発火します。
  2. SharePoint ファイルコンテンツを取得すると、XLSXバイナリが読み込まれます。
  3. Excel - ワークシートを分けると、シートごとに1つのファイルに分割されます。
  4. 各出力ドキュメントに適用する → SharePoint ファイル名とファイル内容を指定して、/Documents/ByDepartment ディレクトリにファイルを作成します。
ワークブックをメールで送信し、シートを受け取ります。
  1. Outlook 新しいメールが届いたとき .xlsx ファイルが添付されたルーティング受信トレイでトリガーが作動します。
  2. 各添付ファイルに適用する → Excel - ワークシートを分割すると、ワークブックが分割されます。
  3. 各出力ドキュメントに内部適用 → Outlook 各シートを個別の添付ファイルとしてメールで送信してください。
DataverseからOneDriveへの一括エクスポート
  1. 再発トリガーは毎週月曜日の午前6時に作動します。
  2. Dataverseは、統合レポートを単一のワークブックとして生成します。
  3. Excel - ワークシートを分けると、地域別または部門別に分割されます。
  4. それぞれに適用する → OneDrive /Reports/Weekly/[YYYY-MM-DD]/ の下にファイルを作成します。

よくある質問​

What does Excel - Separate Worksheets return?+
An array called outputDocuments. Each item is an object with File Name (the sheet name plus .xlsx extension) and File Content (the binary single-sheet workbook). A 5-sheet input becomes a 5-element array with Sheet1.xlsx through Sheet5.xlsx.
Do I need to know the sheet count in advance?+
No. The action splits whatever sheets are present in the input workbook. Wrap the result in Apply to each over outputDocuments and the flow handles 2 sheets or 200 sheets without any code change.
Are sheet names preserved as file names?+
Yes. Each output file is named after the source sheet plus the .xlsx extension. Sheet5 becomes Sheet5.xlsx. Custom names like Q1 2025, Sales, Inventory become Q1 2025.xlsx, Sales.xlsx, Inventory.xlsx accordingly.
Does the split preserve formatting, formulas, and named ranges?+
Yes for content on the sheet being split. Each output file is a valid .xlsx with the original cell values, number formats, styles, and intra-sheet formulas. Cross-sheet references (=Sheet2!A1 from Sheet1) cannot survive the split because the referenced sheet is no longer in the same workbook.
Does it work with .xls (legacy Excel 97-2003)?+
The action targets .xlsx (OOXML). Convert .xls files to .xlsx upstream if needed. Saving the file from Excel into the new format is the simplest path.
How do I rename the output files (e.g. add a date prefix)?+
Inside the Apply to each, build the new name with a Compose or expression step before Create file: concat(formatDateTime(utcNow(),'yyyy-MM-dd'),'_',item()?['fileName']) gives you 2026-06-02_Sheet1.xlsx style names.
What does Culture & Language Settings change?+
It tells the engine how to interpret locale-sensitive cell content (decimal separator, date order) during the split. The default en-US is correct for US-style 1,234.56 and MM/dd/yyyy. Switch to fr-FR, de-DE, etc. when your sheets follow other conventions.
Does this work in Power Automate Desktop?+
PDF4me Connect is a cloud connector available in Power Automate (the web flow designer). For Power Automate Desktop, call the same Separate Worksheets REST endpoint with the HTTP action.

関連アクション​

ヘルプが必要な場合​