If you can use formula and Excel Power Query, I suggest you try following steps.
First make the Row and Column headers.
- For the column of Customer ID, you may copy ID and paste to other cells.
- For the row of Parts, you may use UNIQUE function, such as
=UNIQUE(B2:M2,TRUE).
Please combine the values of the same Parts based on the column number, enter the formula =INDEX($B3:$M3,0,COLUMN()*2-3)&INDEX($B3:$M3,0,COLUMN()*2-2)
then pull down and pull right.
And then import data into Excel Power Query and do unpivot columns operation.
- Select the range from A9:G13, click Data tab > From Table/ Range.
- Select Customer ID column > Click Transform tab > Click down arrow beside the Unpivot Column > Choose Unpivot Other Columns.
- Click File > Close & Load to, load the table to one Excel sheet.
If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.