Tutorial for Batch Updating Formulas in Multiple XLSX Spreadsheets: Replacing *2 with *3 in Excel Formulas


Translation:EnglishFrançaisDeutschEspañol日本語한국어,Update Time:2026-07-06 06:33:50

Disclaimer: All images, text, and video content on the website are for reference only and may not be the latest, correct, or accurate. In case of any dispute, please refer to the actual experience effect!

When dealing with a large number of xlsx spreadsheets where the same formulas need to be updated uniformly, manually opening each file to make changes one by one is not only inefficient but also risks missing some workbooks. This article, with actual screenshots, demonstrates how to use HeSoft Doc Batch Tool to batch find and replace Excel formula expressions, changing the formula fragment *2 to *3 in bulk, and explains the before-and-after effects, key settings, risk control, and common considerations.

Many businesses, when handling Excel spreadsheets, copy the same template for use in different projects, months, or regions. Once a template is distributed, if calculation rules change later, a very typical problem arises: the formulas need to be updated, but there are too many files. For example, in a product list, the Remark column is automatically generated by a formula. The original formula is =CONCAT(D6*2,E6), and now the multiplier needs to be adjusted from 2 to 3. If you open xlsx files one by one to modify the formula, it is not only time-consuming but also prone to omissions, especially with many worksheets and rows.

This article introduces a processing method more suitable for batch office tasks: using HeSoft Doc Batch Tool to batch find and replace formula expressions in Excel files. It is software designed for batch processing of office files, suitable for performing repetitive operations across multiple documents, such as batch find and replace, format conversion, and file organization. This article focuses on replacing Excel formula expressions, helping you change *2 to *3 across multiple spreadsheets in one go.

Applicable Scenarios: Batch Updating Excel Formula Rules

Batch find and replace is extremely valuable when formula rules are highly consistent. For instance, when multiple sales quote sheets use the same discount coefficient and the discount rule changes; when multiple inventory sheets use the same conversion multiplier and the unit conversion standard changes; when multiple product catalogs use combinations of functions like CONCAT, TEXT, and IF to generate descriptions, and a specific expression segment within the formula needs a unified replacement.

The example in this tutorial replaces *2 with *3 in the formula =CONCAT(D6*2,E6). Although it seems like a small change, the manual effort required amplifies rapidly if this formula is distributed across multiple workbooks, multiple worksheets, and hundreds or thousands of cells. The advantage of a batch processing tool is that users first define the processing scope, formula type, and find-and-replace content, and then the software executes the operation uniformly on the imported Excel files.

This method is suitable for modifying formula fragments in xlsx files and for scenarios requiring a unified update to the calculation logic of Excel templates. It is important to emphasize that batch processing does not mean blind processing; the key is to set conditions properly to ensure that only the intended formula cells are processed.

Effect Preview: Formula Uses *2 as Multiplier Before Processing

Let's look at the spreadsheet before processing. In the screenshot, the Excel file displays a product list, with column F titled Remark. After selecting cell F6, the formula bar shows the formula =CONCAT(D6*2,E6). This formula means: take the value in D6, multiply it by 2, and then concatenate it with the unit in E6 to generate the remark content in column F.

image-Batch replacement of xlsx formulas,modification of formulas in multiple Excel files,Excel find and replace formula expressions,batch processing of table files

Since the value of D6 is 1000 and the unit in E6 is g, F6 displays 2000g. Similarly, when column D is 200, column F displays 400g; when D is 1 and the unit is piece, column F displays 2piece. In other words, the change in the displayed result in column F originates from *2 in the formula. If the business rule requires changing to 3 times, the formula expression must be modified, not just the surface display text.

Effect Preview: Formulas Uniformly Changed to *3 After Processing

After the batch processing is complete, looking at the same Excel spreadsheet again, the expression in the formula bar has changed to =CONCAT(D6*3,E6). The displayed results in column F have also updated accordingly: 1000g now results in 3000g instead of 2000g, 200g results in 600g instead of 400g, and the result for the piece unit changed from 2piece to 3piece.

image-Batch replacement of xlsx formulas,modification of formulas in multiple Excel files,Excel find and replace formula expressions,batch processing of table files

