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

テキストを置換 Excel で Make

テキストを置換 Excel これは、すべてのワークシートのすべてのセルを検索する一括検索置換操作です。 Excel ワークブック上で、リテラルまたは正規表現パターンを使用して一致するテキストを置換し、必要に応じて置換されたコンテンツにフォント書式を適用します。 PDF4me すべてのワークシートを一度に処理します API 呼び出し、複数の置換フレーズを順次サポートし、データ標準化、リブランディング、および自動コンテンツ更新に適しています。 Excel詳細については Excel テキスト関数と検索置換動作については、以下を参照してください。 マイクロソフト Excel 置換関数 そして Open XML SDK のテキスト処理。

このモジュールの機能

PDF4me Excelテキストを置換 すべてのワークシートにわたってテキストを検索して置換します Excel ワークブック Make シナリオ。1つ以上のPhrases配列項目を追加します。各項目は、SearchTextパターン、ReplacementText値、および正規表現、大文字小文字の区別、セル全体の一致のためのオプションのフラグを指定します。置換されたコンテンツにフォント書式を適用することもできます。すべての置換は単一の処理で順番に実行されます。 API 呼び出しを行うと、更新されたワークブックが返され、アップロードまたは下流工程に渡す準備が整います。

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

認証 API リクエスト​

毎 PDF4me モジュール Make 有効な 繋がり. 作成または選択して、 PDF4me API シナリオがテキスト置換要求を安全に認証できるようにするためのキー。

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

すべてのワークシートは常に処理されます
テキスト置換モジュールは、ブック内のすべてのワークシートを自動的に検索して置換します。処理対象を特定のシートに限定するパラメーターはありません。すべてのタブが一度の処理に含まれるため、非表示のワークシートや補助ワークシートに古い参照が残ることはありません。
正規表現キャプチャグループはReplacementTextで機能します
IsExpressionがtrueの場合、ReplacementText内で$1、$2などを使用して、SearchTextの正規表現パターンからキャプチャグループを参照します。たとえば、電話番号の各部分に一致するパターンは、それらを標準形式に再構成できます。フレーズ項目は配列の順序で処理されるため、置換を連鎖させる場合は、順序を慎重に計画してください。
書式設定は、置き換えられたコンテンツにのみ適用されます。
各フレーズ項目のオプションの書式設定オブジェクトは、置換されたテキストのみにフォントの変更(色、太字、斜体、サイズ、下線)を適用し、セル全体には適用しません。太字、斜体の設定を「適用」、「削除」、「継承」から選択してください。これにより、同じセル内の周囲のテキストの書式を変更することなく、更新されたコンテンツを視覚的に強調表示できます。
PDF4me Excelのテキスト置換モジュールで、前のモジュールからマッピングされたファイル名とドキュメント、および検索テキスト、置換テキスト、書式設定オプションを含むフレーズ配列を表示するようにします。

ファイル名とドキュメントは、前のモジュールからマッピングされます。フレーズ配列は、複数の検索置換操作を受け入れ、それらは順番に処理されます。

パラメータ​

必須: 接続情報、ファイル名、ドキュメント、およびPhrases配列内の少なくとも1つの項目(検索テキストと置換テキストを含む)を指定する必要があります。その他のPhrasesプロパティと書式設定はすべてオプションです。

パラメータ必須その機能例
ConnectionRequiredPDF4me API connection. Click Add and paste your API key if connecting for the first time.Your PDF4me connection
File NameRequiredExcel filename with extension. Map from the prior module's file name output.data.xlsx
DocumentRequiredBinary Excel buffer from a cloud storage download (Google Drive, Dropbox, SharePoint), email attachment, or HTTP response.1. Data
Phrases: SearchTextRequiredText or regex pattern to search for. Use with IsExpression true for regex. Processed across all worksheets.OldCorp Inc.
Phrases: ReplacementTextRequiredText to substitute for each SearchText match. Set to empty string to delete the matched text without inserting anything.NewCorp LLC
Phrases: IsExpressionConditionalSet true to treat SearchText as a regex pattern. Supports capture groups ($1, $2) in ReplacementText. Default is false (literal match).false
Phrases: CaseSensitiveConditionalSet true for case-sensitive matching. Default is false: "oldcorp" matches "OldCorp". Set true when exact casing matters.false
Phrases: MatchEntireCellConditionalSet true to match only cells where the entire content equals SearchText. False (default) matches partial text within cells.false
Phrases: FormattingConditionalOptional object applying font changes to replaced text only: FontName, FontColor (hex), FontSize, Bold/Italic/Underline (Apply, Remove, or Inherit), StrikethroughType, ScriptType.{"Bold":"Apply","FontColor":"#003366"}

