I have read stuff on pivot tables and I am still having problems getting this correct.
I have a table where column 1 is a Productnr, and column 2 is LHS, column 3 is another Productnr and lastly column 4 is RHS. Also the number of entries of Productnr2 (belonging to Productnr) is variable between 1 and 5. For example, if there are only 3 associated Productnr2 (see article no = 060013 in Productnr) then the last two columns should remain empty.
Productnr LHS Productnr2 RHS
060009 411 099088 5
060013 228 194139 25
060013 228 194141 17
060013 228 175823 75
060022 951 147071 90
060034 424 099088 14
060034 424 102704 88
060034 424 080034 82
060034 424 108436 87
060034 424 108437 58
I would like it to come out as a pivot table, like this:
Productnr | LHS | 1 | RHS | 2 | RHS | 3 | RHS | 4 | RHS | 5 | RHS |
-----
060009 411 099088 5
060013 228 194139 25 194141 17 175823 75
060022 951 147071 90
060034 424 099088 14 102704 88 080034 82 108436 87 108437 58