Extract Text Between Multiple Characters

zr600efi

New Member
Joined
Jan 14, 2010
Messages
8
Hi, I've tried using the search function to find the answer on my own, but I wasn't able to solve my problem.

If someone is able to help me out I'd really appreciate it. I don't know VB so an excel formula is what I really need.

Here is what I want to do. I need to extract

Here is an example:
3M EMI Copper Foil Shielding Tape 1181, 2 in x 18 yd, (50,80 mm x 1,5 m), 5 per case

I need to get the string before the first comma "3M(TM) EMI Copper Foil Shielding Tape 1181".

And also the data after the first comma and before the last comma. Often I can have 4-5 (or more) commas. So I'd need to get " 2 in x 18 yd, (50,80 mm x 1,5 m)" out of that.

Thanks so much!
 

Excel Facts

Copy formula down without changing references
If you have =SUM(F2:F49) in F50; type Alt+' in F51 to copy =SUM(F2:F49) to F51, leaving the formula in edit mode. Change SUM to COUNT.
Best solution is probably without formula or VBA

Make sure there are several emtpy columns available to the right of the data, 1 for each comma (minus the column holding the data)
So if the most commas there can be in the string is say 6, you would want 5 empty columns to the right.
Highlight the column of Data,
Click Data - Text To Columns
Select Deliminated - Click Next
Put a check on "Comma"
Click Finish.
 
Upvote 0
It seems I like to make things much more complicated than I need to, lol.

Thank you for the suggestion, this is what I was looking for.
 
Upvote 0

Forum statistics

Threads
1,214,661
Messages
6,120,797
Members
448,994
Latest member
rohitsomani

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