Sparkline source
=SPARKLINE(TOROW(B2:B13)) turns monthly vertical sales into an in-cell line chart.
TOROW flattens a range into a single row spill. Like TOCOL but horizontal, it helps build header arrays, SPARKLINE source rows, and inputs for functions that expect one horizontal vector.
Use TOROW when a vertical or matrix block must become one row for charts, sparklines, or horizontal MATCH lookups.
Skip TOROW when a column list is the goal. Use TOCOL instead.
Reference the block to flatten into one row.
Choose scan order with the optional second argument.
Confirm the spill fits across empty columns to the right.
Feed the row into SPARKLINE or MMULT as needed.
Combine with TRANSPOSE if you need column after row reshape.
Test on small range to confirm left-to-right order.
=SPARKLINE(TOROW(B2:B13)) turns monthly vertical sales into an in-cell line chart.
=TOROW(Headers!A1:D1) copies header labels into one row on a dashboard.
=TOROW(A2:C4, 1) scans by column into one horizontal list for MATCH.
Build this without starting from a blank cell
Use a Better Sheets tool for TOROW, then watch a walkthrough when you want the full pattern.
Watch how TOROW works
TOCOL converts a range into a single column. You can choose whether it reads down each column first or across rows first. It replaces manual paste-special transpose chains when reshaping blocks for UNIQUE or FILTER.
Read guide →HSTACK appends arrays horizontally so columns sit side by side in one spilled table. It replaces fragile copy-paste when combining QUERY outputs, IMPORTRANGE blocks, or calculated columns with matching row heights.
Read guide →VSTACK stacks arrays on top of each other into one taller table. Combine regional exports, monthly snapshots, or FILTER results with the same columns without manual paste below last row.
Read guide →FLATTEN converts a two-dimensional range into a single column, reading across rows then down. It is useful after SPLIT or when you need every value from a block in one list for UNIQUE, COUNTIF, or mail merge prep.
Read guide →Done reading about TOROW?
Membership unlocks 636+ tutorials, unlimited generators, and every template. Practical lessons. Zero fluff.
Need this once
Jump to a free tool or a single tutorial for this topic.
Learning Sheets for real
Unlock the full library, generators, and templates with membership.