Hi folks!
I’m working on a products dataset I need to conform to a different layout and format and I’m bugged since days with an obstacle I am not able to overcome.
My dataset has SKUs in column A, semicolon-delimited sizes in column B and semicolon-delimited colors in column C.
I would need to create a matrix that outputs on a new sheet all the possible combinations of sizes and colors respectively in columns B and C, along with the corresponding SKU in column A.
This is an example of my starting dataset:
And this is my expected output (taking the first 2 SKUs as example):
I would prefer a Formula if possible but I'm open to using PowerQuery as well.
I hope someone is able to help me as I'm really going crazy with this!
Thanks in advance
I’m working on a products dataset I need to conform to a different layout and format and I’m bugged since days with an obstacle I am not able to overcome.
My dataset has SKUs in column A, semicolon-delimited sizes in column B and semicolon-delimited colors in column C.
I would need to create a matrix that outputs on a new sheet all the possible combinations of sizes and colors respectively in columns B and C, along with the corresponding SKU in column A.
This is an example of my starting dataset:
sku | size | color |
---|---|---|
SKU1 | 36;37 | Black;Red |
SKU2 | 45;46;47 | Green;Yellow;Purple |
SKU3 | 40;41;42;43 | Blue;Grey;Orange;Teal |
And this is my expected output (taking the first 2 SKUs as example):
sku | size | color |
---|---|---|
SKU1 | 36 | Black |
SKU1 | 36 | Red |
SKU1 | 37 | Black |
SKU1 | 37 | Red |
SKU2 | 45 | Green |
SKU2 | 45 | Yellow |
SKU2 | 45 | Purple |
SKU2 | 46 | Green |
SKU2 | 46 | Yellow |
SKU2 | 46 | Purple |
SKU2 | 47 | Green |
SKU2 | 47 | Yellow |
SKU2 | 47 | Purple |
I would prefer a Formula if possible but I'm open to using PowerQuery as well.
I hope someone is able to help me as I'm really going crazy with this!
Thanks in advance