How do you unpivot in Google Sheets?

Unpivot turns wide columns into attribute-value rows, common in Power Query. In Google Sheets, use formulas such as SPLIT, QUERY, FLATTEN, or ARRAYFORMULA patterns, or an add-on for large tables. Apps Script works when the layout is fixed.

When to use it

Use unpivot-style formulas when Excel Power Query melted survey or month columns into rows.

When to skip it

Skip unpivoting when the wide layout is what your chart or pivot already expects.

Better Sheets resources

Related blog posts

Guides that explain Unpivot in more depth.

Browse the blog

Related terms

Done reading about Unpivot?

Membership unlocks 637+ 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.