Convert a range to a single column or row with TOCOL and TOROW

Use TOCOL to flatten any multi-column range into one column, or TOROW to flatten into one row. Optionally ignore blank cells to get a compact list.

What the video covers

Google Sheets: functions for converting ranges into single columns or rows

Watch the video on YouTube

Step-by-step instructions

  1. Select output cell
    Click the cell where you want the flattened result to begin.
  2. Enter the appropriate function
    Type =TOCOL( to create a single column, or =TOROW( to create a single row.
  3. Specify the range
    Select or type the range you want flattened (for example A1:C10).
  4. Optional: ignore blanks
    Add a second argument of TRUE to omit blank cells or FALSE to keep blanks, e.g. =TOCOL(A1:C10, TRUE).
  5. Close and apply
    Close the parentheses and press Enter. Google Sheets will output the flattened column or row starting at the chosen cell.
  6. Use the result
    Use the flattened output for filtering, sorting, deduplication, or feeding into other formulas.

Watch the video

Video thumbnail for Convert a range to a single column or row with TOCOL and TOROW Play tutorial

Watch on YouTube

Why it matters

TOCOL and TOROW let you quickly consolidate scattered or messy table data into a single column or row for easier analysis, deduping, or further processing without manual copying.

Check your result

Result appears where you entered the formula: TOCOL(range, ignore_blank) produces a single vertical list; TOROW(range, ignore_blank) produces a single horizontal list. If ignore_blank is TRUE, empty cells are omitted.

Troubleshooting

If you see errors or unexpected results: ensure you selected the correct range, check that your spreadsheet supports these functions, and confirm the optional second argument is TRUE or FALSE (not text). If output overlaps existing data, move the formula to a clear area.