Skip to content
Google Sheets

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.

  1. A column of month names turned into a header row:

    =TOROW(A2:A13)
  2. 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.

Loading the editor…