=EXPAND(array, [rows], [columns], [pad_with])
=EXPAND(C6:D13, 12, 3)
expands the array C6:D13 to 12 rows and 3 columns. This is useful for when a user wants to increase the size of an array with a set number of rows and columns.=EXPAND(C6:D13, 12, 3, "-")
pads the new array values with a hyphen. This is useful when a user wants to add values to an array that are easily distinguishable from the original values.=EXPAND(C6:D13, 12, , "-")
increases the initial array to 12 rows. This is useful when a user wants to increase the size of an array without changing the number of columns.=EXPAND(A4:C15, , 4, "-")
expands the array to the right to four columns. This is useful when a user wants to increase the size of an array without changing the number of rows.The EXPAND function is a useful tool for adding rows and columns to an array. It takes four arguments, and the row and column numbers supplied determine the dimensions of the resulting array.