FormulaCraft

WRAPROWS

WRAPROWS takes a one-dimensional array and wraps it into a two-dimensional table where each row has a specified number of values. If the array length is not evenly divisible, the last row is padded with a specified pad value or #N/A by default. Available in Excel 365 and Google Sheets.

Excel
=WRAPROWS(A2:A7,2)
Google Sheets
=WRAPROWS(A2:A7,2)

Try it with your data

Edit the grid or formula, then run it through a real spreadsheet engine — no signup.

Sample data — click any cell to edit

Runs server-side · free · no signup

How it works

  1. 1A2:A7 is the flat 1D source array with 6 values.
  2. 22 specifies how many values should appear in each row of the output.
  3. 3The result is a 3-row by 2-column table wrapping the values sequentially.

Need a version for your data?

Try: “Arrange a list of 6 items into a table with 2 columns per row

Related

Written and reviewed by FormulaCraft Team. Each formula on this page is run through our verification engine before publishing.

Last reviewed: