FormulaCamp
Completed
← Google Sheets functions
Google Sheets function

TOROW in Google Sheets

TOROW with worked examples you can test in the live grid. The argument details are in the Excel guide.

In Google Sheets

The arguments and common errors are covered in the TOROW Excel guide; check the function help in Google Sheets for its own argument list.

Worked examples in Google Sheets

Row-wise reading order

AB
1ab
2cd

Formula: D1: =TEXTJOIN(",",,TOROW(A1:B2))

Result: a,b,c,d

The default scan goes along the first row and then the second.

Column-wise reading order

AB
1ab
2cd

Formula: D1: =TEXTJOIN(",",,TOROW(A1:B2,,TRUE))

Result: a,c,b,d

With scan_by_column TRUE the result runs down the first column and then the second.

Ignore errors

AB
11=NA()
234

Formula: D1: =SUM(TOROW(A1:B2,3))

Result: 8

The ignore code 3 removes the #N/A, so the other three numbers add up to 8.

Try it

A tiny spreadsheet with example data. Edit the formula or any number and see the result.

Formula in F2: =TOROW(C2:C5)

Example spreadsheet for TOROW
ABCDEFGHI
1RegionProductUnitsPriceResult
2EastPen1202.5120804560
3WestPen802.5
4EastBook4512
5NorthBook6012
6WestLamp3025
7EastLamp1525
Result in F2: 120

Google Sheets is used here only as a descriptive product name. FormulaCamp is not affiliated with Google.