---
title: "Take the text between parentheses | PracticeExcel"
description: "Practice TEXTAFTER and TEXTBEFORE in a live spreadsheet: take the department between the parentheses after a name."
canonical_url: "https://practiceexcelonline.com/practice/substitute-textbefore-textafter/text-between-parentheses"
locale: en
meta:
  "og:description": "Practice TEXTAFTER and TEXTBEFORE in a live spreadsheet: take the department between the parentheses after a name."
  "og:image": "https://practiceexcelonline.com/_og/d/c_Page%2Ctitle_Take%2Bthe%2Btext%2Bbetween%2Bparentheses%2Cdescription_~UHJhY3RpY2UgVEVYVEFGVEVSIGFuZCBURVhUQkVGT1JFIGluIGEgbGl2ZSBzcHJlYWRzaGVldDogdGFrZSB0aGUgZGVwYXJ0bWVudCBiZXR3ZWVuIHRoZSBwYXJlbnRoZXNlcyBhZnRlciBhIG5hbWUu%2Ceyebrow_~U1VCU1RJVFVURSwgVEVYVEJFRk9SRSBhbmQgVEVYVEFGVEVS%2Csite_practiceexcel%2Cprops_eyJncmlkIjp7ImNvbHMiOlsiQSIsIkIiXSwicm93cyI6W3sibiI6MSwiY2VsbHMiOlsiRW1wbG95ZWUiLCJEZXBhcnRtZW50Il19LHsibiI6MiwiY2VsbHMiOlsiTGF1cmEgQ2hlbiAoTWFya2V0aW5nKSIsIiJdfSx7Im4iOjMsImNlbGxzIjpbIlNhbSBPcnRpeiAoSVQpIiwiIl19LHsibiI6NCwiY2VsbHMiOlsiUHJpeWEgU2hhaCAoQ3VzdG9tZXIgU2VydmljZSkiLCIiXX1dLCJ0YXJnZXQiOlsxLDFdfX0%2Cp_Ii9wcmFjdGljZS9zdWJzdGl0dXRlLXRleHRiZWZvcmUtdGV4dGFmdGVyL3RleHQtYmV0d2Vlbi1wYXJlbnRoZXNlcyI%2Cs_W8tkwLjpSntPqp6n.png"
  "og:image:height": "600"
  "og:image:type": image/png
  "og:image:width": "1200"
  "og:title": "Take the text between parentheses | PracticeExcel"
  "twitter:image": "https://practiceexcelonline.com/_og/d/c_Page%2Ctitle_Take%2Bthe%2Btext%2Bbetween%2Bparentheses%2Cdescription_~UHJhY3RpY2UgVEVYVEFGVEVSIGFuZCBURVhUQkVGT1JFIGluIGEgbGl2ZSBzcHJlYWRzaGVldDogdGFrZSB0aGUgZGVwYXJ0bWVudCBiZXR3ZWVuIHRoZSBwYXJlbnRoZXNlcyBhZnRlciBhIG5hbWUu%2Ceyebrow_~U1VCU1RJVFVURSwgVEVYVEJFRk9SRSBhbmQgVEVYVEFGVEVS%2Csite_practiceexcel%2Cprops_eyJncmlkIjp7ImNvbHMiOlsiQSIsIkIiXSwicm93cyI6W3sibiI6MSwiY2VsbHMiOlsiRW1wbG95ZWUiLCJEZXBhcnRtZW50Il19LHsibiI6MiwiY2VsbHMiOlsiTGF1cmEgQ2hlbiAoTWFya2V0aW5nKSIsIiJdfSx7Im4iOjMsImNlbGxzIjpbIlNhbSBPcnRpeiAoSVQpIiwiIl19LHsibiI6NCwiY2VsbHMiOlsiUHJpeWEgU2hhaCAoQ3VzdG9tZXIgU2VydmljZSkiLCIiXX1dLCJ0YXJnZXQiOlsxLDFdfX0%2Cp_Ii9wcmFjdGljZS9zdWJzdGl0dXRlLXRleHRiZWZvcmUtdGV4dGFmdGVyL3RleHQtYmV0d2Vlbi1wYXJlbnRoZXNlcyI%2Cs_W8tkwLjpSntPqp6n.png"
