The WRAPCOLS function takes three arguments:vector,wrap_count, andpad_with.

Vector andwrap_countare both required.Vectormust be a one-dimensional array or range.Wrap_countis a number that represents the length of each column.

you’re able to override this behavior by providing a custom value for thepad_withargument.

WRAPCOLS function - basic usage

Whenwrap_counthas been reached, WRAPCOLS starts a new column.

Wrap count

Wrap_countrepresents the maximum number of values in each column.

Once the count has been reached, WRAPCOLS starts a new column.

WRAPCOLS function - basic usage

In the screen below, you’re free to see how this works.

you could override this behavior by providing a custom value for thepad_withargument.

The formula in D3 shows default behavior.

WRAPCOLS function - basic usage

As a result, the last 2 cells return #N/A.

By default, TOROW will scan values by row, but TOROW can also scan values by column.

TOCOL Function

The Excel TOCOL function transforms an array into a single column.

WRAPCOLS function - basic usage

By default, TOCOL will scan values by row, but TOCOL can also scan values by column.

WRAPCOLS function - basic usage

WRAPCOLS - wrap count behavior

WRAPCOLS - padding example

Excel WRAPROWS function

Excel TOROW function

Excel TOCOL function

WRAPCOLS function - basic usage

WRAPCOLS - wrap count behavior

WRAPCOLS - padding example