An alternative is to pivot the data in Power Query
Power Query is a free AddIn for Excel 2010 and 2013, and is built-in functionality from Excel 2016 onwards (where it is referred to as "Get & Transform Data").
It is a powerful yet simple way of getting, changing and using data from a broad variety of sources, creating steps which may be easily repeated and refreshed. I strongly recommend learning how to use Power Query - it's among the most powerful functionalities of Excel.
- Follow this link to learn how to install Power Query in Excel 2010 / 2013.
- Follow this link for an introduction to Power Query functionality.
- Follow this link for a video which demonstrates how to use Power Query code provided.
Excel 2016 (Windows) 64 bit
|
A |
B |
C |
D |
E |
F |
G |
1 |
product id |
string |
|
product id |
1 |
2 |
3 |
2 |
A |
123.jpg |
|
A |
123.jpg |
124.jpg |
125.jpg |
3 |
A |
124.jpg |
|
B |
223.jpg |
224.jpg |
|
4 |
B |
223.jpg |
|
C |
123.jpg |
323.jpg |
|
5 |
B |
224.jpg |
|
|
|
|
|
6 |
A |
125.jpg |
|
|
|
|
|
7 |
C |
123.jpg |
|
|
|
|
|
8 |
C |
323.jpg |
|
|
|
|
|
Bookmarks