RIGHT takes a set number of characters from the end of a piece of text. LEFT does the same from the start.
Syntax
RIGHT(text, [num_chars])
When to use it
Last four digits of a card, the year off the end of a reference, and the old trick for padding numbers with leading zeros.
What trips people up
Padding works by gluing zeros onto the front and then taking the last few characters from the whole thing. What comes back is text, so it will line up on the left and will not add up. That is usually what you want for a code, and never what you want for a figure.
Set by your computer's language, not by the file. A frequent cause of a correct-looking formula being rejected.
Excel version
XLOOKUP, IFS, TEXTBEFORE and TEXTJOIN need Microsoft 365 or 2021; older versions return #NAME? instead. Choosing the older one switches every walkthrough to a formula that works there.