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,TOROWscans the data by row. If you set this parameter toTRUE, the function will scan the data by column.
Step-by-Step Tutorial
-
Using
TOROWwith an array:- Example:
=TOROW({1, 2, 3})will return1, 2, 3.
- Example:
-
Using
TOROWwith a range of cells:- Example: If
A1:C1has the values1, 2, 3, then=TOROW(A1:C1)will return1, 2, 3.
- Example: If
Use Cases and Scenarios
- Data Consolidation: Combine multiple rows of data into a single row for easier analysis.
- Database Transformation: Convert data from a database format into a single row for reporting purposes.
- 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.