Replace Text in Excel in Make
Replace Text in Excel is a bulk find-and-replace operation that searches every cell across all worksheets in an Excel workbook, substitutes matching text using literal or regex patterns, and optionally applies font formatting to the replaced content. PDF4me processes all worksheets in a single API call, supporting multiple replacement phrases sequentially, making it suitable for data standardization, rebranding, and automated content updates without opening Excel. For details on Excel text functions and find-replace behavior, see Microsoft Excel SUBSTITUTE function and Open XML SDK text handling.
What this module does
PDF4me Excel, Replace Text searches and replaces text across all worksheets of an Excel workbook in your Make scenario. Add one or more Phrases array items: each specifies a SearchText pattern, a ReplacementText value, and optional flags for regex, case sensitivity, and whole-cell matching. You can also apply font formatting to replaced content. All replacements run sequentially in a single API call and the updated workbook is returned ready to upload or pass downstream.
Authenticating Your API Request
Every PDF4me module in Make requires a valid Connection. Create or select one that holds your PDF4me API key so the scenario can authenticate text replacement requests securely.
Important Facts You Should Not Miss

File Name and Document are mapped from a prior module. The Phrases array accepts multiple search-replace operations processed in order.
Parameters
Required: Connection, File Name, Document, and at least one item in the Phrases array (with SearchText and ReplacementText) must be provided. All other Phrases properties and Formatting are optional.
| Parameter | Required | What it does | Example |
|---|---|---|---|
| Connection | Required | PDF4me API connection. Click Add and paste your API key if connecting for the first time. | Your PDF4me connection |
| File Name | Required | Excel filename with extension. Map from the prior module's file name output. | data.xlsx |
| Document | Required | Binary Excel buffer from a cloud storage download (Google Drive, Dropbox, SharePoint), email attachment, or HTTP response. | 1. Data |
| Phrases: SearchText | Required | Text or regex pattern to search for. Use with IsExpression true for regex. Processed across all worksheets. | OldCorp Inc. |
| Phrases: ReplacementText | Required | Text to substitute for each SearchText match. Set to empty string to delete the matched text without inserting anything. | NewCorp LLC |
| Phrases: IsExpression | Conditional | Set true to treat SearchText as a regex pattern. Supports capture groups ($1, $2) in ReplacementText. Default is false (literal match). | false |
| Phrases: CaseSensitive | Conditional | Set true for case-sensitive matching. Default is false: "oldcorp" matches "OldCorp". Set true when exact casing matters. | false |
| Phrases: MatchEntireCell | Conditional | Set true to match only cells where the entire content equals SearchText. False (default) matches partial text within cells. | false |
| Phrases: Formatting | Conditional | Optional 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"} |
Output
| Field | Type | What it contains |
|---|---|---|
| Name | String | Output Excel filename with extension. |
| Doc Data | Buffer | The 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. |
How to Replace Text in Excel in Make
- Add PDF4me Excel → Replace Text to your Make scenario.
- Select Connection (or click Add to create one with your API key).
- Map File Name and Document from a prior cloud storage download or HTTP module.
- Click Add item under Phrases. Enter SearchText (the text to find) and ReplacementText (what to substitute, or leave empty to delete).
- Set optional flags: IsExpression for regex, CaseSensitive for exact casing, MatchEntireCell for whole-cell matching.
- Optionally expand Formatting to apply font color, bold, or other styling to replaced text only.
- Add more Phrases items for additional replacements (processed in order). Click Save and run. Map Doc Data from the output into an upload or email module.
When Should I Use Replace Text in Excel?
When Should I Use Replace Text in Excel?Common Make scenario patterns using Replace Text.
- A scheduled trigger runs every Friday at 6 PM.
- Google Drive downloads the master data workbook.
- Replace Text runs with multiple Phrases: "California" to "CA", "Widget Type A" to "Widget-A", all with CaseSensitive false for flexible matching.
- The standardized workbook is uploaded back to Google Drive and the data team receives a completion email.
- A Dropbox Watch Folder triggers when a file is placed in the rebranding queue.
- Replace Text runs with SearchText "OldCorp Inc.", ReplacementText "NewCorp LLC", CaseSensitive true, and Formatting set to apply the new brand color (#003366) and Bold.
- All worksheets are processed in one call, ensuring no remaining references in hidden tabs.
- The rebranded workbook is saved to the output folder and the rebranding log is updated.
- A scheduled trigger retrieves a customer data file from SharePoint.
- Replace Text runs with IsExpression true, SearchText set to a regex matching common phone formats, and ReplacementText using capture groups ($1, $2, $3) to output "(555) 123-4567" format.
- A second Phrases item corrects any remaining outliers using a simpler literal rule.
- The normalized workbook is uploaded for CRM import and a summary is sent to the data team.