When formulas with the same structure exist across multiple Excel files, manually modifying formula expressions cell by cell is not only time-consuming but also prone to errors. This article explains how to use the office software " HeSoft Doc Batch Tool " to batch find and replace formula content in Excel cells, such as uniformly replacing "*2" with "*3" in formulas. The article will reference the actual operation interface to clearly explain applicable scenarios, effects before and after processing, detailed steps, and precautions, helping you quickly complete batch formula modifications in xlsx, xls, and other spreadsheet files, reducing repetitive labor and improving formula adjustment efficiency.
In daily spreadsheet work, many people run into this problem: within the same batch of Excel files, many cells use similar formulas, and you suddenly need to uniformly adjust the formula expressions—such as changing multiplication by 2 to multiplication by 3, or batch-replacing a segment of function parameters. If you rely on manually opening xlsx or xls files one by one and then modifying cells one by one, it's not only highly repetitive, but it's also easy to miss changes or make mistakes.
This article aims to solve exactly this: batch modifying formula expressions in Excel cells. Using the "Find and Replace Keywords in Excel" feature within the office software HeSoft Doc Batch Tool , you can directly perform batch find-and-replace targeting cells containing formulas, and specify processing based on the formula expression, rather than just processing the calculated result of the formula. This type of batch processing is especially suitable for scenarios where you need to uniformly adjust formula rules across a large number of Excel tables.
Applicable Scenarios
This method is very practical if you have the following needs:
- Need to batch modify formula expressions in multiple Excel files;
- Within the same batch of tables, the formula structure is consistent, and you only need to replace a specific segment of content;
- Need to uniformly adjust multipliers, divisors, parameters, or string concatenation rules within formulas;
- Don't want to manually check and modify file by file, sheet by sheet;
- Need to process common Excel file formats such as xlsx and xls.
For example, the formula shown in the screenshot is originally =CONCAT(D6*2,E6), and the goal is to uniformly replace *2 with *3, so the result column will batch-change from 2000g to 3000g.
Effect Preview
Before Processing
From the sample table, you can see that the selected cell's formula bar displays =CONCAT(D6*2,E6). This means the current result column is obtained by multiplying the value in column D by 2, then concatenating it with the unit from column E, so the right-side results mostly show content like 2000g, 400g, 2piece, etc.

After Processing
After the batch replacement is complete, the formula expression becomes =CONCAT(D6*3,E6). The corresponding results will then automatically update to 3000g, 600g, 3piece, etc. This means the software modifies the formula itself, not just the currently displayed result text.

Steps
Step 1: Enter the Excel Batch Find and Replace Feature
After opening the office software HeSoft Doc Batch Tool , select Excel Tools on the left. Find and enter "Find and Replace Keywords in Excel" in the function list.

The purpose of this step is to enter the dedicated function page supporting batch find and replace for Excel content. Since this article addresses processing formula expressions, you need to start here, rather than manually modifying within Excel one by one.
Step 2: Import the Excel files to be processed
After entering the function page, click "Add Files" in the upper right corner, or you can use "Import Files from Folder" to import multiple Excel files at once. The screenshot shows 4 xlsx files have been imported, and the file list displays the file name, path, extension, creation time, and modification time.

The purpose of this step is to add all tables requiring uniform formula modification to the task at once. For scenarios with a large number of files, it is recommended to prioritize importing by folder, which better suits the office scenario of batch file processing.
After importing, click "Next" at the bottom.
Step 3: Set the processing scope to Cell Text
On the "Set Processing Options" page, first confirm the Processing Scope is set to "Cell Text". This option is checked in the screenshot.

