Extract text between MULTIPLE parentheses in one cell

broncos347

Active Member
Joined
Feb 16, 2005
Messages
291
Office Version
  1. 365
Platform
  1. Windows
I am using the following formula to extract text from between two sets of parentheses in a cell and this works well, the formula does what it should do but is there a way that the blank spaces in the result can be removed as part of the formula?

Norwich Crown Point Depot Asset List - M&E and BS 2022 - DRAFT Client Issue.xlsx
JK
5Block Titlehelper 1.5
6Access Route (09 01) Location (00 01)09 0100 01
Asset Template
Cell Formulas
RangeFormula
K6K6=CONCAT(SUBSTITUTE(MID(SUBSTITUTE(SUBSTITUTE(J6,")","("),"(",REPT("(",1000)),SEQUENCE(LEN(J6),,,2)*1000,1000),"(",""))
 

Excel Facts

Round to nearest half hour?
Use =MROUND(A2,"0:30") to round to nearest half hour. Use =CEILING(A2,"0:30") to round to next half hour.
What version of Excel are you using?

I suggest that you update your Account details (or click your user name at the top right of the forum) so helpers always know what Excel version(s) & platform(s) you are using as the best solution often varies by version. (Don’t forget to scroll down & ‘Save’)
 
Upvote 0
Simplest solution is to wrap your formula in another substitute to get rid of the spaces.
 
Upvote 0

Forum statistics

Threads
1,213,527
Messages
6,114,142
Members
448,551
Latest member
Sienna de Souza

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top