A Power Query solution:
Code:
let
Source = Excel.CurrentWorkbook(){[Name="Table1"]}[Content],
#"Unpivoted Columns" = Table.UnpivotOtherColumns(Source, {}, "Attribute", "Value"),
#"Split Column by Delimiter" = Table.SplitColumn(#"Unpivoted Columns", "Value", Splitter.SplitTextByDelimiter(" ", QuoteStyle.Csv), {"Value.1", "Value.2", "Value.3"}),
#"Extracted Text Between Delimiters" = Table.TransformColumns(#"Split Column by Delimiter", {{"Value.2", each Text.BetweenDelimiters(_, "(", ")"), type text}}),
#"Removed Columns" = Table.RemoveColumns(#"Extracted Text Between Delimiters",{"Value.3"}),
#"Changed Type" = Table.TransformColumnTypes(#"Removed Columns",{{"Value.2", Int64.Type}}),
#"Grouped Rows" = Table.Group(#"Changed Type", {"Attribute"}, {{"Attendees", each List.Sum([Value.2]), type nullable number}, {"Course Count", each Table.RowCount(_), Int64.Type}})
in
#"Grouped Rows"
Excel 2016 (Windows) 32 bit
|
A |
B |
C |
1 |
Attribute |
Attendees |
Course Count |
2 |
Online 101 |
410 |
9 |
3 |
F2F Midaz |
15 |
1 |
4 |
ZOOM 101 |
30 |
1 |
5 |
ZOOM AEM 1&2 |
30 |
1 |
6 |
Online AEM P1 |
10 |
1 |
7 |
ZOOM AEM Part 2 |
5 |
1 |
Bookmarks