Replace text using wildcard

mikeymay

Well-known Member
Joined
Jan 17, 2006
Messages
1,600
Office Version
  1. 365
Platform
  1. Windows
I have a column of text that contains some text and example of which is below
Bloggs Joe, GB Sales:Required;Smith John, GB Sales:Required;Jones Sally, GB ASC:Required;Walker, Alan, GB Sales:Required

There could be a number of combinations of the 'GB ?:Required' text and I won;t know what these text strings will be

Basically what I need to do is just have the column contain the names so the above would be as follows
Bloggs Joe, Smith John, Jones Sally, Walker, Alan

Sometimes there will only be one name as follows
Bloggs Joe, GB Sales:Required

For this I would only need
Bloggs, Joe
to be in the column
 
Sorry but I can't get this to work either....I'm wondering if I might be jumping a bit too far in to the deep end and will need to get a better handle on M code before I tackle something like this.
 
Upvote 0

Excel Facts

Format cells as currency
Select range and press Ctrl+Shift+4 to format cells as currency. (Shift 4 is the $ sign).
Many thanks for the offer to help. Would email work better? I can't get screen shots in my posts on here whereas I can add them easily to emails. If you're happy to do this then DM me with your email address and I'll break down what I'm doing. Thanks
 
Upvote 0

Forum statistics

Threads
1,214,627
Messages
6,120,610
Members
448,973
Latest member
ChristineC

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