Hi All,
I am trying to set up a sheet that will automatically generate a table/list of all possible combinations of 3 seperate lists of data. I have essentially got what I want however as I wish to change the base list lengths from time to time, the generation of all the combinations has to be flexible such that it doesnt do what it is doing for me in this example I have attached.
Combination_Generation.xlsx
I shall explain this spreadsheet.
Collumns A, B and C contain my base list data, that is, the days of the month, the asset numbers of assets that will be working that month and the shifts that they will work. Column C will not change in length, however column A and B will as the length of the month will change and the number and type of assets used in that month will change. Column A is generated in reference to cell L2 (which is determined from L1). Column E then generates the first set of combinations followed by Column F which adds the final combination as you can see.
It is important to note that I have dragged the formula in column E down to the 26th row (highlighted in grey) as list B will change in length (potential length change shown by red highlight). This works fine and returns blank cells as per the formula ("") depending on the length of list B. However, Column F is reading the blanks in column E and using them in the final combination function which as a result is returning false combinations as I have highlighted in orange (for the first occurence). (Ignore data in columns G, H & I)
How can I fix this?
Any help will be greatly appreciated and thankyou in advance.
Kind Regards,
Ben
Bookmarks