How to extract text between commas/brackets/parentheses in Excel?
If you have a list of data, and you want to extract the data between the commas/brackets/parentheses only in Excel, just like below screenshot shown, you can follow the steps this tutorial introduces to solve it.
- Extract text between commas/brackets/parentheses with formula
- Extract text between commas/brackets/parentheses with Kutools for Excel (3 steps)
- Extract text between commas/brackets/parentheses with Kutools for Excel (2 steps)
Fortunately, there are some formulas that can extract data between commas, brackets or parentheses.
|Extract data between commas||=SUBSTITUTE(MID(SUBSTITUTE("," & A2&REPT(" ",6),",",REPT(",",255)),2*255,255),",","")|
|Extract data between parentheses ()||=MID(A2,FIND("(",A2)+1,FIND(")",A2)-FIND("(",A2)-1)|
|Extract data between brackets ||=MID(A2,FIND("[",A2)+1,FIND("]",A2)-FIND("[",A2)-1)|
|Formula is too complicated to remember? Save the formula as an Auto Text entry for reusing with only one click in future! |
Read more… Free trial
If you have Kutools for Excel installed, you can apply its Extract Text utility to easily extract text between commas, brackets, or parentheses, or any other marks or letters with following steps.
1. Select the range that you will extract text between specified marks, and click Kutools > Text > Extract Text.
2. In the popping up Extract Text dialog box, you need to:
(1) Add * between the two specified marks that you will extract text between, and type them into the Text box. For example, if you want to extract text between both comma, type ,*, into Text box.
Note: The * represent any series of characters.
(2) Click the Add button. Then you will see the typed string is added into Extract list;
(3) Click the Ok button.
3. Now the second Extract Text comes out, please specify a cell to output extracted text, and click the OK button. And now you will see all text between specified marks are extracted and output into cells as below screenshot above:
Note: You may notice that the specified marks are also extracted with text. You can easily remove these marks with clicking Kutools > Text > Remove characters, and then specify options as below screen shot shown:
If Kutools for Excel has been installed, you can also apply its new Split Cells utility to extract text between specified characters easily. You can do as follows:
1. Select the range that you will extract text from, and click the Kutools > Text > Split Cells.
2. In the opening Split Cells dialog box, please specify the split type in the Type section, specify delimiter you will split by in the Split by section, and click the Ok button (In our case, we check the Split to Columns option in the Type section; check the Other option and type the comma ",", into following box, See screenshot above.). In the second Split Cells dialog box, specify the first cell address of destination range, and click the OK button.
Now you will see all text strings are split by the specified character.
If necessary, you can delete all split columns except the column with content between specified character.
You are guest ( Sign Up? )
or post as a guest, but your post won't be published automatically.
- To post as a guest, your comment is unpublished.· 9 months agoI tried the same formula to extract text between <> and didn't work, any suggestion? I am trying to extract email address between <>
- To post as a guest, your comment is unpublished.· 3 years agoThe Excel formula worked great for me! I used "<" and ">" - thanks!!!