Is it possible to create a macro or use power query to take in a sheet from a workbook and manipulate the data as follows? Sheet1 is the input layout. Sheet2 is the desired output. The manipulation is done on the color column based on a 'comma' then moving each color to new cell sorted. The sheet below is a subset of the colors as there could be many many more.
Thanks
Sheet1
Sheet2
Thanks
Sheet1
Name | Day | color |
Mr X | Mon | red,blue,green |
Mr Y | Tue | blue,red,orange |
Mr Z | Wed | purple,yellow |
Sheet2
Name | Day | color | blue | green | orange | purple | red | yellow |
Mr X | Mon | red,blue,green | blue | green | red | |||
Mr Y | Tue | blue,red,orange | blue | orange | red | |||
Mr Z | Wed | purple,yellow | purple | yellow |