An alternative is to use Power Query/Get and Transform located on the Data Tab. Here is the Mcode from the action.
Excel 2016 (Windows) 32 bit
|
A |
B |
C |
D |
E |
1 |
Date |
Maintenance Type |
Department |
Personnel Name |
Total Time |
2 |
5/12/2020 |
EM |
Mechanical |
Jennifer |
3 |
3 |
5/12/2020 |
EM |
Electrical |
Alex |
8 |
4 |
5/13/2020 |
PM |
Electrical |
Alex |
2 |
5 |
5/13/2020 |
PM |
Mechanical |
Jennifer |
4 |
6 |
5/13/2020 |
EM |
Electrical |
Amanda |
3 |
7 |
5/13/2020 |
EM |
Mechanical |
Alex |
7 |
8 |
5/14/2020 |
EM |
Industrial Engineering |
Amanda |
5 |
9 |
5/14/2020 |
PM |
Electrical |
David |
4 |
10 |
5/15/2020 |
PM |
Industrial Engineering |
Amanda |
8 |
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