Skip to main content
April 1, 2026Bob Umlas/4 min read

Rearranging Data with New Functions in Excel

Master Excel's newest data rearrangement functions effectively

New Excel Functions Overview

TOCOL & TOROW

Convert arrays into single columns or rows. Perfect for reshaping data layouts and creating vertical or horizontal lists from multi-dimensional arrays.

CHOOSECOLS & CHOOSEROWS

Select specific columns or rows from arrays. Ideal for filtering and rearranging data without complex formulas or manual selection processes.

WRAPCOLS & WRAPROWS

Reshape single-column or single-row data into multi-dimensional arrays. Essential for converting linear data into organized tabular formats.

Rearranging Data with New Functions

Excel's modern array functions have revolutionized how we manipulate and reorganize data. In this comprehensive guide, we'll explore six powerful functions that will streamline your data transformation workflows: TOCOL, TOROW, WRAPCOLS, WRAPROWS, CHOOSECOLS, and CHOOSEROWS. These functions, part of Excel's dynamic array capabilities, eliminate the need for complex workarounds and manual copy-paste operations that once plagued spreadsheet users.

Let's begin with TOCOL, a function that transforms any array arrangement into a single vertical column. Consider this common scenario: you have test scores arranged in a grid format and need to convert them into a simple list for analysis or reporting.

Data

The TOCOL function excels at this transformation task. Its syntax follows a logical structure: =TOCOL(array, ignore, scan_by_column). The array parameter (B2:D8 in our example) defines your source data. The "ignore" parameter allows you to skip blank cells, errors, or both—crucial for maintaining clean datasets. The "scan_by_column" parameter controls the reading direction, which we'll examine shortly.

Here's the result:

Result

By default, TOCOL reads data horizontally first—notice how the values flow from Bob's test scores across row 2 (columns B, C, then D) before moving to row 3. This left-to-right, then top-to-bottom pattern mirrors how we naturally read text. However, you can reverse this behavior by setting the scan_by_column parameter to TRUE, making the function read vertically first:

Play

This vertical-first approach groups all Test1 scores together before moving to Test2 scores in cell G8—a powerful feature for organizing data by categories or time periods.

TOROW functions as TOCOL's horizontal counterpart, arranging array data into a single row rather than a column. This function proves invaluable when creating dashboard headers or preparing data for horizontal charts and visualizations:

Here

While you could achieve similar results with =TRANSPOSE(TOCOL(B2:B8,, TRUE)), using TOROW directly creates cleaner, more readable formulas. In professional environments where formula maintenance matters, this clarity translates to reduced errors and easier troubleshooting.

Moving beyond simple flattening operations, let's explore CHOOSECOLS—a selective filtering function that extracts specific columns from your data arrays. Instead of manually copying columns or creating complex INDEX-MATCH combinations, CHOOSECOLS provides surgical precision for column selection. Suppose you need to display only names and Test3 scores from your original dataset:

CHOOSECOLS makes this extraction effortless:

Trick

The function accepts the source array (A1:D8) followed by column numbers to display—in this case, columns 1 and 4. Beyond selection, CHOOSECOLS excels at reordering columns. Simply adjust the sequence of column numbers to rearrange your output:

Them

CHOOSEROWS operates with identical logic but targets rows instead of columns. This function shines when filtering data by categories, time periods, or specific criteria. For instance, to isolate students whose names begin with "J" while preserving the header row:

Header

The real power emerges when combining these functions. To create a vertical list from the filtered "J-student" results, nest CHOOSEROWS within TOCOL:

Names

This formula first filters rows 2, 4, and 6 from range A2:D8, then flattens the results into a single column. Such function combinations create sophisticated data transformations that would previously require multiple steps or VBA programming.

Now we shift focus to WRAPCOLS and WRAPROWS—functions that reverse the flattening operations of TOCOL and TOROW. These functions reshape linear data into multi-dimensional arrays, essential for creating formatted reports and structured layouts. Consider this vertical list of scores that needs reorganization:

With

Our goal is transforming this linear arrangement into a structured grid format:

This

This transformation requires a strategic three-function approach. The formulas reside in cells F1, E2, and F2, each serving a specific purpose in the data restructuring process.

The formula in F1 creates the column headers:

F1

This formula nests UNIQUE within TOROW to extract distinct test names and arrange them horizontally. While =TRANSPOSE(UNIQUE(B2:B16)) would achieve the same result, using TOROW demonstrates modern Excel best practices and expands your functional toolkit for complex scenarios.

Cell E2 contains a straightforward label:

E2

