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

行を削除する Excel ワークシート n8n

行を削除する は n8n モジュール PDF4me 不要な行を削除する Excel 1 つのワークフロー ステップでワークシートを実行します。ワークブックと、単一の行、範囲、または混合リストをカバーする行範囲文字列を送信し、 PDF4me それらを下から上に順に削除し、クリーンアップされたファイルを返します。

このノードの機能

PDF4me行を削除する ヘッダー行、空白行、または古いセクションを削除します Excel ワークシートに直接 n8nワークブックを バイナリデータ、 Base64または URL特定のワークシートを対象とするか、最初のシートを空白のままにして、 1 ベースの行範囲文字列 (単一行、範囲、またはそれらの組み合わせ)。指定された行が削除されたクリーンなワークブックを返します。共有前のエクスポートのクリーンアップ、テンプレートのトリミング、保持期間超過レコードの削除に最適です。

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

認証 API リクエスト​

毎 PDF4me ノード n8n 有効な 接続するための認証情報. 作成または選択して、 PDF4me API ワークフローが行削除要求を安全に認証できるようにするためのキー。

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

削除は下から上に実行されます
PDF4me 指定された行を範囲の一番下から上に向かって削除します。これにより、単純な上から下への削除で発生する行インデックスのずれの問題を回避できます。
行番号は1から始まります
1行目はワークシートの最初の行で、以下に示すものと一致 Excel行ヘッダー。行0はありません。
Row Rangesは混合リストを受け付けています
単一の行と範囲を1つの文字列に結合する、例: 1-3、10、25-30単一のノード実行で、連続していない複数のセクションを削除する。
PDF4me Excel 行削除 n8n ノードは、認証情報 PDF4me API、操作 行削除、Excel ファイル入力方法 前のノードからのバイナリ データ、バイナリ データ プロパティ名 data、ワークシート名 Sheet1 プレースホルダー、行範囲 10-20、出力ファイル名 excel_rows_deleted.xlsx、ソース ドキュメント名 myExcelFile.xlsx、および出力バイナリ データ名 data で構成されています。

フルノードパネル:ワークブック(バイナリデータ経由)、Sheet1の行範囲10-20

パラメータ​

必須 n8n UI: Excel ファイル入力方法、ソースドキュメント名、行範囲。ワークシート名(デフォルトは最初のシート)、出力ファイル名(デフォルト) excel_rows_deleted.xlsx出力バイナリデータ名(デフォルト) データ) はオプションです。条件付きワークブックソースフィールド (バイナリデータプロパティ名、 Base64 文書コンテンツ、文書 URL一致する場合にのみ表示されます Excel ファイル入力方法が選択されました。

パラメータ必須その機能例
Excel File Input MethodRequiredHow the workbook enters the node. From Previous Node (Binary Data) reads from a prior node (default). Base64 String accepts an encoded workbook. URL downloads it from a public link.From Previous Node (Binary Data)
Binary Data Property NameConditionalName of the binary property on the incoming n8n item that holds the workbook. Required when Excel File Input Method is Binary Data. Defaults to data.data
Base64 Document ContentConditionalBase64-encoded workbook content. Required when Excel File Input Method is Base64 String.UEsDBBQAAAA...
Document URLConditionalPublicly reachable HTTPS link to the workbook. Required when Excel File Input Method is URL.https://files.example.com/report.xlsx
Worksheet NameOptionalWorksheet to clean. Leave blank to target the first sheet in the workbook.Summary
Row RangesRequiredRow range string with 1-based row numbers. Accepts single rows, ranges, or a mixed comma-separated list. Rows are deleted bottom-to-top.1-3,10,25-30
Output File NameOptionalFilename of the cleaned workbook returned by the node. Default is excel_rows_deleted.xlsx.excel_rows_deleted.xlsx
Source Document NameRequiredLogical filename of the source workbook, used for reference and tracking in the response.myExcelFile.xlsx
Output Binary Data NameOptionalName of the binary property the output item exposes. Default is data. Use a different name when a downstream node expects it.data

出力にはどのようなフィールドが含まれますか?​

分野タイプ内容物
fileNameStringName of the output workbook after row deletion, set from Output File Name (default excel_rows_deleted.xlsx).
fileSizeNumberSize of the output workbook in bytes.
successBooleanTrue when the row deletion completed successfully. Use to route error-handling branches.
originalFileNameStringThe Source Document Name that was processed, kept for audit trails.
worksheetNameStringName of the worksheet where rows were deleted.
rowRangesStringThe Row Ranges string that was used for this deletion.
messageStringDescriptive status message including the row ranges and worksheet name.
Binary (data)BinaryThe cleaned workbook under Output Binary Data Name (default data). Pass into Write Binary File, Email, or any storage upload.

行の削除を設定するにはどうすればいいですか n8n?​

  1. 追加する PDF4me Excel あなたのノードへ n8n ワークフローと設定 手術 に 行を削除する。
  2. で 接続するための認証情報選択してください PDF4me 認証情報またはクリック 新しい認証情報を作成する そしてあなたの API 鍵。
  3. セット Excel ファイル入力方法 に 前のノードから(バイナリデータ) (デフォルト)、 Base64 String、 または URL そして、該当する欄に記入してください。
  4. 入力 ソースドキュメント名参照および追跡用のワークブックの論理ファイル名。
  5. 入力 列範囲 1 から始まる行番号、範囲、または次のような混合リストを含む文字列 1-3,10,25-30。
  6. オプションで設定可能 ワークシート名 特定のシートを指定する場合。最初のシートを指定する場合は空欄のままにしてください。
  7. 任意で変更 出力ファイル名 デフォルトから excel_rows_deleted.xlsx そして 出力バイナリデータ名 デフォルトから data。
  8. ノードを実行し、クリーンアップされたワークブックをバイナリファイル書き込み、電子メール、またはクラウドストレージにルーティングします。

典型的な構成​

ワークフローの例Common n8n workflow patterns using Delete Rows.
クライアントへの納品前にレポートを整理する
  1. Google Drive Download ノードは内部レポートワークブック (バイナリデータ、プロパティ) を取得します データ)
  2. PDF4me 「行の削除」処理は、内部メモ行と空白の区切り行を対象とする行範囲を指定して実行されます。
  3. Write Binary Fileノードは、クライアント準備完了のワークブックを以下の方法で保存します。 $json。fileName。