This effect demonstrates that the batch replacement successfully acted on the formula expression itself. This is crucial for users who need to maintain Excel formula templates. Because with the formula retained, whenever data in column D or E changes, column F can still automatically calculate and concatenate based on the new *3 rule.

Operation Steps: Batch Replace Excel Formula Expressions Using the Wizard

The following explains the complete operation idea with the help of software interface screenshots. During the process, pay special attention to several key areas: "Processing Scope," "Formula Type," "Processing Method for Formula Cells," and "Keyword List," as they determine the accuracy of the replacement.

Step 1: Find the Batch Find and Replace Feature in Excel Tools

After opening HeSoft Doc Batch Tool , you can see several office file-related categories on the left, including Word Tools, Excel Tools, PowerPoint Tools, PDF Tools, Text Tools, etc. Since the current processing target is an Excel spreadsheet, you first need to enter "Excel Tools." In the function list on the right, select "Find and Replace Keywords in Excel."

image-Batch replacement of xlsx formulas,modification of formulas in multiple Excel files,Excel find and replace formula expressions,batch processing of table files

Although the function name mentions "Keywords," as you will see from the subsequent settings, it can handle not only regular cell text but also process formula expressions in cells containing formulas. This example takes advantage of this point to batch replace *2 in formulas with *3.

Step 2: Import the Excel Files to be Processed

After entering the function, the interface displays the process steps, the first being "Select records to process." The top right corner provides "Add Files" and "Import Files from Folder." If the number of Excel files to process is small, you can add them directly; if these xlsx files are all located in the same folder, importing from the folder is more convenient.

image-Batch replacement of xlsx formulas,modification of formulas in multiple Excel files,Excel find and replace formula expressions,batch processing of table files

The screenshot shows that four files—1.xlsx, 2.xlsx, 3.xlsx, and 4.xlsx—have already been imported, displaying information like path, extension, creation time, and modification time. After importing, it's recommended to check the file list to confirm no files are missing and no unnecessary spreadsheets were added by mistake. For operations like batch formula modification, this pre-check is essential as it directly determines which files will be affected later.

Step 3: Select Cell Text as the Processing Scope

Click "Next" to enter "Set Processing Options." In the "Processing Scope" area, check "Cell Text." This example does not check the worksheet Sheet name or the text on shapes within the worksheet, as our goal is the formula content in cells.

If your Excel files also contain worksheet names or shape texts that need replacing, you can select them based on the actual situation. However, for the formula expression replacement discussed in this tutorial, keeping the processing scope focused on cell text is safer and helps reduce unintended modifications to irrelevant content.

Step 4: Process Only Cells Containing Formulas

In "Cell Formula Types to Process," select "Process only cells containing formulas." This is the core limiting condition for this operation. Excel files can contain normal text, numbers, dates, boolean values, and formulas simultaneously. Without distinguishing types, a batch replacement might affect content that should not be changed.

By selecting to process only cells containing formulas, the software limits the processing targets to formula cells, better meeting the requirement of "batch replacing Excel formula expressions." This option is selected in the screenshot, indicating that this example will not treat regular text cells as primary processing targets.

Step 5: Set the Processing Method for Cells with Formulas to Formula Expression

In "Processing Method for Cells Containing Formulas," select "Formula Expression." This setting determines that the software inspects and replaces the content in the formula bar, such as =CONCAT(D6*2,E6), rather than the result displayed in the cell after formula calculation, like 2000g.

image-Batch replacement of xlsx formulas,modification of formulas in multiple Excel files,Excel find and replace formula expressions,batch processing of table files

If your goal is to modify the calculation logic, you must select Formula Expression. Otherwise, even if the surface display content changes, the formula itself might still follow the old rule and revert to the old result upon refresh or recalculation. The post-processing screenshot can show that the formula bar has become =CONCAT(D6*3,E6) precisely because Formula Expression was chosen as the replacement target.

Step 6: Enter the Find Keyword and Replace Keyword

In "Set Keyword Options," select "Precise text search" as the find method. Then, enter *2 in the "Keyword list to find" and *3 in the "Replacement keyword list." With this setup, the software will replace any occurrence of *2 with *3 within the eligible formula expressions.

