Inkwell Data / Unpivot columns to rows

Unpivot: turn columns into rows

A report with a column for every month is easy to read and hard to work with. Unpivot turns Jan, Feb, Mar… into two columns, Month and Value, with one row each, which is what pivot tables, charts, SQL and Power BI want.

  1. Add your file
  2. Tick the columns to turn into rows
  3. Download the long table
How it works ↓

Prefer to click on your data instead of picking steps from a list? Try the Workbench: same steps, same recipes.

1 Choose your file
Drop a file here, or click to choose CSV, Excel, JSON, Parquet, XML, YAML or PDF tables · stays on your device

New to Transform?

Each step makes one change to your file, and the list of steps becomes a recipe you can run again next month.

Monthly cleanupFix dates and amounts, tidy names and spellings, drop columns, then save it as a recipe.
Look up and totalBring in prices or managers from another file, then group & summarize into a report.
Big files welcomeMillions of rows? Build the steps on the first 5,000, then run them on every row.
or read how it works

How it works

  1. Add your file. The unpivot step opens with the number columns already ticked.
  2. Check the ticked columns (the ones to turn into rows) and name the two new columns, like Month and Sales.
  3. Click Add step, look at the preview and download. Save it as a recipe to do the same next month in one click.

Columns you don’t tick (like Region or Product) are repeated on every new row. Tick “Skip blanks” to leave out empty cells.

Questions

Are my files uploaded anywhere?

No. Your file is read by your own browser and processed on your device.

What’s the difference between wide and long data?

Wide data has a column per month or year. Long data has one row per item per month, with the month in its own column. Charts, pivot tables and databases work best with long data.

Is this the same as Power Query’s Unpivot Columns?

Yes, it does the same job, without opening Excel or Power BI.

Can I go the other way?

Yes. Summarize & pivot spreads rows back out into a column per value.