Generate list of employee names from column

sparkytech

Board Regular
Joined
Mar 6, 2018
Messages
96
Office Version
  1. 365
  2. 2019
My GoogleFu seems to be failing me on this one. I have a list of tasks in column "A" and employee names in column "B". These names repeat down the list. How can I generate a list of all employees in this task list?
 

Excel Facts

Formula for Yesterday
Name Manager, New Name. Yesterday =TODAY()-1. OK. Then, use =YESTERDAY in any cell. Tomorrow could be =TODAY()+1.
Would you provide sample data and result(s) you're looking for to have a better understanding of the issue? Please use XL2BB when posting.
It would also help to know what version of Excel you are running (change your profile accordingly).

Are you trying to see what tasks are associated with each employee? If you have 365, this might do it:

Book4
ABCD
1TasksEmployeeUniq EmpAssociated Tasks
2Task1WashingtonWashingtonTask1, Task4, Task5, Task11, Task16, Task17
3Task2ClevelandClevelandTask2, Task7, Task9, Task10, Task20
4Task3LincolnLincolnTask3, Task8, Task13, Task19
5Task4WashingtonJacksonTask6
6Task5WashingtonTrumanTask12, Task14, Task15, Task18
7Task6Jackson
8Task7Cleveland
9Task8Lincoln
10Task9Cleveland
11Task10Cleveland
12Task11Washington
13Task12Truman
14Task13Lincoln
15Task14Truman
16Task15Truman
17Task16Washington
18Task17Washington
19Task18Truman
20Task19Lincoln
21Task20Cleveland
Sheet1
Cell Formulas
RangeFormula
C2:C6C2=UNIQUE(B2:B21)
D2:D6D2=TEXTJOIN(", ",TRUE,TRANSPOSE(FILTER(A2:A21,C2=B2:B21)))
Dynamic array formulas.
 
Last edited:
Upvote 0
Along with the sample data already requested, what version of Excel are you using?

I suggest that you update your Account details (or click your user name at the top right of the forum) so helpers always know what Excel version(s) & platform(s) you are using as the best solution often varies by version. (Don’t forget to scroll down & ‘Save’)
 
Upvote 0
Along with the sample data already requested, what version of Excel are you using?

I suggest that you update your Account details (or click your user name at the top right of the forum) so helpers always know what Excel version(s) & platform(s) you are using as the best solution often varies by version. (Don’t forget to scroll down & ‘Save’)
I am using Excel 2016, example below:

Book2
ABCD
1Task NameEmployee
2Task 1JimGenerated list below
3Task 2SteveJim
4Task 3RobertSteve
5Task 4JoeRobert
6Task 5RobertJoe
7Task 6JimMike
8Task 7SteveAlbert
9Task 8Mike
10Task 9Albert
11Task 10Albert
12
Sheet1
 
Upvote 0
What about:

Book4
ABCD
1Task NameEmployee
2Task 1JimGenerated list below
3Task 2SteveJim
4Task 3RobertSteve
5Task 4JoeRobert
6Task 5RobertJoe
7Task 6JimMike
8Task 7SteveAlbert
9Task 8Mike
10Task 9Albert
11Task 10Albert
Sheet3
Cell Formulas
RangeFormula
D3:D8D3=INDEX(B2:B11,MATCH(0,COUNTIF($D$2:D2,B2:B11),0))
 
Upvote 0
Thanks for the reply, I'm not having much luck. Is there a way i can download your changes to the sheet?
 
Upvote 0
In 2016, that formula probably needs to be an array formula (CTRL+Shift+Enter). See if that's the issue.
 
Upvote 0
N.B. You can copy and paste the information shown below to a clean sheet.
Click on the icon below the f(x) in the heading and then move to your spreadsheet and paste.

Unique.xlsm
ABCDE
1Task NameEmployeeGenerated list below
2Task 1JimJimJim
3Task 2SteveSteveSteve
4Task 3RobertRobertRobert
5Task 4JoeJoeJoe
6Task 5RobertMikeMike
7Task 6JimAlbertAlbert
8Task 7Steve
9Task 8Mike
10Task 9Albert
11Task 10Albert
5b
Cell Formulas
RangeFormula
D2:D7D2=INDEX(B2:B11,MATCH(0,COUNTIF($D$1:D1,B2:B11),0))
E2:E7E2=IFERROR(INDEX($B$2:$B$11,AGGREGATE(15,6,(ROW($B$2:$B$11)-ROW($E$2)+1)/(ISNA(MATCH($B$2:$B$11,E$1:E1,0))),1)),"")
Press CTRL+SHIFT+ENTER to enter array formulas.
 
Upvote 0
Still working on this... will report back soon, thanks!
 
Last edited:
Upvote 0
Still working on this... will report back soon, thanks!
Ok, after a lot of trial and error, I finally settled on this, and it works 99%.

Excel Formula:
{=IFERROR(INDEX($B$2:$B$11,MATCH(0,COUNTIF($D$1:D1,$B$2:$B$11),0)),"")}

I have 2 small issues remaining. In cell D8, there is a "0". The other thing is not a problem, just a wish. I read somewhere that this list could also be sorted alphabetically using the "small" function. Is that possible?
 
Last edited:
Upvote 0

Forum statistics

Threads
1,222,884
Messages
6,168,825
Members
452,219
Latest member
Pharming

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