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

Lock one reference in a formula
Need 1 part of a formula to always point to the same range? use $ signs: $V$2:$Z$99 will always point to V2:Z99, even after copying

Forum statistics

Threads
1,215,446
Messages
6,124,904
Members
449,194
Latest member
JayEggleton

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