TOROW

returns an array as a single row · from excel · excel: verified match · sheets: verified match

signature

TOROW(array, [ignore], [scan_by_column])

returns: array

argumentrequired
array required
ignore optional
scan_by_column optional · defaults to 0

examples

formula and result, taken from the engine's own test suite — every result below is asserted in CI, not written by hand.

ABC
1 102alpha
2 204beta
3 306gamma
fx =TOROW(A1:C3) 10

related

  • ARRAY_CONSTRAIN truncates a range to at most the given rows and columns
  • ARRAYFORMULA evaluates an expression across a range (this engine already spills, so it is a pass-through for sheets compatibility)
  • ARRAYTOTEXT converts array to text representation
  • BYCOL applies lambda to each column of array
  • BYROW applies lambda to each row of array
  • CHOOSECOLS returns the specified columns from an array