RIGHT Function in Apple Numbers: Extract a Text Suffix
Extract suffixes from text with RIGHT in Apple Numbers, including last characters, variable-length labels and troubleshooting.
Verification status: See the evidence and test scope described in this guide. How formula examples are checked
RIGHT returns text from the end of a value. In CA-2048-R1, =RIGHT(A2,2) extracts R1. Omitting the optional length retrieves the last single character, 1, rather than the whole revision label.
Availability and version history
- Introduced: Documented in Apple’s Formulas and Functions Help 15.4; the original introduction release is not established.
- Availability: Currently documented in Apple’s Formulas and Functions Help 15.4 edition; this is not a Numbers app version or a final supported-version endpoint.
- Scope: Shared iWork function help. Availability in individual clients and older releases is not established by this check.
- Checked: October 14, 2026, against the official RIGHT reference. Official documentation and independent string checks; no native Numbers execution.
Syntax, default and whole-string behavior
RIGHT(source-string, string-length)
The source is required and can be any value. The optional numeric length must be at least 1. A length at least as large as the source returns the complete string. Apple’s RIGHT reference illustrates both the one-character default and a numeric source producing a text result.
RIGHT(606,2) returns text 06, preserving the zero within the selected suffix. It does not produce the number 6. The zero-length case is outside Apple’s stated bounds, so RIGHT(A2,0) is not used as an empty-result shortcut.
Set up the original SKU example
Create Catalog, a Numbers table with seven columns A:G and six rows, including one header row. Set A2:A6 to Text and enter the following codes without enclosing quotation characters. Keep the original table unchanged when trying later scenarios.
| Row | A — SKU |
|---|---|
| 2 | CA-2048-R1 |
| 3 | US-7312-R2 |
| 4 | CA-0097-R3 |
| 5 | UK-6005-R1 |
| 6 | US-0120-R3 |
These codes have a two-letter prefix, a four-character identifier and a two-character revision, separated by hyphens. That is an explicit input convention, not a rule imposed by the function. Keeping the entire code as text preserves 0097 and 0120 for later extraction.
Retrieve revisions and compare the omitted argument
Put =RIGHT(A2,2) in B2 and fill through B6. The results are R1, R2, R3, R1, R3. They are revision labels because these particular inputs follow that convention.
In C2 enter =RIGHT(A2) and fill through C6 for 1,2,3,1,3, all text. D2 =LEN(B2) filled through D6 gives 2. E2 =ISTEXT(B2) filled through E6 is TRUE.
In F2 enter =FIND("-",A2,FIND("-",A2)+1) and fill through F6 for 8. G2 =LEN(A2)-F2 filled through G6 gives 2, independently showing how many characters lie after the second hyphen.
Reproduce literal controls without overwriting Catalog
Create SuffixControls, with four columns and five rows. Enter these formulas in A2:A4:
=RIGHT("one two three",2)returns ee.=RIGHT("abc")returns c.=RIGHT(606,2)returns text 06.
B2 =ISTEXT(A2) filled through B4 is TRUE. In C2 put =RIGHT("Catalog",20) for Catalog; D2 =LEN(C2) gives 7. A request larger than the input returns the available string without padding.
Advanced: revisions with two or three characters
Create VariableRevisions, with seven columns and five rows. Put these text codes in A2:A5:
| Row | Code | Length | Second hyphen | Suffix length | Delimited suffix | Fixed last two |
|---|---|---|---|---|---|---|
| 2 | CA-2048-R1 |
10 | 8 | 2 | R1 |
R1 |
| 3 | CA-2048-R10 |
11 | 8 | 3 | R10 |
10 |
| 4 | C-7-R3 |
6 | 4 | 2 | R3 |
R3 |
| 5 | GLOBAL-0097-R12 |
15 | 12 | 3 | R12 |
12 |
Use B2 =LEN(A2), C2 =FIND("-",A2,FIND("-",A2)+1), D2 =B2-C2, E2 =RIGHT(A2,D2), F2 =RIGHT(A2,2) and G2 =LEN(E2). Fill B2:G2 through row 5. G reproduces D’s lengths.
The original compact form is equivalent to E2:
=RIGHT(A2,LEN(A2)-FIND("-",A2,FIND("-",A2)+1))
The second hyphen is the last delimiter only under the stated exactly two hyphens convention. The formula finds the second occurrence, not an arbitrary final occurrence in every possible string.
A changed input can preserve a plausible but wrong suffix
Copy VariableRevisions as ExtraSuffix and change only A2 to CA-2048-R1-ARCHIVE. B2 becomes 18, C2 stays 8, D2/G2 become 10, E2 becomes R1-ARCHIVE, and F2 becomes VE. Neither result is the original revision R1. More delimiters require a different extraction rule or source validation.
On another copy named TrailingSpace, start from the original VariableRevisions and append one actual space to A2, making CA-2048-R1 . B2 becomes 11, D2/G2 become 3, E2 contains R1 followed by one space, and F2 contains 1 followed by one space. The second delimiter has not moved; the end of the source has.
These copies keep the original results available for comparison. A result that looks similar on screen can still contain an additional character, so inspect its length as well as its display.
Practical limits and related functions
A missing second delimiter prevents this boundary calculation. A suffix with no characters after the delimiter calculates zero length, outside RIGHT’s documented minimum. Validate those conditions instead of interpreting every blank-looking result as a valid revision.
LEFT extracts a prefix and MID takes an internal segment. FIND locates delimiters, while TEXTAFTER offers a different delimiter-oriented interface. Changing the function name does not remove the need to define the input structure.
Input boundaries and portability
The exercises use ordinary ASCII identifiers with explicitly positioned spaces. Apple’s LEN reference counts graphemes, including spaces and special characters. Do not replace that contract with a byte count or extrapolate these examples to every Unicode sequence.
The references are local to the table containing each formula. English examples use commas between arguments; Apple’s syntax guidance specifies semicolons when the decimal separator is a comma. Similar function names in other spreadsheet programs do not establish identical argument bounds, error labels, imports or reference notation.
Exact error presentation, fractional arguments, empty inputs and custom-formatted numeric conversions beyond Apple’s explicit examples remain unverified. Preserve meaningful spaces and leading zeros rather than applying cleanup or numeric conversion automatically.