I have spreadsheet of employees and their contract type, in the following form
Name | Contract Type |
---|---|
Employee1 | Permanent |
Employee2 | Contract |
Employee3 | Intern |
Employee4 | Permanent |
Employee5 | Permanent |
Employee6 | Inter |
Employee7 | Contract |
and so on up to EmployeeN
I've to count the number of employees, and create a CSV list of employee names of each type e.g.
Type | Count | Names |
---|---|---|
Permanent | 4 | Employee1,Employee4,Employee5,Employee14 |
Contract | 3 | Employee2,Employee7,Employee21 |
Intern | 2 | Employee3,Employee6 |
This needs to update automatically, so if Employee2's contract type is changed to Permanent, the count in the Contract row becomes 2, the count in the Permanent row becomes 5, and the list of names is updated
I've used COUNTIFS
to count the number of each employee type, but can't update the list of names
I've tried to create a range of names using VLOOKUP
but it's only returning a single value, and I need multiple values to use the CONCATENATE
method