Generating item codes

It is a common practice in domestic retail outlets to keep a large number of items under one code. In fact, it is one item, but its additional attributes are not taken into account, such as: color, size, design, season … Consequently, the stocks are incorrect. How to form item codes in such a way that, within the code itself, all its attributes are taken into account? We will use permutations!

MAKEARRAY function

MAKEARRAY allows you to easily generate an array (range) of values. The first two arguments are the number of rows and columns, and further should specify the expression within which the calculation is performed using the LAMBDA function. This function is also dynamic in nature because it does not return a single value but a range in accordance with the given dimensions.