If a coefficient or expression in Excel formulas needs to be updated uniformly across many files, manual modification is both slow and prone to errors. This article uses the example of updating "*2" to "*3" in formulas across files, explaining how to use HeSoft Doc Batch Tool to batch replace Excel formula content. It includes before-and-after effect descriptions, an operation workflow corresponding to software step screenshots, and considerations for setting formula expressions, finding exact text, and saving results, making it suitable for office users who need to maintain a large number of Excel spreadsheets.
Once an Excel formula is written into multiple files, later maintenance becomes troublesome. Especially when the formula contains business coefficients, multipliers, or conversion rules, a single rule adjustment can affect a large number of spreadsheets. For example, in a batch product list, a remarks column uses a formula to multiply the quantity by 2 and then concatenate the unit, with a formula like =CONCAT(D6*2,E6). Now, if the rule changes to multiply by 3, and there is only one file, you can simply modify the formula. However, if there are many Excel files with the same structure, manually modifying each one will waste a lot of time.
This article introduces a more efficient approach: using HeSoft Doc Batch Tool to batch replace Excel formula content. It is an office software-type batch file processing tool, suitable for consolidating repetitive and mechanical document operations. The following uses the example of "batch replacing *2 with *3 in formula expressions" to clearly explain the applicable scenarios, the effects before and after processing, the specific operation steps, and common precautions.
Applicable Scenarios: Formula Content Changes but Numerous Files
Batch replacement of Excel formula content is common in the following office scenarios:
- Product catalogs, price lists, purchasing sheets, inventory sheets, and other Excel files use the same formula template;
- Multipliers, discounts, tax rates, proportions, or unit conversion rules within formulas need a unified change;
- The file format is primarily xlsx, and may also include other Excel spreadsheet files;
- Cross-file batch find and replace is needed, rather than manual operation within a single workbook;
- The goal is to replace content within the formula expression, not just the displayed results in the table.
In this example, column F of the spreadsheet is generated by a formula. The formula contains *2, and after processing, it needs to be uniformly changed to *3. This type of task is particularly suitable for batch processing because the replacement rule is simple and clear; the more files there are, the more obvious the time savings.
Effect Preview: Pre-Processing Formulas and Displayed Results
In the pre-processing screenshot, the Excel formula bar shows the current formula for cell F6 as =CONCAT(D6*2,E6). Column D is Reference Quantity, Column E is Reference Unit, and Column F, Remark, shows the concatenated result. Since D6 is 1000 and E6 is g, multiplying by 2 displays "2000g". Other rows calculate using the same logic; for example, a quantity of 200 displays "400g", and a unit of piece displays "2piece".

This indicates that the content to be processed is not plain text, but a formula expression. If you only focus on the cell display value during batch replacement, it is easy to handle the problem incorrectly. The correct direction is to find *2 in the formula and change it to *3.
Effect Preview: Post-Processing Formulas and Displayed Results
In the post-processing screenshot, the formula bar now shows =CONCAT(D6*3,E6), and the results in the Remark column (Column F) have changed simultaneously. The original "2000g" becomes "3000g", the original "400g" becomes "600g", and the original "2piece" becomes "3piece".

This comparison intuitively shows: that the batch replacement successfully modified the formula expression, and Excel recalculated the results based on the new formula. For a large number of spreadsheets with the same structure, this is more stable than opening and modifying files one by one, and it is also easier to maintain rule consistency.
Operation Steps: Cross-File Batch Replace Formula Expressions
Step One: Open the Excel Tools Category
After launching HeSoft Doc Batch Tool , select "Excel Tools" in the left navigation bar. The interface will display multiple batch processing functions related to Excel. For this task, you need to use "Find and Replace Keywords in Excel", which is the first item in the list, described as a function to batch find and replace keywords in Excel file content.

The expected result of this step is to enter the Excel content find and replace function. Since subsequent options can specify processing formula expressions, it meets the requirement for this "batch modify Excel formula content" task.
Step Two: Import the Excel Files to be Processed
After entering the function, the page top displays the current task name "Find and Replace Keywords in Excel", with the process shown as a step bar. The first step is "Select records to process". You can see the "Add Files" and "Import Files From Folder" buttons at the top right of the page.

If you already know which files to process, you can click "Add Files" to add them individually; if a folder contains all the xlsx files to be processed, you can use "Import Files From Folder". In the screenshot, the task list already has four records, with file names 1.xlsx, 2.xlsx, 3.xlsx, and 4.xlsx, showing their paths and extensions.
The operational goal of this step is to add all Excel files that need a unified formula multiplier update into the same batch task. After importing, check the record count, file paths, and extensions to ensure nothing is missing and no incorrect files have been added. The efficiency of a batch tool comes from processing multiple files at once, but it also requires confirming the task scope clearly before execution.
Step Three: Set the Processing Scope to Cell Text
After confirming the file list, click the "Next" button at the bottom to enter "Set processing options". In the "Set Excel Options" area, you first need to set the "Processing Scope". The screenshot shows "Cell Text" is checked.

