RIGHT Function in Collabora Office Calc: Formula, Examples & Troubleshooting
Learn the RIGHT formula in Collabora Office Calc: extract characters from the end of a text value, with reproducible examples, expected answers and compatibility cautions.
Verification status: See the evidence and test scope described in this guide. How formula examples are checked
Quick answer: RIGHT extracts characters from the end of text. =RIGHT("Invoice-482";3) is expected to return 482 as text. It is useful for fixed-width suffixes and for removing a known prefix when the remaining length varies.
Availability and version history
- Introduced: the original Collabora release and launch date are not established by the sources reviewed.
- Availability: documented in the Collabora Office 26.04 RIGHT reference. This supports the desktop-help release scope, without inferring all online or mobile deployments.
- Platform scope: verify the installed product and its formula settings before moving a workbook between clients.
- Checked: October 14, 2026. Dedicated product documentation and independent example calculations; no native Collabora execution was performed.
Syntax and the omitted count
=RIGHT(text; [number])
text is the source string and number is the count taken from its right-hand end. Collabora’s function-specific reference documents a default of one character if the count is omitted. Optional-argument brackets are explanatory and are not typed into an ordinary formula.
These examples use English names and semicolon separators. Keep literal strings inside quotation marks. Place formulas in unused cells so the source text remains available for comparison.
Example 1: check the original suffix examples
=RIGHT("Invoice-482";3)
=RIGHT("PN-8004";4)
Expected results: 482 and 8004. The hyphens are outside the selected final three and four characters, so they do not appear in the results.
The returned digits are text. If the field is an identifier rather than a quantity, retaining it as text is generally the intended outcome. A later conversion to a number can discard meaningful leading zeroes.
Example 2: preserve leading zeroes in a suffix
Enter TAG-0042, ITEM-0718 and REF-9001 in A2:A4. Enter and fill down:
=RIGHT(A2;4)
Expected results: 0042, 0718, 9001. Every source has a four-character suffix even though the prefix lengths differ.
Use LEN on the extracted values to check the intended width: =LEN(B2) should return 4 if B2 contains the first result. A label ending with a space would produce a different four-character result because RIGHT counts the actual string, not the trimmed display.
Do not use this rule for variable-width serials. With TAG-42, the final four characters are G-42, not 42. A successful formula can still implement the wrong parsing rule.
Example 3: inspect the final character
=RIGHT("ABC")
=RIGHT("ABC ")
Expected results: C and a single space. The documented one-character default can help locate a trailing separator, but it does not remove it automatically.
If you discover trailing spaces, first decide whether the import specification permits changing them. An invisible difference can be meaningful in some keys. Retain the raw column while testing any cleanup step.
Advanced example: remove a known five-character prefix
Suppose a feed always begins each label with **Ref: **, including the space after the colon. Enter Ref: 0042, Ref: 718, and Ref: NORTH-9 in D2:D4. In E2 enter and fill down:
=RIGHT(D2;LEN(D2)-5)
Expected E2:E4: 0042, 718, NORTH-9. The total length minus the known prefix width gives the count to keep. The final field can vary in length without changing the formula.
This expression assumes that the five-character prefix exists exactly as stated. It does not search for a colon. A source such as Ref:0042, missing the space, would lose the first digit under this rule. Validate the prefix before applying the extraction to unfamiliar data.
For the first example, combine =LEFT(D2;5)&E2 to reconstruct Ref: 0042. LEFT extracts the prefix. This control checks the character partition, but separate validation is still needed to confirm that the prefix is the required one.
Advanced example: combine prefix and suffix checks
For ITEM-0718 in A3, =LEFT(A3;4)&"/"&RIGHT(A3;4) is expected to return ITEM/0718. The explicit slash is newly inserted; RIGHT itself does not add separators or interpret the original hyphen.
Reformatting a label is useful for presentation, but it is not secure redaction. The original source remains in the workbook. Likewise, replacing a display string does not change the stored source value unless you explicitly overwrite it.
Boundaries and troubleshooting
The dedicated help documents the extraction rule and one-character default. Negative counts, huge strings and Unicode character-boundary cases have not been natively tested for this article. Keep such cases in the target deployment’s test set instead of assuming that every spreadsheet uses identical character-counting rules.
For ordinary labels, check suffix width, trailing whitespace and whether the source is truly text. A numeric cell displayed with a custom four-digit format may not contain four stored characters. Use a controlled text input when exact identifiers matter.
Use MID when the desired field is in the middle rather than at the right edge. Choose the function from the input structure, not merely from a result that happened to work for one row.
Cross-program references and verification
Related guides already published for this function: Microsoft Excel | Google Sheets | WPS Spreadsheet | LibreOffice Calc | Apache OpenOffice Calc
These are separate product guides. Similar function names do not establish identical edge cases, version histories or Unicode behavior.
Evidence level: Full manuscript checked against the direct Collabora reference. Original examples are retained and additional results are independently calculated. No native application test, unsupported release range or borrowed LibreOffice lifecycle is claimed.