What the video covers
Google Sheets: functions for converting ranges into single columns or rows
Watch the video on YouTubeStep-by-step instructions
- Select output cell
Click the cell where you want the flattened result to begin. - Enter the appropriate function
Type =TOCOL( to create a single column, or =TOROW( to create a single row. - Specify the range
Select or type the range you want flattened (for example A1:C10). - Optional: ignore blanks
Add a second argument of TRUE to omit blank cells or FALSE to keep blanks, e.g. =TOCOL(A1:C10, TRUE). - Close and apply
Close the parentheses and press Enter. Google Sheets will output the flattened column or row starting at the chosen cell. - Use the result
Use the flattened output for filtering, sorting, deduplication, or feeding into other formulas.
Watch the video
Play tutorial
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.