Extract list of names into individual cells (cannot use 'text to column')

lawi227

Board Regular
Joined
Mar 17, 2016
Messages
123
I have a row of data from B3:B11. Each cell contains a list of names seperated by a comma. To make things more complicated though, the names are grouped by department.

For example, the text in B3 looks like this:

[TABLE="width: 500"]
<tbody>[TR]
[TD]All: John Smith, John Smith, John Smith
LOB: John Smith, John Smith
Functional: John Smith[/TD]
[/TR]
</tbody>[/TABLE]


However, the text in B4 looks like this:
[TABLE="width: 500"]
<tbody>[TR]
[TD]All: John Smith, John Smith
HRBP: John Smith, John Smith, John Smith, John Smith[/TD]
[/TR]
</tbody>[/TABLE]

You can see that each cell in column B may have a different department. A list of the departments is:
HR Compliance:
LOB:
All:
Labor Relations:
Functional:
HRBP:
VISA/Immigration:

It would be nice to be to remove those words from the list and then click and drag the formula and it will identify each person's name based off of the comma. Note: the number of names per each department changes so I don't think using any RIGHT/LEFT/MID/LEN functions would work in this case. The formula would need to be more dynamic.

Can this be done with a formula?
 
Last edited:

Excel Facts

Add Bullets to Range
Select range. Press Ctrl+1. On Number tab, choose Custom. Type Alt+7 then space then @ sign (using 7 on numeric keypad)

Forum statistics

Threads
1,223,885
Messages
6,175,187
Members
452,616
Latest member
intern444

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