Formulas belong to cell content, so selecting cell text here is necessary. For this example, there is no need to process Worksheet Sheet names or text on shapes, so those options do not need to be checked. This makes the batch replacement more focused, reducing the possibility of scanning or replacing irrelevant content.
Step Four: Limit Processing to Cells Containing Formulas
In "Formula type of cells to process", select "Only process cells containing formulas". This setting filters out plain text cells and only executes the subsequent find and replace on cells with formulas.
Why set this? Because the *2 to be replaced is part of a formula. If some ordinary text cells coincidentally contain similar characters, they should not be affected by this task. Limiting to formula cells makes the processing target more accurate and reduces the risk of batch modification.
Step Five: Choose to Process "Formula Expression" Instead of Calculated Value
On the same page, there is also "Processing method for cells containing formulas". The screenshot shows "Formula Expression" is selected. This step determines which part of the content the software processes within a formula cell.
By selecting "Formula Expression", the software will search for the target content within the formula text, like =CONCAT(D6*2,E6). If "Calculated Value of Formula" is selected, the processing target becomes the results displayed by Excel, such as "2000g" or "400g". For modifying formula logic, selecting the formula expression is essential.
The expected result of this step is: after batch processing, the expression in the formula bar changes, not just the displayed value in the table.
Step Six: Set Replacement Rules Using Exact Text Search
In the "Set Keyword Options", the screenshot shows "Exact Text Find" selected. The left "List of keywords to find" contains *2, and the right "List of replacement keywords" contains *3. This means the software will look for *2 in the qualifying formula expressions and replace it with *3.
If your formula has multiple similar segments, it is recommended to fill in a more complete search term based on the actual situation. For example, if you only want to replace the multiplier after a specific column reference, you can use a more specific expression fragment. The settings in the screenshot are suitable when all the formulas to be processed need the change from multiplication by 2 to multiplication by 3.
Additionally, you can see additional options like "Ignore case of letters" and "Match whole words, not parts of a word". This example deals with a combination of symbols and numbers; the screenshot does not have these additional options checked, so keeping the defaults is fine.
Step Seven: Set Save Location and Start Batch Processing
After completing the formula processing options and keyword replacement rules, click the "Next" button at the bottom. The step bar at the top of the page shows that the subsequent steps are "Set save location" and "Start processing". Follow the interface guide to select the save location, and then you can enter the processing phase.
It is recommended not to overwrite the original files hastily. For operations that affect calculation logic, like batch modifying formulas, it is safer to save the results to a separate directory. After processing is complete, open the result file to check the formula bar and displayed results: the formula should change from =CONCAT(D6*2,E6) to =CONCAT(D6*3,E6), and the result should change from "2000g" to "3000g".
Common Questions and Precautions
1. Why replace *2 instead of 2000g?
Because the change in business rules occurs at the formula logic level. The display value "2000g" is just the result after the formula calculation. If you directly replace the display value, the formula itself might remain unchanged and recalculate using the old rules when data changes later. Modifying the formula expression is what updates the rule at its root.
2. Is testing needed before batch processing?
It is recommended to test with a small number of files first. You can import 1 to 2 sample files, confirm the replacement rules and results meet expectations, and then execute on all files. This avoids erroneous replacements caused by search fragments that are too broad.
3. What if the formulas are written differently across files?
Batch replacement depends on the search content. If the formulas are written inconsistently in different files, for example, some are D6*2, while others use different references or contain spaces, you need to design the replacement rules based on the actual formulas. If necessary, you can process different types of files in batches.
4. Can it process a very large number of Excel files?
Yes. The value of this tool lies in its batch processing capability for files. The screenshot demonstrates importing 4 xlsx files, but in practice, more files can be imported as needed for the task. The more files there are, the more obvious the efficiency advantage of batch processing over manual operation becomes.
5. How to confirm processing was successful?
After processing, it is recommended to check at least two types of content: first, see if the formula bar displays the new expression; second, check if the formula calculation results match expectations. Do not only look at the cell display value, as a correct display value does not guarantee all formulas were modified as expected.
Summary: Improve Excel Maintenance Efficiency with Batch Replace of Formula Expressions
When the formula content in multiple Excel files needs a unified update, manual modification takes a lot of time and is prone to omissions or mistakes. HeSoft Doc Batch Tool provides a process suitable for batch processing office files: choose the Excel Find and Replace function, import multiple files, set processing to only cell text and cells containing formulas, select to process the formula expression, and configure the replacement rule from *2 to *3.
Through this method, the formula logic and displayed results can be synchronously updated across multiple files. For users who frequently maintain report templates, product lists, price sheets, or statistical files, it is recommended to delegate such repetitive Excel formula modification tasks to a batch processing tool, saving time for rule confirmation and result review, thereby significantly improving office efficiency.