LEFT in SoftMaker PlanMaker: Extract Leading Text
Read the first characters of item codes and use LEFT for regional prefixes.
Verification status: See the evidence and test scope described in this guide. How formula examples are checked
=LEFT(A2,2) returns the expected text CA when A2 contains CA-2048-RED. LEFT takes characters from the beginning of a string. Omitting its optional count returns the first character, so =LEFT(A2) gives C.
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 LEFT reference and versioned sources. Worked results were independently calculated; no native PlanMaker test was performed.
Syntax and the default count
LEFT(TextString [, n])
The official LEFT reference requires the source text and makes n optional. The count is a number of characters, not words or fields. Its documented default is one character. Square brackets describe optional syntax; do not type them in the formula.
The vendor examples are =LEFT("peanut",3) → pea and =LEFT("peanut") → p. The 2010/2021 documentation calls the first argument Text, while the 2024/2026 entries call it TextString. The example outputs agree; the placeholder change alone does not prove a functional change.
Enter the practice data
Create PrefixCodes, reserving A1:K10. Put Item code, City and Review status in A1:C1, then enter the following values without the formatting marks:
| 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 contains eleven ASCII characters. The internal zeroes are part of the text identifier. Keep A:C unchanged; the outputs belong in E onward.
In E2 enter =LEFT(A2,2) and fill to E6. In F2 enter =LEFT(A2) and fill to F6. In G2 enter =LEFT(A2,3) and fill to G6.
| Row | E: first two | F: default count | G: first three |
|---|---|---|---|
| 2 | CA | C | CA- |
| 3 | US | U | US- |
| 4 | CA | C | CA- |
| 5 | US | U | US- |
| 6 | GB | G | GB- |
The third character is the hyphen. LEFT does not automatically remove it because it looks like a separator. A count of two and a count of three answer different questions.
Categorize prefixes without overwriting the extraction
Put this formula in I2 and fill through I6:
=IF(LEFT(A2,2)="CA","Canada","Other")
The expected labels are Canada, Other, Canada, Other, Other. This is a simple prefix classification; the City and Review status columns are not inputs to the formula.
For the stricter prefix-and-suffix label, put this formula in K2 and fill through K6:
=IF(AND(LEFT(A2,2)="CA",RIGHT(A2,3)="RED"),"Canadian red","Other")
The expected labels are Canadian red, Other, Other, Other, Other. Row 4 has a Canadian prefix but a GRN suffix, so it does not meet both conditions. IF selects the label, AND combines the conditions, and RIGHT extracts the suffix. Both label branches are supplied explicitly.
Advanced: distinguish a prefix from a valid field
A code can begin with CA without having CA as its complete first field. Create PrefixBoundary, using A1:F7. Enter these strings in A2:A5:
| Row | A: Candidate |
|---|---|
| 2 | CA-2048-RED |
| 3 | CAB-2048-RED |
| 4 | CA2048RED |
| 5 | CA-ABCD-RED |
In C2 enter =LEFT(A2,2)="CA". In D2 enter =AND(LEFT(A2,2)="CA",MID(A2,3,1)="-"). Fill both formulas through row 5.
| Row | C: prefix only | D: prefix followed by hyphen |
|---|---|---|
| 2 | TRUE | TRUE |
| 3 | TRUE | FALSE |
| 4 | TRUE | FALSE |
| 5 | TRUE | TRUE |
MID checks the third character without changing the prefix extraction. The second rule rejects the longer CAB field and the missing separator. It still accepts CA-ABCD-RED, because it does not validate the middle field as digits. A successful prefix test is one part of a validation rule, not evidence that the entire identifier is valid.
Spaces, direction and practical limits
On a separate LeadingSpace sheet, enter =" CA-2048-RED" in A2, including the one space inside the quotes. Put =LEFT(A2,2) in B2 and =LEFT(A2,3) in C2. The expected texts are space+C and space+CA. The source text has not been trimmed automatically; the leading space consumes one of the requested characters.
Use RIGHT for the other end, or MID for an interior field. In the original worksheet, =MID(A3,4,4) extracts text 0052, whereas LEFT cannot skip the US- prefix by itself.
The short LEFT entry does not specify exact outcomes for zero, negative, fractional or oversized counts, or coercion of empty, numeric or logical source cells. Keep those cases separate from the documented default. These demonstrations use text and positive whole-number counts within the source length. Unicode characters may involve more than one code unit or visual mark; no special Unicode counting rule is established here. Verify localized names and separators in the target installation rather than assuming every workbook uses the English comma syntax.