Why it works
- What it does
- MID(text, start, length) takes characters from the middle. Work out the start from the first dash and the length from the distance between the first and second dash, both with FIND, so codes of any length work.
- The shape of the formula
- =MID(text, first dash + 1, second dash - first dash - 1)
- How to remember it
- Start after the first fence, stop before the second.
- The usual mistake
- Counting positions by eye, as in MID(A2,5,5). A longer channel name or a bigger order number shifts everything.
Keep practicing
- LEFT with FIND: text before the first spaceHow do I pull the invoice number from the start of a bank description?Open
- TEXTAFTER: everything after a delimiterHow do I get the part of a code after the last dash?Open
- TEXTBEFORE: the first name from a full nameHow do I get just the first name for a greeting?Open
- Lesson: Cut text into partsA short lesson in your workspace: the idea, small steps on a sheet, one task with new dataOpen
Updated