The purpose of this is to let the software perform find and replace at the cell content level. Since formulas are essentially content expressions within cells, cell text needs to be processed here.
Step 4: Limit processing to only cells containing formulas
In "Cell Formula Type to Process", select "Process only cells containing formulas". This is one of the key settings for this operation.
With this setting, the software will not process plain text or plain numeric cells, but will execute find and replace only on cells with formulas, which is more precise and safer.
Step 5: Choose to process by Formula Expression
In "Processing Method for Cells Containing Formulas", select "Formula Expression", not "Calculated Value of Formula".
This step is very critical. Because your goal is to replace *2 with *3 in =CONCAT(D6*2,E6), i.e., modify the formula source code itself. If you choose "Calculated Value of Formula", the software would process the displayed result, such as 2000g, instead of the formula expression.
The expected result is: the software directly modifies the formula content, and after Excel recalculates, the result column refreshes automatically.
Step 6: Set Find and Replace Content
In "Find Method", select "Exact Text Search". Then, input *2 in the left-side "Keyword List to Find", and input *3 in the right-side "Replacement Keyword List".
This step means: batch replace all instances of *2 in formula expressions with *3.
As seen in the screenshot, the software supports left-right corresponding replacement lists, making it very suitable for handling batch adjustment needs like these:
- Change *2 to *3;
- Uniformly replace a specific function parameter with a new one;
- Batch change old field names or old reference fragments to new syntax;
- Uniformly adjust string concatenation content within formulas.
If your formula modification need falls under "fixed segment replacement", this function is highly efficient.
Step 7: Proceed with subsequent steps and start processing
After completing the option settings, click "Next" at the bottom of the page, follow the software workflow to further configure the save location, and enter the start processing phase.
Although the screenshots mainly focus on the first two steps and the core replacement settings, the top workflow indicates subsequent stages include "Set Save Location" and "Start Processing". After executing the workflow, the software will batch process the imported Excel files.
After processing is complete, it is recommended to randomly open one of the result files and check the formula bar to confirm the formula has changed from =CONCAT(D6*2,E6) to =CONCAT(D6*3,E6), and the result column has changed from 2000g to 3000g.
Why This Method is Suitable for Batch Modifying Excel Formulas
Compared with traditional manual modification, this office software batch processing method has several clear advantages:
- Process multiple files at once: No need to open xls or xlsx tables one by one;
- Targets the formula itself for replacement: Avoids only changing the displayed value, truly completing the formula expression adjustment;
- Reduces repetitive work: Especially suitable for templated reports, periodic data sheets, and batch quotation sheets;
- Lowers error rate: Uniform rule replacement is more stable than manually changing cells one by one;
- Suitable for standardized office workflows: For teams that frequently need to batch-modify formulas, the efficiency improvement is significant.
FAQ / Notes
1. Why must I select "Formula Expression"?
Because you want to modify the formula content, not the result calculated by the formula. For example, 2000g is just the result; what actually needs replacing is the *2 in the formula. If the processing method is chosen incorrectly, the expected result might not be achieved.
2. Why is it recommended to check "Process only cells containing formulas"?
This avoids accidentally modifying plain text or numeric cells, improving replacement accuracy. This restriction is particularly necessary when a workbook contains titles, notes, and result columns simultaneously.
3. Should I confirm consistent formatting before keyword replacement?
Yes. Before batch modifying Excel formulas, it's best to sample and confirm that the target formula syntax is consistent. For example, in this case, the search is for *2. If some formulas are written as * 2 or have a different structure, those parts might not be replaced identically.
4. Is it recommended to back up files before processing?
Yes, it is recommended. Although office software batch processing can significantly reduce manual operations, for important reports, financial statements, and statistical tables, retaining the original files before processing is safer and facilitates comparison of differences before and after.
5. Which Excel formats does this method work for?
From the imported files in the screenshot, the software can handle common Excel files, such as xlsx. In actual office scenarios, it typically also covers xls and other formats, suitable for unified inclusion in a batch processing workflow.
Summary
If you are looking for a way to batch modify formula expressions in Excel cells instead of manually changing cells one by one, using HeSoft Doc Batch Tool is more efficient. Through the "Find and Replace Keywords in Excel" feature, you can first import multiple Excel files in batch, then limit processing to only cells containing formulas, and perform precise replacement based on the "Formula Expression" method, thereby quickly and uniformly changing formula fragments like *2 to *3.
For office workers who frequently handle xlsx or xls tables, or need to batch adjust formula rules, the value of this type of office software is very direct: batch process files, reduce repetitive labor, and improve efficiency. If you currently have a batch of Excel files that need uniform formula modification, it is recommended to follow the steps in this article to first import a set of sample files for testing, confirm the effect, and then batch process the official files.