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:

All: John Smith, John Smith, John Smith
LOB: John Smith, John Smith
Functional: John Smith

<tbody>
</tbody>


However, the text in B4 looks like this:
All: John Smith, John Smith
HRBP: John Smith, John Smith, John Smith, John Smith

<tbody>
</tbody>

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

How to total the visible cells?
From the first blank cell below a filtered data set, press Alt+=. Instead of SUM, you will get SUBTOTAL(9,)

Forum statistics

Threads
1,214,983
Messages
6,122,591
Members
449,089
Latest member
Motoracer88

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