What is TOROW in Google Sheets?

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.

When to use it

Use TOROW when a vertical or matrix block must become one row for charts, sparklines, or horizontal MATCH lookups.

When to skip it

Skip TOROW when a column list is the goal. Use TOCOL instead.

How it works

  1. 1

    Reference the block to flatten into one row.

  2. 2

    Choose scan order with the optional second argument.

  3. 3

    Confirm the spill fits across empty columns to the right.

  4. 4

    Feed the row into SPARKLINE or MMULT as needed.

  5. 5

    Combine with TRANSPOSE if you need column after row reshape.

  6. 6

    Test on small range to confirm left-to-right order.

Examples in Google Sheets

Sparkline source

=SPARKLINE(TOROW(B2:B13)) turns monthly vertical sales into an in-cell line chart.

Header merge

=TOROW(Headers!A1:D1) copies header labels into one row on a dashboard.

Matrix to row

=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.

Better Sheets resources

Common mistakes

  • TOROW when TOCOL was needed, breaking downstream vertical formulas.
  • Not leaving enough empty columns for wide spills.
  • Including blank padding cells that flatten into zeros in charts.
  • Using TOROW inside SUM expecting automatic aggregation.
  • Wrong scan flag scrambling month order in trends.

Frequently asked questions

TOROW vs TRANSPOSE?
TRANSPOSE swaps rows and columns. TOROW always outputs one row from any shape.
TOROW for SPARKLINE?
Common pattern to convert vertical metrics to sparkline input.
TOROW length?
Equals cell count in the source rectangle.
TOROW and blanks?
Blanks flatten too. FILTER source first if needed.
Can TOROW feed XLOOKUP?
Yes as a horizontal lookup vector when aligned with keys.
TOROW spill blocked?
Clear cells to the right or move formula.
TOROW vs FLATTEN?
FLATTEN always column. TOROW makes one row.

Related Tutorials

Watch how TOROW works

Browse more tutorials
Calculate ROAS in Google Sheets

Calculate ROAS in Google Sheets

Calculate Return on Ad Spend with a formula combination. Bonus: create a...
Make a Tour of Your Sheet

Make a Tour of Your Sheet

create a tour of your sheet for users who might be using your sheet and ...
Scrape Google Maps

Scrape Google Maps

Scrape any query in Google Maps into your Google Sheets. Enter your API ...
Extract URLs from Google Sheets

Extract URLs from Google Sheets

When you can't get the url of a hyperlinked cell, do this instead.

Related glossary terms

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.