Ghost Sheet

MID with FIND: text from the middle

How do I pull the order number from between two dashes?

This is the task for this topic. It is part of the plan; the level check before it is free.
D2Type a formula for D2, starting with =

Click the sheet or the button: the task opens in your workspace, ready to type

ABCDE
1ReferenceCustomerAmountOrder no
2WEB-99941-IDRowan Cafe1,210
3WEB-99943-CAMoss Dental445
4WEB-99945-CAWren Yoga570
5WEB-99947-ORLarch & Co1,140
6WEB-99949-WAPinegate School370
7WEB-99951-WAQuill Books1,665
8WEB-99953-IDLarch & Co415
9WEB-99955-WACopper Kettle Inn1,720
10WEB-99957-NVCopper Kettle Inn545
11WEB-99959-WAQuill Books560
12WEB-99961-CAWren Yoga585
13
14
15
16
17
18
19
20
21
dashed: the answer to reachblack: matchesblue: right after new datared: wrong

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

Updated