SUBSTITUTE in SoftMaker PlanMaker 2026: Replace Matching Text
Learn to replace all or one occurrence of text in PlanMaker with SUBSTITUTE, including case sensitivity, sample cell data, and troubleshooting.
Verification status: See the evidence and test scope described in this guide. How formula examples are checked
=SUBSTITUTE("CA-2026-RED-RED","RED","BLUE") changes both uppercase matches to produce CA-2026-BLUE-BLUE. Add the fourth argument to choose one occurrence. PlanMaker documents case-sensitive matching, so lowercase red is a different target.
Availability and version history
- Introduced: Documented by PlanMaker 2010; the original introduction release and date remain unknown.
- Availability: Documented in PlanMaker 2026 and the checked 2021/2024 entries; no final supported-version endpoint is established.
- Scope: Current reference belongs to the PlanMaker 2026/NX manual family. FreeOffice and individual mobile builds remain separately unverified.
- Checked: October 14, 2026, against the official SUBSTITUTE reference and historical sources. Examples were independently calculated; no native PlanMaker execution was performed.
Syntax and the optional occurrence
SUBSTITUTE(Text, OldText, NewText [, n])
Text, OldText and NewText are required. The optional n chooses which occurrence to replace; omitting it replaces every matching occurrence. The brackets mark optional syntax, not punctuation to enter. See the direct function reference.
An occurrence number counts matches within one string, not rows or individual characters. REPLACE instead selects characters by starting position and count. This distinction matters when an identifier’s prefix moves or when a replacement changes its length.
Keep the four original product strings intact
Create ProductText with Product ID in A1 and the following text in A2:A5. Keep B:G available for results.
| Cell | Text |
|---|---|
| A2 | CA-2026-RED-RED |
| A3 | EU-009-RED |
| A4 | CA-2026-red |
| A5 | CA–2026–RED |
Enter the individual formulas below. The B formulas differ intentionally; do not fill B2 over the other cases.
| Cell | Formula | Expected text |
|---|---|---|
| B2 | =SUBSTITUTE(A2,"RED","BLUE") |
CA-2026-BLUE-BLUE |
| C2 | =SUBSTITUTE(A2,"RED","BLUE",2) |
CA-2026-RED-BLUE |
| D2 | =SUBSTITUTE(A2,"RED","BLUE",1) |
CA-2026-BLUE-RED |
| B3 | =SUBSTITUTE(A3,"RED","BLU") |
EU-009-BLU |
| B4 | =SUBSTITUTE(A4,"RED","BLUE") |
CA-2026-red |
| B5 | =SUBSTITUTE(A5,"--","-") |
CA-2026-RED |
E2 =LEN(A2), F2 =LEN(B2) and G2 =F2-E2 filled through row 5 give:
| Row | E: original length | F: result length | G: change |
|---|---|---|---|
| 2 | 15 | 17 | 2 |
| 3 | 10 | 10 | 0 |
| 4 | 11 | 11 | 0 |
| 5 | 13 | 11 | -2 |
Row 2 grows by two characters because two three-character matches become four-character replacements. Row 4 does not change because the target’s case differs. Row 5 shortens two separate double hyphens; it does not prove behavior for every overlapping delimiter pattern.
Duplicate ProductText as ChangedCase and change only A4 to CA-2026-RED. B4 now becomes CA-2026-BLUE, and E4:F4 become 11,12. The replacement followed the literal case change, not a change in the formula.
Reproduce the direct examples and a selected match
On LiteralSubstitutions, enter these formulas in A2:A5:
| Cell | Formula | Expected text |
|---|---|---|
| A2 | =SUBSTITUTE("aabbaabb","aa","xx") |
xxbbxxbb |
| A3 | =SUBSTITUTE("aabbaabb","aa","xx",2) |
aabbxxbb |
| A4 | =SUBSTITUTE("aabbaabb","AA","xx") |
aabbaabb |
| A5 | =SUBSTITUTE("RED/RED/RED","RED","BLUE",2) |
RED/BLUE/RED |
The first three are SoftMaker’s examples. The fourth uses the same selected-occurrence rule. Put =LEN(A2) in B2 and fill through B5: expected lengths are 8,8,8,12.
Advanced: inspect a cleanup pipeline before nesting it
On CleanupOrder, put CA–2026–RED in A2 and EU–009–GRN in A3. Enter B2:F2 and fill to row 3:
B2: =SUBSTITUTE(A2,"--","-")
C2: =SUBSTITUTE(B2,"-","/")
D2: =SUBSTITUTE(A2,"-","/")
E2: =SUBSTITUTE(D2,"--","-")
F2: =EXACT(C2,E2)
| Row | B | C: collapse then replace | D and E: reverse order | F |
|---|---|---|---|---|
| 2 | CA-2026-RED | CA/2026/RED | CA//2026//RED | FALSE |
| 3 | EU-009-GRN | EU/009/GRN | EU//009//GRN | FALSE |
The reverse order removes the hyphens before the collapse step can find them. C2 is also the result of the original nested expression =SUBSTITUTE(SUBSTITUTE(A2,"--","-"),"-","/"), entered separately in H2. EXACT makes the pipeline difference visible.
To retain the original prefix-removal example without changing ProductText, put CA-2026-RED-RED in A2 on RemoveToken, then enter =SUBSTITUTE(A2,"CA-","") in B2. The expected result is 2026-RED-RED. This is a composition-derived empty-replacement expectation, not a separately illustrated native vendor case. A3 CA-2026-CA-RED with the same formula filled to B3 gives 2026-RED: the operation removes all matching tokens, not only a prefix. Use a different validated rule if only an initial token may be removed.
Limits and portability
The current and historical entries agree on case sensitivity and the omitted-n rule. They do not provide complete behavior for empty searches, zero/negative/fractional or excessive occurrence numbers, overlapping matches, maximum string size or exact error tokens. Do not promote those unknown cases into guarantees based on a same-named function elsewhere.
LEN helps check changes in width, but neither width nor successful literal replacement validates a complete product ID. Keep originals when cleanup can merge distinct records. Use the English manual’s comma syntax or the separators displayed by your local formula editor; punctuation inside the quoted search and replacement text remains part of the data.