WRAPCOLS(range, wrap_count, [pad_with])One free generation or explanation per browser, shared across Excel and Google Sheets. Account usage limits apply afterward.
range:
The range of cells that you want to wrap into columns.
wrap_count:
The number of columns to wrap the specified range into.
pad_with:
(Optional) The value to use for padding the resulting array if the total number of cells in the range is not evenly divisible by wrap_count.
The WRAPCOLS function in Google Sheets is a useful tool that allows you to rearrange a single column of data into multiple columns. This function is particularly helpful when you want to present data in a more organized and visually appealing way, making it easier to read and analyze. By specifying the number of columns you want to create, WRAPCOLS automatically wraps the data into the desired format.
In simpler terms, WRAPCOLS helps you transform a long list of items into a grid layout, which can be especially beneficial for reports, dashboards, or any situation where you want to display data more effectively.
Imagine you have a list of fruits that you want to display in a grid format:
| Fruits |
|---|
| Apple |
| Banana |
| Cherry |
| Date |
| Elderberry |
| Fig |
| Grape |
| Honeydew |
You want to display these fruits in 3 columns instead of a single column.
To achieve this, you would use the WRAPCOLS function as follows:
=WRAPCOLS(A2:A9, 3)In this formula:
A2:A9 is the range containing the list of fruits.3 is the number of columns you want to create.When you apply the WRAPCOLS formula to the Fruits List, the output would look like this:
| Column 1 | Column 2 | Column 3 |
|---|---|---|
| Apple | Date | Grape |
| Banana | Elderberry | Honeydew |
| Cherry | ||
| Fig |
As you can see, the fruits are now organized into three columns, making it easier to read.
WRAPCOLS is beneficial because it simplifies the process of organizing data in Google Sheets. It allows you to present information in a structured format without manually rearranging the data. This can save time and enhance the visual appeal of your spreadsheets, making them more user-friendly.
WRAPCOLS is an essential function for anyone looking to improve the organization and presentation of data in Google Sheets, providing a straightforward way to enhance your spreadsheets.
Happy spreadsheeting!
You have a list of product names in a single column. By using WRAPCOLS, you can rearrange the data into multiple columns, making it easier to view and compare products side by side, enhancing organization and readability for inventory management.
Sign up for Better Analyst and get unlimited AI-powered formula generation, explanations, and advanced data analysis.
Browse our complete library of Google Sheets formula guides
Compare your options
Open a neutral research prompt in the AI tool you already use. Compare capabilities, limitations, and fit before you choose.
AI answers can be incomplete. Check source links, current pricing, and product documentation before deciding.