Category: FUNCTION | Updated: 2026-11-22

How to Use the WRAPCOLS Function in Google Sheets | Wrap a Single Column of Data by a Specified Number of Rows

What Is the WRAPCOLS Function?

The WRAPCOLS function arranges 1D data from a single column (or single row) from top to bottom, wrapping to the next column after a specified number of items (rows) to form a 2D table. It is useful when you want to split a long vertical list into a multi-column layout for printing or display.

Syntax

=WRAPCOLS(vector, wrap_count, [pad_with])
  • vector: The 1D (single-row or single-column) cell range or array to wrap.
  • wrap_count: A positive integer specifying the maximum number of elements (rows) per column.
  • pad_with: [Optional] The value to fill in if the last column has fewer elements than wrap_count (defaults to #N/A if omitted).

Example

Here is an example of wrapping a single-column list in A1:A5 every 3 rows into the next column starting at cell C1, padding leftover cells with blank strings ("").

Row Column A (Source Data) Formula in Column C Column C Column D
1 Jan =WRAPCOLS(A1:A5, 3, "") Jan Apr
2 Feb (Auto-spilled) Feb May
3 Mar (Auto-spilled) Mar (Blank)
4 Apr
5 May

Common Errors and Notes

  • #VALUE! Error: Passing a 2D range with multiple rows and columns as the first argument results in a #VALUE! error. If your source data spans multiple columns, first flatten it into one column with TOCOL before passing it in.
  • #N/A Errors in Padding: If the number of items is not a multiple of wrap_count and you omit the third argument, #N/A will be output in the remaining cells of the last column. In practice, specifying "" as the third argument is standard.
  • #REF! Error: An error occurs if any cell in the spill range already contains a value.

Frequently Asked Questions

Q. What is the difference between WRAPCOLS and WRAPROWS?

A. WRAPROWS arranges items from left to right and wraps to the next row after a specified number of columns, whereas WRAPCOLS arranges items from top to bottom and wraps to the next column after a specified number of rows.

Q. How do I remove the #N/A displayed in leftover cells?

A. Specify "" (two double quotes) as the third argument, like =WRAPCOLS(A1:A10, 3, ""), to turn the remaining cells into blank cells.