Merge name and metrics
=HSTACK(A2:C, E2:F) joins identity columns with KPI columns when row counts align.
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.
Use HSTACK to merge two or more column blocks with the same row count into one wide report.
Skip HSTACK when you need vertical stacking. VSTACK joins rows downward instead.
Ensure each input array has the same number of rows.
List arrays as HSTACK(a, b, c) in left-to-right order.
Leave wide spill space to the right of the formula.
Pad shorter lists with IF or MAKEARRAY only when intentional.
Combine with FILTER on each block first if widths differ in meaning.
Document column order for teammates reading the wide export.
=HSTACK(A2:C, E2:F) joins identity columns with KPI columns when row counts align.
=HSTACK(IMPORTRANGE(id, "Data!A:C"), D2:D) adds a local calculated column beside imported fields.
=HSTACK(QUERY(t1), QUERY(t2)) places two query outputs side by side for comparison.
Build this without starting from a blank cell
Use a Better Sheets tool for HSTACK, then watch a walkthrough when you want the full pattern.
Watch how HSTACK works
Guides that explain HSTACK in more depth.
Did you know you can actually code in Google Sheets?
Read post →Master Google Sheets from simple text input to complex operations with our FREE tutorials, templates, and tools! Unleash the full power of spreadsheets now!
Read post →Automate repetitive tasks, such as data entry, calculations, and formatting in Google Sheets.
Read post →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 →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 →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.
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 HSTACK?
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.