<< Go back to all functions

TOROW

The TOROW function in Google Sheets is used to transform an array or range of cells into a single row. This function can be useful in various scenarios where you want to convert data from multiple rows into a single row.

Function Syntax and Parameters

Syntax: TOROW(array_or_range, [ignore], [scan_by_column])

Parameters:

  • array_or_range: The array or range of cells to be transformed into a single row.
  • ignore: [Optional] This parameter allows you to ignore certain values or cells while transforming the array or range.
  • scan_by_column: [Optional] By default, TOROW scans the data by row. If you set this parameter to TRUE, the function will scan the data by column.

Step-by-Step Tutorial

  1. Using TOROW with an array:

    • Example: =TOROW({1, 2, 3}) will return 1, 2, 3.
  2. Using TOROW with a range of cells:

    • Example: If A1:C1 has the values 1, 2, 3, then =TOROW(A1:C1) will return 1, 2, 3.

Use Cases and Scenarios

  1. Data Consolidation: Combine multiple rows of data into a single row for easier analysis.
  2. Database Transformation: Convert data from a database format into a single row for reporting purposes.
  3. Data Migration: Transform data from multiple sources into a single row format for integration.

Related Functions

  • ARRAYTOTEXT: Converts an array to a single text string.
  • TRANSPOSE: Transposes the rows and columns of a range or an array.

Related Articles

Note: The video and related articles keys are not available for TOROW.