TEXT & DATA CLEANUP · ORIGINAL EXERCISE
Read the city code
Extract the two-character city code from B2, starting at character 5.
This quest practices MID using a fictional business dataset. Read the sheet below, then enter the interactive quest to write and check your formula.
| Raw name | Code | City | Imported amount | |
|---|---|---|---|---|
| aRI stone | ORD-NY-204 | ARI@EXAMPLE.COM | New-York | 1200 |
| bea moon | ORD-LA-105 | BEA@EXAMPLE.COM | Los-Angeles | 850 |
| CAM reed | ORD-NY-306 | CAM@EXAMPLE.COM | New-York | 940 |
| dev fox | ORD-AT-107 | DEV@EXAMPLE.COM | Atlanta | 650 |
Hints to get you started
- MID takes text, starting position, and character count.
- Character positions start at 1.
- Start at 5 and read 2 characters.
Show the worked solution
=MID(B2,5,2)MID returns the NY section from ORD-NY-204.
Make the skill stick
After solving the task, explain what each reference does and why the formula answers the business question. Try the workbook download inside the quest to practice in your own spreadsheet app.
Explore the rest of this region →