The asterisk in this example is the multiplication symbol in the Excel formula, so ensure your input matches the formula's syntax exactly. For a formula like =CONCAT(D6*2,E6), searching for *2 accurately targets the multiplier fragment. If your actual formulas contain spaces, like D6 * 2, then the search content must also be adjusted to match the real formula syntax.

Step 7: Continue to Set Save Location and Start Processing

After completing the keyword settings, click "Next" at the bottom. The interface flow shows subsequent steps for "Set Save Location" and "Start Processing." It is recommended to save the processed files to a new output directory and avoid overwriting the original files on the first try. This way, even if you find the rule settings do not meet expectations, you can go back to the original files and reprocess them.

After starting the process, wait for the software to complete the batch replacement. Once done, open the Excel files in the output directory and spot-check a few typical cells: first, verify if the formula bar changed from =CONCAT(D6*2,E6) to =CONCAT(D6*3,E6); second, check if the displayed results changed from 2000g, 400g, 2piece to 3000g, 600g, 3piece. After confirming no errors, you can use the processed results for official work.

Common Questions and Precautions

1. Why is it recommended to back up original files before batch replacement?

Batch processing characteristically affects multiple files at once; efficiency is high, but so is the impact scope. Especially since formula expressions directly relate to calculation results, an incorrectly set search condition could cause unexpected changes across a batch of files simultaneously. Therefore, it's best to make a copy of the original files before formal processing, or save the output results to a new folder.

2. Will searching for *2 accidentally modify other formulas?

If other formulas also contain *2, and those formula cells meet the current processing conditions, they might be replaced. Consequently, before batch processing, you must judge whether the formula rules are consistent across the files. If you only want to process specific areas, the screenshot also shows switches related to worksheet names and column name conditions, though this example didn't expand on their use. In actual operation, you should set conditions carefully based on the options provided in the interface.

3. Why do the displayed results change automatically after processing?

Because the displayed results come from formula calculation. Once the formula changes from D6*2 to D6*3, the cell display results will present the new formula's outcome whenever Excel recalculates or refreshes upon opening the file. So in this example, 2000g becoming 3000g is not a direct text replacement of "2000g," but the result of the changed formula logic.

4. What if the formula syntax is not completely consistent?

If formulas across different files are written as D6*2 in some, D6 * 2 in others, or use different cell references, a single keyword might not cover all cases. You can first sample formula syntax, and if necessary, process in batches with different find-and-replace content sets. This is safer than using overly broad conditions in one go.

5. Can this be used for docx, doc, or PDF files?

This article discusses formula expression replacement in Excel files, and the screenshots use Excel Tools. Word docx, doc documents, or PDF files typically do not have "Excel formula expressions" as a processing target; the corresponding Word Tools or PDF Tools should be used instead. The entry points for batch processing differ by file type, so you should select the correct category before operating.

Summary: Transforming Batch Excel Formula Updates from Repetitive Labor into a Batch Operation

Batch finding and replacing Excel formula expressions is suitable for solving the problem of unified rule changes across multiple xlsx spreadsheets. This article's example used HeSoft Doc Batch Tool to batch replace *2 with *3 in formulas, and verified the effect through before-and-after screenshots: the formula bar updated from =CONCAT(D6*2,E6) to =CONCAT(D6*3,E6), and the displayed results updated from 2000g, 400g, 2piece to 3000g, 600g, 3piece.

Compared to manually modifying files one by one, a batch processing tool can significantly reduce repetitive labor and increase office efficiency. It's recommended that before processing a large number of Excel files, you first import a small sample for testing to confirm the processing scope, formula type, and replacement content are correct, then batch process all files. For users who often maintain spreadsheet templates, reports, product lists, and statistical files, this is a more stable and efficient method for batch processing Excel files.


Keyword:Batch replacement of xlsx formulas , modification of formulas in multiple Excel files , Excel find and replace formula expressions , batch processing of table files
Creation Time:2026-07-06 06:33:34

Disclaimer: All images, text, and video content on the website are for reference only and may not be the latest, correct, or accurate. In case of any dispute, please refer to the actual experience effect!

Related Articles

Don't see the feature you want?

Provide us with your feedback, and after evaluation, we will implement it for free!