---

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

# **Take the text between parentheses**

**Premium**

In B2, take the department between the parentheses in A2. Use TEXTAFTER to take what comes after "(", and TEXTBEFORE around it to stop at ")".

B2fx

|  | A | B | C | D | E | F |
| --- | --- | --- | --- | --- | --- | --- |
| 1 | Employee | Department |  |  |  | |
| 2 | Laura Chen (Marketing) |  |  |  |  | |
| 3 | Sam Ortiz (IT) |  |  |  |  | |
| 4 | Priya Shah (Customer Service) |  |  |  |  | |
| 5 |  |  |  |  |  | |
| 6 |  |  |  |  |  | |
| 7 |  |  |  |  |  | |
| 8 |  |  |  |  |  | |

**Premium lesson**

## **Unlock SUBSTITUTE, TEXTBEFORE and TEXTAFTER and every other lesson**

This is a premium lesson. Premium lets you solve it and every other lesson, take the timed mock tests, and earn certificates you can share on LinkedIn.

Next with premium:**Dates and DATE****EDATE and EOMONTH**

It comes up in this mock test: [**Excel test for admin jobs**](https://practiceexcelonline.com/tests/excel-test-for-admin-jobs)

[**See plans, from $5/month**](https://practiceexcelonline.com/pricing) [**Already premium? Sign in**](https://practiceexcelonline.com/login?next=/practice/substitute-textbefore-textafter/text-between-parentheses)

Need help?

```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/substitute-textbefore-textafter/text-between-parentheses#webpage","description":"Practice TEXTAFTER and TEXTBEFORE in a live spreadsheet: take the department between the parentheses after a name.","name":"Take the text between parentheses","url":"https://practiceexcelonline.com/practice/substitute-textbefore-textafter/text-between-parentheses","@type":["WebPage","FAQPage"],"breadcrumb":{"@id":"https://practiceexcelonline.com/practice/substitute-textbefore-textafter/text-between-parentheses#breadcrumb"},"isPartOf":{"@id":"https://practiceexcelonline.com/#website"},"mainEntity":[{"@id":"https://practiceexcelonline.com/practice/substitute-textbefore-textafter/text-between-parentheses#/schema/question/1"}],"potentialAction":[{"@type":"ReadAction","target":["https://practiceexcelonline.com/practice/substitute-textbefore-textafter/text-between-parentheses"]}],"primaryImageOfPage":{"@id":"https://practiceexcelonline.com/#logo"}},{"@id":"https://practiceexcelonline.com/practice/substitute-textbefore-textafter/text-between-parentheses#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":"SUBSTITUTE, TEXTBEFORE and TEXTAFTER","item":"https://practiceexcelonline.com/practice/substitute-textbefore-textafter","position":3},{"@type":"ListItem","name":"Take the text between parentheses","position":4}]},{"@id":"https://practiceexcelonline.com/practice/substitute-textbefore-textafter/text-between-parentheses#/schema/question/1","@type":"Question","inLanguage":"en-US","name":"How do I extract text between parentheses in Excel?","acceptedAnswer":{"@type":"Answer","text":"Use =TEXTBEFORE(TEXTAFTER(A2,\"(\"),\")\"). TEXTAFTER drops everything up to \"(\" and TEXTBEFORE stops at \")\"."}},{"@id":"https://practiceexcelonline.com/practice/substitute-textbefore-textafter/text-between-parentheses#/schema/learning-resource/1","@type":"LearningResource","description":"Practice TEXTAFTER and TEXTBEFORE in a live spreadsheet: take the department between the parentheses after a name.","educationalLevel":"intermediate","isAccessibleForFree":false,"learningResourceType":"exercise","name":"Take the text between parentheses","teaches":"SUBSTITUTE, TEXTBEFORE and TEXTAFTER"},{"@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.
