Here is a Power Query Solution. Power Query or Get and Transform in Excel 365 is found on the Data Tab.
Mcode:
Excel 2016 (Windows) 32 bit
|
A |
B |
C |
D |
E |
1 |
Name |
Number - Copy |
Driving |
IT |
Singing |
2 |
Dave |
1 |
1 |
1 |
1 |
3 |
Fred |
3 |
1 |
0 |
0 |
4 |
Jane |
2 |
1 |
0 |
0 |
Review PQ
In the attached file
Click on any cell in the new table
On the Data Tab, click on Queries & Connections
In the right window, double click to open Query
Review PQ steps
M-code basics:
- "let" is the start of a query
- "in" is the closing of a query
- each transformation step sits in between those 2 lines
- each step line is ended by a comma, except the last one
- "Source" is always the first step (Source Data)
- After "in" you have the last step referenced
Bookmarks