Syntax, a live playground, a measured position gallery, the negative-count trap, and a sourced error library: extracting text from the right.
Returns the last num_chars characters of text. It mirrors LEFT: negative counts are #VALUE!, zero returns empty.
RIGHT returns the last num_chars characters of a text string, counting back from the end. It mirrors LEFT exactly. Every row was measured live in HyperFormula. Click any row to load it.
| Expression | Result | Why |
|---|---|---|
| =RIGHT(A2,3) | cel | Last 3 of Excel |
| =RIGHT(A2) | l | Omitted num_chars defaults to 1 |
| =RIGHT(A2,10) | Excel | Longer than the text: whole string |
| =RIGHT(A3,4) | mula | Last 4 of Formula |
| =RIGHT(A4,2) | up | Last 2 of Lookup |
| =RIGHT("Hello",2) | lo | Works on a literal |
| =RIGHT(A2,2.9) | el | Decimal truncated to 2 |
| =RIGHT(A5,1) | b | Last character of Lab |
| Expression | Result | Why |
|---|---|---|
| =RIGHT(A2,0) | "" | Zero characters: an empty string |
| =RIGHT(A2,-1) | #VALUE! | Negative count is an error |
Edit the table or type any formula — the engine evaluates instantly. Load a preset to see RIGHT take a default single character, return the whole string when over-length, and slice from the end.
8 failure patterns mined from actual user reports on Reddit, Stack Overflow and Super User — each with the authentic symptom, root cause, a fix, and a runnable formula. Not textbook theory.
RIGHT is available across modern Excel, Google Sheets and LibreOffice. It has been in Excel since 2003.
| Platform | Support | Notes | Gotcha |
|---|
RIGHT is one piece. The full course walks the toolkit end to end with live, measured examples.