出力​

分野タイプ内容物
NameStringOutput Excel filename with extension.
Doc DataBufferThe updated Excel workbook as a binary buffer with all replacements applied across every worksheet. Pipe directly into a cloud storage upload, email attachment, or any downstream module.

テキストの置換方法 Excel で Make​

  1. 追加 PDF4me Excel → テキストを置換 あなたの Make シナリオ。
  2. 選択 繋がり (またはクリック) 追加 あなたと一緒に作成する API 鍵)。
  3. 地図 ファイル名 そして 書類 以前のクラウドストレージからのダウンロード、またはHTTPモジュールから。
  4. クリック アイテムを追加 下 フレーズ。 入力 検索テキスト (検索するテキスト) 代替テキスト (置換する内容、または削除する場合は空欄のままにしてください。)
  5. オプションのフラグを設定します: IsExpression 正規表現の場合、 大文字と小文字を区別 正確なケーシングのために、 セル全体をマッチする 全細胞マッチング用。
  6. 必要に応じて展開 書式設定 置換後のテキストのみにフォントの色、太字、その他のスタイルを適用する。
  7. 追加の置換を行うには、フレーズ項目を追加してください(処理順)。 保存 そして走る。地図 文書日付 出力先をアップロードモジュールまたはメールモジュールに転送します。

テキスト置換はいつ使用すべきですか? Excel?​

Excelで「テキスト置換」機能はいつ使用すべきですか?Common Make scenario patterns using Replace Text.
データ入力エラーを毎週標準化する
  1. 毎週金曜日の午後6時に、スケジュールされたトリガーが実行されます。
  2. Google Drive マスターデータワークブックをダウンロードします。
  3. テキストを複数のフレーズに置換します。「California」を「CA」、「Widget Type A」を「Widget-A」に置換します。柔軟なマッチングのために、すべて大文字小文字を区別しない設定(CaseSensitive false)にしています。
  4. 標準化されたワークブックは、 Google Drive そしてデータチームに完了メールが届く。
全ての企業名をリブランディング Excel ファイル
  1. A Dropbox ファイルがリブランディングキューに追加されたときに、ウォッチフォルダーがトリガーされます。
  2. テキスト置換は、検索テキスト「OldCorp Inc.」、置換テキスト「NewCorp LLC」、大文字小文字を区別する設定、および新しいブランドカラー(#003366)と太字を適用する書式設定で実行されます。
  3. すべてのワークシートは一度の呼び出しで処理されるため、非表示のタブに参照が残ることはありません。
  4. ブランド変更後のワークブックは出力フォルダに保存され、ブランド変更ログが更新されます。
正規表現を使用して電話番号を正規化する
  1. スケジュールされたトリガーは、顧客データファイルを以下から取得します。 SharePoint。
  2. Replace Text は IsExpression true で実行され、SearchText は一般的な電話形式に一致する正規表現に設定され、ReplacementText はキャプチャ グループ ($1、$2、$3) を使用して "(555) 123-4567" 形式を出力します。
  3. 2つ目のフレーズ項目では、より単純な文字ルールを使用して、残っている外れ値を修正します。
  4. 正規化されたワークブックがアップロードされます CRM データがインポートされ、概要がデータチームに送信されます。

よくある質問​

Does this module support regular expressions for text replacement in Excel?+
Yes. Set IsExpression to true in the Phrases array item and enter a regex pattern in SearchText. Use $1, $2 in ReplacementText to reference capture groups from the pattern. For example, a regex matching three groups of phone digits can reassemble them into (555) 123-4567 format. Phrases items are processed sequentially, so plan the order carefully if one replacement feeds into the next.
Can I replace text in specific worksheets only?+
No. The Replace Text module processes all worksheets in the workbook automatically. Every tab is included in a single pass. If you need worksheet-level control, pre-filter the workbook using another Excel module before passing it to Replace Text.
How do I delete text without replacing it with anything?+
Set ReplacementText to an empty string. The module removes the matched text from the cell and inserts nothing. This works for both literal and regex matches and applies across all worksheets.
Can I apply font formatting only to the text I replaced?+
Yes. Each Phrases array item accepts an optional Formatting object. Set FontColor to a hex value, Bold to Apply, and Italic to Apply or Inherit. The formatting applies only to the newly inserted ReplacementText, not to surrounding text in the same cell. This is useful for visually highlighting corrections or rebranded content.
Are multiple Phrases items processed in order?+
Yes. The module processes Phrases array items sequentially from first to last. If the replacement produced by item 1 matches the SearchText of item 2, item 2 will match that already-replaced content. Design the order with this chaining behavior in mind, especially when multiple patterns could overlap.

関連モジュール​

ヘルプが必要な場合​