An alternative solution is to use Power Query/Get & Transform. Here is the Mcode and the file you can review.
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
Excel 2016 (Windows) 32 bit
|
A |
B |
C |
D |
1 |
keyno |
1 |
2 |
3 |
2 |
36289 |
N91334 |
|
|
3 |
36290 |
N9658N |
PK-ATG |
N107LH |
4 |
36291 |
N9654N |
PK-ATH |
N108LH |
5 |
36292 |
N9655N |
PK-ATI |
N109LH |
Bookmarks