Why it works
- What it does
- RIGHT(text, n) takes n characters from the end. When the end part has different lengths, work n out: total length minus the position of the last dash. Mark that dash with SUBSTITUTE’s instance number (here the second dash, the last one in these SKUs) so FIND can see it.
- The shape of the formula
- =RIGHT(text, LEN(text) - position of the last dash)
- How to remember it
- Measure from the end back to the last fence.
- The usual mistake
- RIGHT(B2, 1) because today’s sizes are S, M and L. XL becomes L and 10Y becomes Y.
Keep practicing
- TEXTAFTER: everything after a delimiterHow do I get the part of a code after the last dash?Open
- LEFT with FIND: text before the first spaceHow do I pull the invoice number from the start of a bank description?Open
- LEN: count the charactersHow do I find product titles that are over the character limit?Open
Updated