TOROW function in Google Sheets
Transforms an array or range of cells into a single row.
=TOROW(array_or_range, [ignore], [scan_by_column])TOROW syntax and parameters
Three arguments, one required.
- array_or_rangeanyRequired
The array or range of cells to return as a row.
- ignorenumberOptional
By default, no values are ignored. Specify one of these values: 0: Keep all values 1: Ignore blanks 2: Ignore errors 3: Ignore blanks and errors
- scan_by_columnbooleanOptional
The boolean value of scan_by_column determines how the array is scanned. By default, the TOROW function scans the array by row. True: scans the array by column False: scans the array by row
TOROW examples
Formulas you'll actually reuse.
A column of month names turned into a header row:
=TOROW(A2:A13)A grid read into one row, skipping blanks and errors (ignore = 3):
=TOROW(B2:D5, 3)
TOROW in Excel
Same name — your formula ports as-is.
Try TOROW in the playground
Edit the example — nothing to install.
Preloaded with the TOROW formula from Example 1 — change anything and watch it respond.
Related functions
More ways Google Sheets gets this done.
- CHOOSECOLSCreates a new array from the selected columns in the existing range.ArrayExcel
- CHOOSEROWSCreates a new array from the selected rows in the existing range.ArrayExcel
- HSTACKAppends ranges horizontally and in sequence to return a larger array.ArrayExcel
- LINESTGiven partial data about a linear trend, calculates various parameters about the ideal linear trend using the least-squares method.ArrayExcel
- MDETERMReturns the matrix determinant of a square matrix specified as an array or range.ArrayExcel
- MINVERSEReturns the multiplicative inverse of a square matrix specified as an array or range.ArrayExcel