REPLACE in SoftMaker PlanMaker 2026: Change Text by Character Position
Use the PlanMaker REPLACE function to edit fixed-position text such as product IDs. Includes exact argument order, reproductions, and a documented Excel compatibility caveat.
Verification status: See the evidence and test scope described in this guide. How formula examples are checked
=REPLACE("CA-2048-RED",4,4,"9999") changes the four-character middle field to produce CA-9999-RED. PlanMaker REPLACE edits by character position. Use SUBSTITUTE when the target is matching text whose position may vary.
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 REPLACE reference and historical sources. Examples were independently calculated; no native PlanMaker execution was performed.
Syntax and the important replacement-length caution
REPLACE(Text, Start, Count, NewText)
All four arguments are required. Text is the original string, Start is the first character position, Count is the number of original characters specified for replacement, and NewText is the replacement string. Positions in the documented examples are one-based.
The official entry has surprising results when the replacement is longer than Count. This guide keeps its practical editing examples to equal-length replacements and preserves the unresolved difference below rather than assuming Excel behavior.
Reproduce the original three product-code edits
On ProductCodes, put Code in A1 and enter these literal text inputs:
| Cell | Text |
|---|---|
| A2 | CA-2048-RED |
| A3 | US-1007-BLU |
| A4 | EU-0099-GRN |
Keep B:G available for outputs. Enter each formula in its specified cell; the B formulas intentionally differ, so do not replace them with one filled formula.
| Cell | Formula | Expected text |
|---|---|---|
| B2 | =REPLACE(A2,4,4,"9999") |
CA-9999-RED |
| C2 | =REPLACE(A2,1,2,"US") |
US-2048-RED |
| D2 | =REPLACE(A2,9,3,"BLU") |
CA-2048-BLU |
| B3 | =REPLACE(A3,9,3,"RED") |
US-1007-RED |
| B4 | =REPLACE(A4,4,4,"0001") |
EU-0001-GRN |
In E2 enter =LEN(A2), F2 =LEN(B2) and G2 =E2=F2. Fill E2:G2 through row 4: E and F are 11, and G is TRUE throughout. Equal length is a useful control but does not prove that the correct characters changed.
For the original nested edit, enter =REPLACE(REPLACE(A2,1,2,"US"),9,3,"BLU") in I2. Expected: US-2048-BLU. Each replacement preserves the width, so the second position still identifies the same field. A2 remains unchanged.
Duplicate ProductCodes as ChangedCode and change only A2 to CA-7788-RED. B2 remains CA-9999-RED; C2 becomes US-7788-RED, D2 CA-7788-BLU, and I2 US-7788-BLU. Masking or replacing a field can deliberately make distinct original identifiers share an output.
Locate a moving prefix without changing the field width
On a separate VariablePrefix worksheet, put CA-2048-RED, CAN-2048-RED and EU-0099-GRN in A2:A4. Enter B2:E2 and fill through row 4:
B2: =FIND("-",A2)
C2: =REPLACE(A2,B2+1,4,"9999")
D2: =REPLACE(A2,4,4,"9999")
E2: =EXACT(C2,D2)
| Row | B | C: located field | D: fixed position | E |
|---|---|---|---|---|
| 2 | 3 | CA-9999-RED | CA-9999-RED | TRUE |
| 3 | 4 | CAN-9999-RED | CAN99998-RED | FALSE |
| 4 | 3 | EU-9999-GRN | EU-9999-GRN | TRUE |
FIND locates the first hyphen; the four-character field remains an explicit assumption. D3 overwrites the hyphen and only three middle digits, leaving the final 8 behind. A missing delimiter, an empty field or a variable-width field needs additional validation. EXACT compares these two outputs without certifying the whole identifier.
Read the vendor’s unequal-length examples carefully
The current reference and 2010 manual, page 580 print these results:
| Formula | Result printed by SoftMaker |
|---|---|
REPLACE("aaaaaa",3,2,"bb") |
aabbaa |
REPLACE("aaaaaa",3,4,"bb") |
aabb |
REPLACE("cccccc",3,2,"dddddddd") |
ccddcc |
REPLACE("cccccc",3,4,"dddddddd") |
ccdddd |
REPLACE("cccccc",3,6,"dddddddd") |
ccdddddd |
The last three use eight replacement characters but do not show all eight in the result. They are documentation observations, not native results from this review. The prose does not fully explain the pattern, and these examples alone do not establish a universal truncation rule.
By comparison, Microsoft’s REPLACE contract replaces the specified original characters with the supplied new text. Applying that model to "cccccc",3,2,"dddddddd" gives ccddddddddcc, independently calculated. This disagreement prevents a blanket compatibility claim. Before relying on unequal lengths in PlanMaker or an exchanged workbook, check the exact installed version with a disposable copy.
Practical limits and formula entry
LEN counts the source and result strings, but a plausible width can still conceal a wrong edit. Preserve the original column and use positions that match the actual input layout.
The short PlanMaker entry does not fully specify zero or negative counts, starts beyond the string, fractional positions, Unicode indexing, mixed-type conversion or exact error tokens. Those limits remain unverified rather than borrowed from another spreadsheet. Examples use English function names, comma separators and straight quotation marks; follow your local editor’s displayed separators when they differ.