This how-to guide includes 3 task topics: entering a basic SUBSTITUTE formula, replacing a specified occurrence, and combining SUBSTITUTE with other formulas.
How-to Index
| No. | Topic | Membership Requirement |
|---|---|---|
| 1 | 1. Enter a basic SUBSTITUTE formula | Free |
| 2 | 2. Replace text by occurrence number | Free |
| 3 | 3. Combine SUBSTITUTE with other formulas | Free |
How-to Guide
1. Enter a basic SUBSTITUTE formula
Entry point: Select the target cell, then type the formula in the formula bar or directly in the cell.
- Open WPS Spreadsheet and go to the cell where you want the result to appear.
- Enter
=SUBSTITUTE(original_text, old_text, new_text). - Press Enter to confirm the formula.
- Check whether the returned result has replaced the target text with the new text.
Success Criteria
- The cell returns the updated text result.
- The full SUBSTITUTE formula is visible in the formula bar.
Tips While Using
- Text arguments usually need to be enclosed in double quotation marks.
- If the source text is already in a cell, use the cell reference instead of typing the full text manually.
2. Replace text by occurrence number
Entry point: Add the fourth argument to the SUBSTITUTE formula.
- Select the result cell and start entering the formula.
- Use the format
=SUBSTITUTE(original_text, old_text, new_text, occurrence_number)and add the fourth argument. - Press Enter to run the formula.
- Check whether only the specified occurrence has been replaced.
Success Criteria
- Only the target occurrence is replaced.
- Other matching text remains unchanged.
Tips While Using
- The fourth argument means which occurrence to replace, not how many replacements to make.
- If the specified occurrence number is greater than the number of actual matches, the result usually stays unchanged.
3. Combine SUBSTITUTE with other formulas
Entry point: Enter a nested formula in the formula bar.
- Decide whether text replacement should happen before or after the other text operation.
- Enter a combined formula that includes SUBSTITUTE in the target cell.
- Press Enter to calculate the result.
- Fill down or copy the formula to other cells as needed.
Success Criteria
- The result reflects both the text replacement and the additional formula logic.
- After filling down, different rows calculate automatically based on their references.
Tips While Using
- If the combined formula is long, test the SUBSTITUTE part first.
- Before copying the formula, check whether relative and absolute references are set as expected.