The crucial transformation occurs in F2 with the WRAPCOLS function:

Wrap

WRAPCOLS takes the vertical score list and wraps it into columns every 5 rows. Since each test contains exactly 5 scores, this parameter creates perfect alignment—when the function reaches the third score in F6, it automatically wraps to column G for Test2 scores.

Data organization often varies, requiring different wrapping strategies. Consider this alternative arrangement where data is grouped by student rather than test:

Differently

When data clusters into 3-item groups (student names followed by their three test scores), WRAPROWS becomes the appropriate tool for restructuring in cell F2:

F2

WRAPROWS creates new rows every 3 columns, perfectly aligning with our student-centric data structure. This flexibility between WRAPCOLS and WRAPROWS ensures you can handle virtually any linear-to-grid transformation requirement in your professional work.

Function Syntax Pattern

Most new Excel functions follow a consistent pattern: primary array parameter, optional ignore blanks parameter, and directional scanning parameter for flexible data manipulation.

Using TOCOL Function

1

Select Your Array

Choose the range of data you want to convert into a single column, such as B2:D8 containing test scores across multiple columns.

2

Set Ignore Parameter

Decide whether to skip blank cells in your array by setting the ignore parameter to control how empty values are handled.

3

Choose Scan Direction

Use scan_by_column parameter to control whether values are picked row-by-row then column, or column-by-column then row.

TOCOL vs TOROW Functions

FeatureTOCOLTOROW
Output DirectionVertical ColumnHorizontal Row
Best Use CaseCreating listsCreating headers
Alternative MethodManual copy-pasteTRANSPOSE(TOCOL())
ComplexitySimpleSimple
Recommended: Use TOCOL for vertical data lists and TOROW for horizontal arrangements. Both offer cleaner solutions than traditional transpose methods.
Scanning Direction Impact

The scan_by_column parameter significantly changes output order. FALSE scans row-by-row first, while TRUE scans column-by-column first, affecting how your data is arranged in the final result.

Function Complexity Comparison

TOCOL/TOROW
2
CHOOSECOLS/CHOOSEROWS
3
WRAPCOLS/WRAPROWS
4
Combined Functions
5

CHOOSECOLS and CHOOSEROWS Benefits

Pros
Select specific columns or rows without complex formulas
Rearrange column and row order easily
Works with any array size
Can combine with other functions seamlessly
Reduces need for helper columns
Cons
Requires knowing exact column or row numbers
Static references need manual updates if data structure changes
May create long formulas with many selections
Function Combination Power

Combining CHOOSEROWS with TOCOL creates powerful data filtering and reshaping in a single formula. This eliminates the need for multiple helper columns and intermediate calculations.

Using WRAPCOLS for Data Restructuring

1

Prepare Unique Headers

Use TOROW(UNIQUE(range)) to create horizontal headers from your vertical data, ensuring no duplicates appear in your final structure.

2

Set Up Row Labels

Place your row identifiers in the leftmost column to provide context for your wrapped data arrangement.

3

Apply WRAPCOLS

Use WRAPCOLS with your data array and specify the wrap count - after this many rows, data wraps to the next column automatically.

You should start getting comfortable with the new functions to have more tools in your toolbox
While TRANSPOSE can achieve similar results, mastering Excel's new functions provides more flexible and intuitive data manipulation capabilities for modern spreadsheet users.

Function Selection Guide

0/5

Key Takeaways

1Excel's new data rearrangement functions provide powerful alternatives to traditional TRANSPOSE and manual copy-paste methods for reshaping data structures efficiently.
2TOCOL converts multi-dimensional arrays into single columns with options to ignore blanks and control scanning direction for flexible data organization.
3TOROW functions similarly to TOCOL but creates horizontal arrangements, offering cleaner solutions than complex transpose formulas for row-based data layouts.
4CHOOSECOLS and CHOOSEROWS enable selective column and row display from arrays, allowing data filtering and rearrangement without helper columns or complex references.
5WRAPCOLS and WRAPROWS transform linear data into multi-dimensional arrays by specifying wrap intervals, perfect for converting lists into organized tabular formats.
6The scan_by_column parameter in TOCOL and TOROW significantly impacts output order, with FALSE scanning row-first and TRUE scanning column-first for different arrangements.
7Combining these functions creates powerful single-formula solutions for complex data transformations, such as TOCOL(CHOOSEROWS()) for filtered vertical lists.
8These functions reduce reliance on helper columns, intermediate calculations, and manual data manipulation while providing more intuitive and maintainable spreadsheet solutions.

RELATED ARTICLES