I'm in the process of building an inventory of products for a webstore. The parent products contain a comma separated list of attributes that are available. If it were a tshirt, it would show xs,s,m,l,xl
with colours in a list in an other field b,r,g,y
(blue, red, green, yellow).
To generate the child inventory, we need to create a cartesian join in Google Sheets of 6 fields, 5 of them have comma separated lists which need to be split and then joined together again within the cartesian join. Some rows don't have values in certain fields so the formula would have to account for that.
I have tried this method and variations of it without success. I can get it to work for 1 row but it falls down as soon as I use a whole column.
Generate all possible combinations for Columns in Google SpreadSheets
I have included an example sheet with test values. I have also included an example of an expected result for each row.
https://docs.google.com/spreadsheets/d/1pi1zjJuiWRJ2iPZo2Ve4dAekyVnGq5Tc0z3rgev_Ikw/edit?usp=sharing
I'd like to try doing this without the use of Google Scripts.