Add semicolon to exported string values

PAQ

New Member
Joined
May 21, 2021
Messages
2
Office Version
  1. 365
Platform
  1. Windows
Hi experts,

Hope everyone is well! I need your help. I have a spreadsheet with a column that has multiple strings in parenthesis that I need to extract to a new column. I have managed to do this with the formula below but I can't seem to figure out how to include a separator for the data. I would like to include a semicolon or dash to separate them. Can anyone assist? Thank you. :)

=CONCAT(SUBSTITUTE(MID(SUBSTITUTE(SUBSTITUTE(C3, ")","("),"(",REPT("(",1000)),SEQUENCE(LEN(C3),,,2)*1000,1000),"(",""))
 

Excel Facts

VLOOKUP to Left?
Use =VLOOKUP(A2,CHOOSE({1,2},$Z$1:$Z$99,$Y$1:$Y$99),2,False) to lookup Y values to left of Z values.
Hi & welcome to MrExcel.
How about
Excel Formula:
=TEXTJOIN("; ",,SUBSTITUTE(MID(SUBSTITUTE(SUBSTITUTE(C3, ")","("),"(",REPT("(",1000)),SEQUENCE(LEN(C3),,,2)*1000,1000),"(",""))
 
Upvote 0
=TEXTJOIN("; ",,SUBSTITUTE(MID(SUBSTITUTE(SUBSTITUTE(C3, ")","("),"(",REPT("(",1000)),SEQUENCE(LEN(C3),,,2)*1000,1000),"(",""))
You are a LIFE SAVER! this worked! Thank you. :)
 
Upvote 0
You're welcome & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,215,054
Messages
6,122,895
Members
449,097
Latest member
dbomb1414

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