How to Unpivot in Excel — Turn Wide Columns Into Tidy Rows

The "wide → long" transform Excel makes painful, done in one repeatable step.

You get a report where each month (or product, or region) is its own column. It looks fine to a human, but it's useless for a pivot table, a chart, or a database. You need to unpivot it: turn those side-by-side columns into rows.

What "unpivot" actually means

This wide layout —

RegionJanFebMar
North120135150
South9011095

becomes this tidy long layout —

RegionMonthSales
NorthJan120
NorthFeb135
NorthMar150
SouthJan90

The month names move into one column, the numbers into another. Now it pivots, filters, and charts cleanly.

The painful ways to do it in Excel

The repeatable way, step by step

  1. Open your wide file (CSV or Excel).
  2. Add an Unpivot step.
  3. Pick the columns to keep as-is (e.g. Region).
  4. Pick the columns to fold into rows (e.g. Jan, Feb, Mar).
  5. Name the two new columns (e.g. Month and Sales).
  6. Save it as a recipe.
Next month's file has the same shape but new numbers? Load it, run the saved recipe, and it unpivots identically — no rebuilding, no remembering which columns to select.

Do it in one click with Kramata

Kramata is a free desktop app where Unpivot is a single step in a reusable recipe. No M code, no formulas — just pick which columns stay and which fold, and you're done. Your data never leaves your computer.

Download Kramata free for Windows

Related

A simple Power Query alternative · Merge two spreadsheets without VLOOKUP

FAQ

Is this the same as Power Query's "Unpivot Columns"? Same result, in plain language, built for non-technical users.

Can I unpivot dozens of columns at once? Yes — pick them all to fold in one step.

What about the reverse (long → wide)? That's a pivot/group-and-summarize step, also available in Kramata.