An alternative is to unpivot your data in Power Query
Excel 2016 (Windows) 64 bit
|
A |
B |
C |
D |
E |
F |
G |
H |
I |
J |
K |
1 |
Item |
Co 1 |
Co2 |
Co3 |
Co4 |
Co5 |
Co6 |
|
Item |
Attribute |
Value |
2 |
Item1` |
1 |
0 |
2 |
0 |
0 |
0 |
|
Item1` |
Co 1 |
1 |
3 |
Item2 |
0 |
0 |
0 |
0 |
0 |
0 |
|
Item1` |
Co3 |
2 |
4 |
Item3 |
0 |
0 |
0 |
0 |
0 |
0 |
|
Item5 |
Co3 |
3 |
5 |
item4 |
0 |
0 |
0 |
0 |
0 |
0 |
|
Item7 |
Co 1 |
3 |
6 |
Item5 |
0 |
0 |
3 |
0 |
0 |
0 |
|
|
|
|
7 |
Item6 |
0 |
0 |
0 |
0 |
0 |
0 |
|
|
|
|
8 |
Item7 |
3 |
0 |
0 |
0 |
0 |
0 |
|
|
|
|
9 |
Item8 |
0 |
0 |
0 |
0 |
0 |
0 |
|
|
|
|
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.
Bookmarks