Ubah array menjadi satu baris
=TOROW(array, ignore, scan_by_column)
| Parameter | Deskripsi |
|---|---|
array |
The array to transform. |
ignore |
Control to ignore blanks and errors. |
scan_by_column |
Scan array by column. TRUE = by column, FALSE = by row (default). |
By default, the TOROW function transforms a two-dimensional array into a single row, one row at a time. In the example below, the formula in F4 is:
=TOROW(B4:D5)
The ignore argument in TOROW can be set to ignore blanks and/or errors like this:
=TOROW(array,1) // ignore blanks
=TOROW(array,2) // ignore errors
=TOROW(array,3) // ignore blanks and errors
By default, TOROW will read values "by row" from left to right. To read values instead by column, set scan_by_column to TRUE or 1. The worksheet below
=TOROW(B4:D5,,TRUE)