So many functions in Microsoft Excel help you organize your numbers and data. One of these functions is the WRAPCOLS function. This function offers Excel users a new and exciting way to quickly convert their column into a 2D array, thus improving readability and how data appears.

This article will explore the WRAPCOLS function and its capabilities and demonstrate how to use it effectively.

A spreadsheet showing the WRAPCOLS function in Excel

What Is the WRAPCOLS Function in Excel?

The WRAPCOLS function works by wrapping the values of rows and columns into a two-dimensional column array. You will specify the length of each column within the formula.

The WRAPCOLS Function Syntax in Excel

The syntax of the WRAPCOLS function has the following arguments:

Let’s break down each argument of the function:

How to Use the WRAPCOLS Function in Excel

To get started, we need sample data. you’re able to use one of the many ways tonumber rows in Excelto get a list of numbers from 1 to 20. To wrap these numbers into a 2D array, you can use the WRAPCOLS functions.

Your final syntax will be:

By default, Excel displays an #N/A error if the number of values is exhausted and is not up to the number you specified in the wrap_count.

What does it mean? Replace the 4 with 7 in your initial formula. That means your syntax should be:

A spreadsheet showing the WRAPCOLS function being used in Excel

The #N/A error that appears means all values from your source have been accounted for. To ensure that that error does not appear, specify a value for the pad_with argument. To do this:

A WRAPCOLS Function Use Case

Let’s take a situation. Assuming you have a list of dates that you want to split into quarters. You can use the WRAPCOLS function. All you need to do is to:

Wrap Columns With Ease in Microsoft Excel

No matter how inconsistent your data is in Excel, you’re able to wrap and organize them into columns. Just pick the number of values you want in each column and press enter.

Besides this function, you can also use the WRAPROWS function to wrap your data into rows and enjoy the same simplicity when working.

A spreadsheet showing an #N/A error showing while using the WRAPCOLS function in Excel

A spreadsheet showing the WRAPCOLS function being used in Excel

A spreadsheet showing the WRAPCOLS function being used in Excel