people assigned to a project - how to know who to go to for each?

djveed

New Member
Joined
Nov 18, 2014
Messages
14
Hi everyone! I have a list of programs and for each of them, a list of names that worked on the program, anywhere between one and four people. If I want to synthesize this data and know, for example, what programs should i ask "Geoff" about, how do I do this in Excel?


[TABLE="width: 787"]
<colgroup><col><col><col span="3"></colgroup><tbody>[TR]
[TD]Program[/TD]
[TD]Person A[/TD]
[TD]Person B[/TD]
[TD]Person C[/TD]
[TD]Person D[/TD]
[/TR]
[TR]
[TD]Program CNBC[/TD]
[TD]Angela[/TD]
[TD] Geoff[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Program CNN[/TD]
[TD]Ashley[/TD]
[TD] Shelby[/TD]
[TD] Geoff[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Program ZTV[/TD]
[TD]Ashley[/TD]
[TD] Shelby[/TD]
[TD] Angela[/TD]
[TD] Chris[/TD]
[/TR]
[TR]
[TD]Program ESPN[/TD]
[TD]Geoff[/TD]
[TD] James[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Program Fox[/TD]
[TD]Ashley[/TD]
[TD] Shelby[/TD]
[TD] Chris[/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
 

Excel Facts

Bring active cell back into view
Start at A1 and select to A9999 while writing a formula, you can't see A1 anymore. Press Ctrl+Backspace to bring active cell into view.
Sandy, any chance you could list your steps in post #2
sure, here is:
Code:
[SIZE=1]let
    Source = Excel.CurrentWorkbook(){[Name="Table1"]}[Content],
    Group = Table.Group(Table.UnpivotOtherColumns(Source, {"Program"}, "Attribute", "Value"), {"Value"}, {{"Count", each _, type table}}),
    ProgramList = Table.AddColumn(Group, "Program", each Table.Column([Count],"Program")),
    Sort = Table.Sort(Table.TransformColumns(ProgramList, {"Program", each Text.Combine(List.Transform(_, Text.From), ", "), type text}),{{"Value", Order.Ascending}})
in
    Sort[/SIZE]
 
Upvote 0
This is another approach using VBA if interested ... All you need to do is press Alt+F11 then Alt+I+M then paste the below code & hit F5 to run the code

Note : Assuming your data starts in A1 for the header

Code:
Sub GetSummary()


Dim Dic As Object, lRow As Long, Ar() As Variant, Ar1 As Variant, k As Variant, Cnt As Long
Set Dic = CreateObject("Scripting.Dictionary")
lRow = ActiveSheet.Range("A" & Rows.Count).End(xlUp).Row
Ar = Range("B2:E" & lRow).Value


For Each k In Ar
    If Not Dic.exists(k) And Not IsEmpty(k) Then Dic.Add k, ""
Next


Ar = ActiveSheet.UsedRange.Value
ReDim Ar1(1 To Dic.Count, 1 To 2)


For Each k In Dic.keys
    For x = 1 To UBound(Ar)
        For y = 2 To 5
            If Ar(x, y) = k Then
                Dic(k) = IIf(Dic(k) = "", Ar(x, 1), Dic(k) & ", " & Ar(x, 1))
            End If
        Next y
    Next x
    Cnt = Cnt + 1
    Ar1(Cnt, 1) = k
    Ar1(Cnt, 2) = Replace(Dic(k), "Program ", "") ' If you don't want to remove the word "Program", just place Dic(k) after the = sign
Next k


With Sheets.Add
    .Name = "Summary Report" ' You can change the new sheet name to whatever you wish here
    .Range("A1:B1") = Array("Name", "Program")
    .Range("A2").Resize(UBound(Ar1), 2) = Ar1
    .Columns("A:B").AutoFit
End With


End Sub
 
Last edited:
Upvote 0

Forum statistics

Threads
1,224,825
Messages
6,181,191
Members
453,021
Latest member
pingpong7117

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