How to use the WRAPCOLS function in Excel
Want to split a long list into multiple columns? So let's learn how to use the WRAPCOLS function in Microsoft Excel .
There are many functions in Microsoft Excel that can help sort numbers and data. One of these functions is WRAPCOLS. This function gives Excel users an exciting new way to quickly convert their column into a 2D array, thereby improving readability and data visualization.
What is the WRAPCOLS function in Excel?
The WRAPCOLS function works by combining row and column values into a two-dimensional column array. You will specify the length of each column in the formula.
This is a new dynamic array function in Excel. It is available to all Microsoft 365 subscribers, including the basic plan.
Syntax of WRAPCOLS function in Excel
The syntax of the WRAPCOLS function has the following arguments:
=WRAPCOLS(vector, wrap_count, [pad_with])
Specifically:
- Vector represents the reference or range of cells you want to include.
- wrap_count is the maximum number of values for each column.
- pad_with is the value you want to add to the row. In Excel, the default is #N/A if no data is specified.
How to use the WRAPCOLS function in Excel
To get started, you need sample data. You can use one of several ways to number rows in Excel when you want to get a list of numbers from 1 to 20. To include these numbers into a 2D array, you can use the WRAPCOLS function.
1. Write the formula in a cell or through the formula bar =WRAPCOLS( .
2. Select the array of numbers and write a comma.
3. For the wrap_count argument , write 5. This will split the number into columns, where each column contains 5 values.
4. Close brackets.
5. Press Enter on the keyboard.
The final syntax is:
=WRAPCOLS(B2:B21,5)
How to use pad_with argument in WRAPCOLS . function
By default, Excel throws a #N/A error if the number of values has expired and is not equal to the number you specified in wrap_count.
What does that mean? Replace 4 with 7 in the original formula. The syntax will be as follows:
=WRAPCOLS(B2:B21,7)
The #N/A error that appears means all values from the source have been taken into account. To make sure that error doesn't appear again, specify a value for the pad_with argument. To make this work:
- Write WRAPROWS( .
- Select the range of numbers, and then add a comma.
- Write 7 for the wrap_count argument .
- Add commas.
- For the pad_with argument , write a " " sign , representing the distance.
- Press Enter on the keyboard.
The final syntax would be:
=WRAPCOLS(B2:B21,7," ")
Example case using WRAPCOLS . function
Now let's consider a situation where suppose you have a list of dates that you want to split into 4 parts. You can use the WRAPCOLS function. Proceed as follows:
- Write this function.
- Select range. They will be dates.
- Choose 3 as the wrap_count argument .
- You can add spaces, even dashes as the pad_with argument .
- Finally, press Enter on the keyboard.
The final syntax would be:
=WRAPCOLS(C2:N2,3)
Even if your data is inconsistent in Excel, you can still include and organize them into columns. Just select the desired number of values in each column, and then press Enter.
In addition to the Excel WRAPCOLS Function, you can also use WRAPROWS to break data into rows.
Hope the article is useful to you!
You should read it
- How to use the SUM function to calculate totals in Excel
- How to use the LEN function in Excel
- How to use the WRAPROWS function in Excel
- How to use the MOD function and QUOTIENT function in Excel
- How to use the NPER function in Excel to plan loans and savings
- How to use COUNTIF function on Excel
- How to use MID functions to get strings in Excel
- How to fix the SUM function doesn't add up in Excel
May be interested
- How to use the WRAPROWS function in Excelhaving trouble with handling large data sets in excel? then learn how to use the wraprows function to split them into more manageable rows.
- How to use the IFS function in Excel 2016the ifs function in excel is a logical function introduced in excel 2016. this function is a function that replaces the nested if function and is much easier to use. the ifs function checks one or more conditions and returns a value that meets the first true condition.
- How to use the NPER function in Excel to plan loans and savingsdo you want to effectively manage and control your personal finances? then we invite you to learn how to use excel's nper function.
- How to use the function to delete spaces in Exceldeleting white space with functions in excel makes it easier for users to handle content, instead of traditional editing.
- How to fix the SUM function doesn't add up in Excelin the process of summing with sum in excel, you will encounter some errors such as not jumping the number, not adding the sum. so how to handle this problem?
- How to use the SUBTOTAL function in Excelthe subtotal function in excel is used in many different cases, helping you to sum subtotals in a list or database, unlike the sum function in excel such as counting cells, calculating average, finding the largest / smallest value. or sum the filtered list values in excel
- Save time with these text formatting functions in Microsoft Excelmicrosoft excel is a main application for anyone who has to work with numbers, from students to accountants. but its usefulness extends beyond a large database, it can do a lot of great things with text. the functions listed below will help you analyze, edit, convert, change text and save many hours of boring and repetitive tasks.
- SUMPRODUCT function in Excel: Calculates the sum of corresponding valuesthe sumproduct function is an extremely useful function when you have to deal with a lot of data numbers in microsoft excel. here are the things you need to know about the sumproduct function in excel.
- How to use the SUMIF function in Excelthe sumif function in excel is a function used to compute values in a specified range. the sumif function can be used for summing cells based on the date, data and text that are connected to the specified area.
- How to use the DAVERAGE function in Exceldaverage in excel is a function that calculates the average value of data with given conditions in a spreadsheet. so, how to use this function?