---
title: "LEFT, RIGHT and MID practice exercises | PracticeExcel"
description: "Practice LEFT, RIGHT and MID in a live spreadsheet by pulling parts out of product and invoice codes."
canonical_url: "https://practiceexcelonline.com/practice/left-right-mid"
locale: en
meta:
  "og:description": "Practice LEFT, RIGHT and MID in a live spreadsheet by pulling parts out of product and invoice codes."
  "og:image": "https://practiceexcelonline.com/_og/d/c_Page%2Ctitle_~TEVGVCwgUklHSFQgYW5kIE1JRCBwcmFjdGljZSBleGVyY2lzZXM%2Cdescription_~UHJhY3RpY2UgTEVGVCwgUklHSFQgYW5kIE1JRCBpbiBhIGxpdmUgc3ByZWFkc2hlZXQgYnkgcHVsbGluZyBwYXJ0cyBvdXQgb2YgcHJvZHVjdCBhbmQgaW52b2ljZSBjb2Rlcy4%2Ceyebrow_Excel%2Bpractice%2Bexercises%2Csite_practiceexcel%2Cprops_eyJncmlkIjp7ImNvbHMiOlsiQSIsIkIiXSwicm93cyI6W3sibiI6MSwiY2VsbHMiOlsiUHJvZHVjdCBjb2RlIiwiV2FyZWhvdXNlIl19LHsibiI6MiwiY2VsbHMiOlsiT1NMLTEwNDIyIiwiIl19XSwidGFyZ2V0IjpbMSwxXX19%2Cp_Ii9wcmFjdGljZS9sZWZ0LXJpZ2h0LW1pZCI%2Cs_SX3_oyI6D9kQkeM-.png"
  "og:image:height": "600"
  "og:image:type": image/png
  "og:image:width": "1200"
  "og:title": "LEFT, RIGHT and MID practice exercises | PracticeExcel"
  "twitter:image": "https://practiceexcelonline.com/_og/d/c_Page%2Ctitle_~TEVGVCwgUklHSFQgYW5kIE1JRCBwcmFjdGljZSBleGVyY2lzZXM%2Cdescription_~UHJhY3RpY2UgTEVGVCwgUklHSFQgYW5kIE1JRCBpbiBhIGxpdmUgc3ByZWFkc2hlZXQgYnkgcHVsbGluZyBwYXJ0cyBvdXQgb2YgcHJvZHVjdCBhbmQgaW52b2ljZSBjb2Rlcy4%2Ceyebrow_Excel%2Bpractice%2Bexercises%2Csite_practiceexcel%2Cprops_eyJncmlkIjp7ImNvbHMiOlsiQSIsIkIiXSwicm93cyI6W3sibiI6MSwiY2VsbHMiOlsiUHJvZHVjdCBjb2RlIiwiV2FyZWhvdXNlIl19LHsibiI6MiwiY2VsbHMiOlsiT1NMLTEwNDIyIiwiIl19XSwidGFyZ2V0IjpbMSwxXX19%2Cp_Ii9wcmFjdGljZS9sZWZ0LXJpZ2h0LW1pZCI%2Cs_SX3_oyI6D9kQkeM-.png"
---

> Index of every page on this site: [llms.txt](https://practiceexcelonline.com/llms.txt)

# **LEFT, RIGHT and MID practice exercises**

Take a piece out of a text by position: the first characters, the last characters or a run from the middle, such as a prefix or a year inside a code.

[**Start the first exercise**](https://practiceexcelonline.com/practice/left-right-mid/left-first-characters)

LEN(RIGHT(

1. [**1****Take the prefix with LEFT**The first three letters of the product code in A2 name the warehouse. In B2, use LEFT to get them.](https://practiceexcelonline.com/practice/left-right-mid/left-first-characters)
2. [**2****Take the last digits with RIGHT****Premium**In B2, use RIGHT to get the last four characters of the invoice in A2, the running number.](https://practiceexcelonline.com/practice/left-right-mid/right-last-characters)
3. [**3****Take the year from the middle with MID****Premium**The year in the invoice in A2 starts at character 5 and is 4 characters long. In B2, use MID to get it.](https://practiceexcelonline.com/practice/left-right-mid/mid-text-from-middle)
4. [**4****Drop a prefix with RIGHT and LEN****Premium**Every order ID starts with a 3-letter channel code, but the numbers have different lengths. In B2, take everything after the first 3 characters with RIGHT, and use LEN(A2)-3 for how many.](https://practiceexcelonline.com/practice/left-right-mid/right-len-remove-prefix)

## **Functions in this topic**

- [**LEN**](https://practiceexcelonline.com/functions/len)
- [**RIGHT**](https://practiceexcelonline.com/functions/right)

## **Read the guide**

- [**How to clean data in Excel with formulas**](https://practiceexcelonline.com/learn/clean-data-in-excel)

```json
{"@context":"https://schema.org","@graph":[{"@id":"https://practiceexcelonline.com/#identity","@type":"Organization","name":"PracticeExcel","url":"https://practiceexcelonline.com/","logo":{"@id":"https://practiceexcelonline.com/#logo"}},{"@id":"https://practiceexcelonline.com/#website","@type":"WebSite","inLanguage":"en-US","name":"PracticeExcel","url":"https://practiceexcelonline.com/","alternateName":["Practice Excel Online","PracticeExcelOnline.com"],"publisher":{"@id":"https://practiceexcelonline.com/#identity"},"workTranslation":{"@id":"https://excelopgaver.dk/#website"}},{"@id":"https://practiceexcelonline.com/practice/left-right-mid#webpage","description":"Practice LEFT, RIGHT and MID in a live spreadsheet by pulling parts out of product and invoice codes.","name":"LEFT, RIGHT and MID practice exercises","url":"https://practiceexcelonline.com/practice/left-right-mid","@type":["WebPage","CollectionPage"],"breadcrumb":{"@id":"https://practiceexcelonline.com/practice/left-right-mid#breadcrumb"},"isPartOf":{"@id":"https://practiceexcelonline.com/#website"},"potentialAction":[{"@type":"ReadAction","target":["https://practiceexcelonline.com/practice/left-right-mid"]}],"primaryImageOfPage":{"@id":"https://practiceexcelonline.com/#logo"}},{"@id":"https://practiceexcelonline.com/practice/left-right-mid#breadcrumb","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","name":"Home","item":"https://practiceexcelonline.com","position":1},{"@type":"ListItem","name":"Excel practice exercises","item":"https://practiceexcelonline.com/practice","position":2},{"@type":"ListItem","name":"LEFT, RIGHT and MID practice exercises","position":3}]},{"@id":"https://practiceexcelonline.com/#logo","@type":"ImageObject","caption":"PracticeExcel","contentUrl":"https://practiceexcelonline.com/brand/practiceexcel/icon-512.png","inLanguage":"en-US","url":"https://practiceexcelonline.com/brand/practiceexcel/icon-512.png"}]}
```

## Sitemap

See the full [sitemap](https://practiceexcelonline.com/sitemap.md) for all pages.
