Contact

RIGHT Function in WPS Spreadsheet: Formula, Examples & Troubleshooting

Text Beginner WPS Spreadsheet

Learn the RIGHT formula in WPS Spreadsheet: 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 a text string. =RIGHT("Invoice-482",3) is expected to return 482 as text. An omitted character count defaults to one.

Availability and version history

  • Introduced: documented by 2019-05-27 in the official WPS lesson; original introduction is not established.
  • Availability: WPS Office for Windows Personal; no numeric release is stated. This is documentation evidence, not a guarantee for a particular installed build.
  • Scope: current supported build limits remain unverified. The Windows lesson does not establish equivalent support in other WPS clients.
  • Checked: October 14, 2026. Function-specific documentation and independent example calculations; no new native WPS test was performed.

Syntax and input choices

=RIGHT(text, [num_chars])

text is the source string or cell reference. The optional num_chars specifies how many trailing characters to return. Do not type the square brackets. The official WPS lesson requires a nonnegative count, defaults an omitted count to one and returns the whole string when the requested count exceeds its length.

Use nonnegative whole numbers in the examples. Characters are counted from the actual string, not from the cell’s displayed width. A trailing space is therefore part of the suffix.

Original worked example: invoice digits

=RIGHT("Invoice-482",3)

Expected result: 482. The returned value is a three-character text string. It looks numeric, but its role here is an invoice suffix rather than an amount to total.

The second original example is:

=RIGHT("PN-8004",4)

Expected result: 8004. Four trailing characters are extracted. Use a separate numeric conversion only when the result genuinely represents a number, rather than an identifier whose leading zeros matter.

Example 3: preserve leading zeros in extracted IDs

Enter A2:A4 and put =RIGHT(A2,4) in B2, then fill down:

Cell Source text Expected suffix
A2 BOX-0042 0042
A3 BOX-0187 0187
A4 BOX-9001 9001

The output preserves the zeros because they are characters in the source text. If the original was already imported as a number and lost its zeros, RIGHT cannot determine how many were originally present.

For product identifiers, keep the raw input as text and retain it beside the extraction. Numeric formatting that displays zeros is a presentation rule, not proof of the original identifier’s spelling.

Boundary examples

Formula Expected result
=RIGHT("ABCDE") E
=RIGHT("ABCDE",0) Empty text
=RIGHT("ABCDE",2) DE
=RIGHT("ABCDE",20) ABCDE
=RIGHT("AB ",1) One ordinary space

A zero count returns empty text. The last example returns a space rather than B because the source has a trailing space. Inspect LEN when a result appears blank or one character off.

Advanced example: remove a fixed prefix

Put REF-0007 in D2. The prefix REF- occupies four characters. To return everything after that fixed prefix:

=RIGHT(D2,LEN(D2)-4)

Expected result: 0007. The source length is eight; requesting the last four characters removes the four-character prefix.

This method permits the remaining field to vary in length while the prefix length stays fixed. For REF-12345, the expected result is 12345. It does not verify that the prefix actually equals REF-.

Guard against short inputs before subtracting:

=IF(LEN(D2)>4,RIGHT(D2,LEN(D2)-4),"Review length")

For REF-, the expected result is Review length, because this particular rule requires a nonempty suffix. A different requirement could accept empty text, but that should be an explicit choice.

Advanced example: extract a final field after layout validation

Suppose every approved code follows BOX-NNNN-RR, such as BOX-0042-CA. A minimal length check before taking the final region is:

=IF(LEN(A2)=11,RIGHT(A2,2),"Review length")

For BOX-0042-CA, the expected result is CA. For BOX-42-CA, it is Review length. The check prevents a shortened record from being accepted solely because it has a plausible-looking final two characters.

Length does not verify the prefix or permitted region codes. Use separate checks for those rules and keep the original record available for review.

Troubleshooting and portability

Do not apply TRIM automatically just to make an extraction pass. Spaces may be meaningful in a fixed-width field. If cleanup is permitted, record it as a distinct transformation and compare the before-and-after strings.

These examples use ASCII text and do not establish Unicode grapheme or byte-counting behavior across WPS platforms. The supported build range remains unverified even though the Windows Personal function is documented. Test the same normal, short and malformed records in the actual workbook before depending on an imported formula.

Use LEFT for a prefix or MID for a field that begins at a known interior position. Each choice describes where to extract; none determines whether the extracted result is authoritative data.

Cross-program references and verification

Related guides already published for this function: Microsoft Excel | Google Sheets | LibreOffice Calc | Apache OpenOffice Calc | Gnumeric

These are separate guides, not a guarantee of identical behavior across products. Compare the actual version, locale and input types when moving a workbook.

Evidence level: The full article was reviewed against the function-specific lesson and its stated platform scope. Original worked examples were preserved and additional outputs checked independently. No native execution in WPS Spreadsheet or unverified version guarantee is claimed.