新規ユーザー向けテンプレートの準備
  1. Read Binary Fileノードはマスターをロードします Excel テンプレート。
  2. PDF4me 「行の削除」機能は、テンプレートが配布される前にサンプルデータ行を削除します。「ワークシート名」には、サンプル行を含むシート名が設定されます。
  3. クリーンアップされたテンプレートは、共有のオンボーディングフォルダにアップロードされます。
定期的な保持クリーンアップ
  1. Cronノードは、固定された場所に保存されているレコードワークブックに対して毎週トリガーされます。 URL。
  2. 前のステップでは、保持期間を超過したレコードの行範囲文字列を計算し、それを渡します。 PDF4me 行を削除する Excel ファイル入力方法の設定 URL。
  3. クリーンアップされたワークブックは、クラウドストレージ内の元のファイルを上書きします。

実践的なヒント​

Row numbers are 1-based, not 0-based
Row 1 is the first row in the worksheet, the same numbering you see in Excel itself. A common mistake is assuming index 0 is the first row.
Bottom-to-top deletion avoids shift bugs
You do not need to recalculate row numbers after each deletion. PDF4me processes the Row Ranges list from the bottom up internally.
Combine ranges in one call
Instead of running the node multiple times, pass a single mixed string like 1-3,10,25-30 to delete several sections in one execution.
Set Worksheet Name for multi-sheet workbooks
Leaving Worksheet Name blank always targets the first sheet. Set it explicitly whenever the workbook has more than one sheet.
Output File Name is separate from Source Document Name
Source Document Name tracks the input file. Output File Name controls what the cleaned workbook is called when it comes back, default excel_rows_deleted.xlsx.
Double-check the range before automating
An incorrect Row Ranges string deletes the wrong rows with no built-in undo. Test with a copy of the workbook before wiring this into a production schedule.

チートシート​

分野価値
OperationDelete Rows
Excel File Input MethodFrom Previous Node (Binary Data)
Binary Data Property Namedata
Worksheet NameSheet1
Row Ranges10-20
Output File Nameexcel_rows_deleted.xlsx
Source Document NamemyExcelFile.xlsx
Output Binary Data Namedata
CredentialsPDF4me API credential

よくある質問​

How do I delete specific rows from an Excel file in n8n?+
Add the PDF4me Excel node, set Operation to Delete Rows, provide the workbook via binary data, Base64, or URL, and enter a Row Ranges string such as 1-3,10,25-30. The node deletes those rows and returns the cleaned workbook.
Can I delete multiple non-contiguous row ranges in one action?+
Yes. Row Ranges accepts a comma-separated mix of single rows and ranges in one string. For example, 1-3,10,25-30 deletes rows 1 through 3, row 10, and rows 25 through 30 in a single execution, no looping required.
Does deleting rows shift my remaining data incorrectly?+
No. PDF4me deletes the specified rows starting from the bottom of the range and working upward, which avoids the row-index-shifting problem that occurs when rows are removed top-down and remaining indexes change mid-operation.
What happens if I leave Worksheet Name blank?+
The action targets the first worksheet in the workbook by default. Set Worksheet Name explicitly when the workbook has multiple sheets and you need to clean a sheet other than the first one.
Are row numbers 0-based or 1-based in the Row Ranges field?+
Row numbers are 1-based, matching Excel row headers directly. Row 1 is the first row in the sheet; there is no row 0.

関連アクション​

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

ユースケース​

  • レポートのクリーンアップ顧客に送信する前に、内部のメモ、合計、または空白の区切り文字を削除してください。
  • テンプレートの準備: サンプル行を削除 Excel 新規ユーザーのオンボーディング前にテンプレートを用意する。
  • コンプライアンスワークフロー有効期限切れのレコードや保持期間を超過した行を自動的に削除します。

ヘルプが必要な場合​