MID in SoftMaker PlanMaker: Extract Text by Position
Extract substrings from fixed-width codes using start positions and counts.
Verification status: See the evidence and test scope described in this guide. How formula examples are checked
=MID(A2,4,4) returns the expected text 2048 when A2 contains CA-2048-RED. MID takes a section from a specified position. The first character is position 1, and punctuation counts toward that position.
Availability and version history
- Introduced: Documented by PlanMaker 2010; the original introduction version and date remain unknown.
- Availability: Documented in the 2026 manual, with matching ordinary-text examples in 2021 and 2024. No final supported-version endpoint is established.
- Scope: The checked current reference belongs to the 2026/NX manual family. FreeOffice and individual mobile builds remain separately unverified.
- Checked: October 14, 2026, against the official MID reference and versioned sources. Worked results were independently calculated; no native PlanMaker test was performed.
Three explicit arguments
MID(TextString, Start, Count)
The official MID reference requires the source string, starting position and number of characters. Unlike LEFT and RIGHT, its printed syntax has no optional count or documented default. Start identifies the first character to include, rather than the number to skip.
| Formula | Documented result |
|---|---|
=MID("peanut",2,3) |
ean |
=MID("peanut",2,5) |
eanut |
=MID("peanut",2,100) |
eanut |
=MID("peanut",100,100) |
empty text |
The last two examples establish both end-of-string behaviors: an oversized Count stops at the available tail, and a Start beyond the text produces empty text. Neither example establishes what happens with a negative or fractional argument.
The 2010/2021 entries name the first argument Text; the 2024/2026 entries use TextString. The same ordinary-text examples do not establish a change in runtime behavior.
Preserve the five-code worksheet
Create MiddleCodes, reserving A1:K10. Enter Item code, City and Review status in A1:C1 and the following data below. The strings are text; do not convert the serial fields to numbers.
| Row | A: Item code | B: City | C: Review status |
|---|---|---|---|
| 2 | CA-2048-RED | Toronto | Ready |
| 3 | US-0052-BLU | Boston | Hold |
| 4 | CA-0007-GRN | Ottawa | Ready |
| 5 | US-3170-RED | Seattle | Hold |
| 6 | GB-1200-BLK | London | Ready |
Each code has eleven characters. Its first hyphen is position 3; its four serial characters occupy positions 4–7; the second hyphen is position 8. Enter =MID(A2,4,4) in E2 and fill through E6.
| Row | Expected E: middle text |
|---|---|
| 2 | 2048 |
| 3 | 0052 |
| 4 | 0007 |
| 5 | 3170 |
| 6 | 1200 |
The leading zeroes remain characters. Text 0052 is an identifier; numerical 52 is a different representation that may lose information.
Compare position and length choices
Leave the main output intact. Use these separate cells:
| Cell | Formula | Expected result |
|---|---|---|
| G2 | =MID(A2,9,3) |
RED |
| G3 | =MID(A2,9,20) |
RED |
| G4 | =MID(A2,99,3) |
empty text |
| G5 | =MID(A2,3,4) |
-204 |
| G6 | =LEN(A2) |
11 |
G5 deliberately begins one character too early. The incorrect start includes the hyphen and omits the final digit. G4’s blank-looking result is documented empty text, not evidence that its cell lacks a formula.
Add a structural check with a separate result
In I2 enter the following formula and fill through I6:
=IF(AND(LEN(A2)=11,MID(A2,3,1)="-",MID(A2,8,1)="-"),MID(A2,4,4),"Review code")
The expected I2:I6 outputs are 2048,0052,0007,3170,1200, all text. LEN, AND and IF check the stated length and two separators before choosing the output. This does not verify approved country codes, digit-only serials or approved colours.
Create a separate StructureCases sheet with A1:D8, putting Code in A1. Enter the four strings below in A2:A5. Put the same structural formula in C2, still referring to A2, and fill through C5.
| Row | A: Code | Expected C |
|---|---|---|
| 2 | CA2048RED | Review code |
| 3 | CA_2048_RED | Review code |
| 4 | CA-ABCD-RED | ABCD |
| 5 | CA-2048-RED | 2048 |
The first string is too short; the second has underscores in the checked positions. The third passes the structural rule despite containing letters in the middle. This counterexample shows exactly what the check does and does not establish.
Advanced: let delimiters determine the positions
Fixed offsets work only while the field layout stays fixed. Create VariableFields, reserving A1:E7. Put Code, First hyphen, Second hyphen, Middle and Fixed-offset comparison in A1:E1. Enter CAN-7-GRN in A2 and US-0052-BLU in A3.
Enter these formulas in row 2 and fill B2:E2 down to row 3:
B2: =FIND("-",A2)
C2: =FIND("-",A2,B2+1)
D2: =MID(A2,B2+1,C2-B2-1)
E2: =MID(A2,4,4)
| Row | B | C | D: delimiter-based | E: fixed offset |
|---|---|---|---|---|
| 2 | 4 | 6 | 7 | -7-G |
| 3 | 3 | 8 | 0052 | 0052 |
FIND supplies the absolute positions. The middle count is the gap between delimiters minus one. The method still presumes that both hyphens exist; it is not a substitute for checking irregular input.
Troubleshooting and boundaries
Supply all three arguments, count from one, and keep punctuation in your position count. If the source is imported, inspect its actual text before changing the formula: leading spaces, different dash characters and numeric conversion can change the result.
The examples use ASCII strings and positive integer positions/counts. The checked references do not establish error tokens for negative arguments, fractional conversions, Unicode grapheme behavior, or blank/numeric/Boolean coercion. Use the documented tail and out-of-range cases without extending them into an unverified general error table. LEFT and RIGHT are simpler when the desired field is at an end. Confirm localized separators and function names when moving these English formulas to another installation.