I’m trying to group data from a table. The table was built off a pivot table, with values returned equaling 1 if the employee had worked on a project or not.
I tried Hlookup, vlookup…can’t figure it out.
The “1” value from the table means that the person worked on that particular project.
I need a formula to say, If L.Bish=”1″, then return all names that also equal “1”
The long way would be to filter table values under each person for value “1” to find whether or not other team members have worked with that person.
I would then need to apply this formula to all other team members to see who has and hasn’t worked together on a project.
Any help or direction would be great
As you can see, Bish has worked with the following:
Carl
Good
Etc.
Table is below:

I assume you have employees and projects in rows and columns or vice-versa. If you were to “unpivot” your table, you’d be able to put it back in a pivot and do your groupings the way you want.
Check out my Table2DB add-in here.
In your case, you could simply run the macro below and create a pivot based on your new sheet
To get the ones who didn’t work together, build a table as shown below and use formula:
=IF(COUNTIFS(OFFSET($A$49:$A$78,0,MATCH($A2,$48:$48,0)-1,,),1,OFFSET($A$49:$A$78,0,MATCH(B$1,$48:$48,0)-1,,),1)>0,”Did”,”Didn’t”) & ” Work together”