Excel Unpivot and Reshape Tool (Wide to Long, Long to Wide)

Load a table, add steps such as unpivot, pivot, fill down, combine two-row headers or transpose, preview the result and export it to XLSX, CSV or JSON.

S'executa al teu navegador. Els fitxers mai no surten del dispositiu. Mira com comprovar-ho

…

Com es fa

  1. 1
    Load the table

    Open XLSX, CSV or paste cells.

  2. 2
    Fix headers and blanks

    Combine two-row headers and fill down merged cells.

  3. 3
    Reshape

    Unpivot, pivot or transpose.

  4. 4
    Review

    Check the result table and the steps list.

  5. 5
    Export

    Download XLSX, CSV or JSON.

Sobre aquesta eina

Reports are usually wide: one row per product with a column for every month, merged region cells, a header split over two rows. Analysis tools, pivot tables, charts and databases want long, tidy data: one row per product per month, with a month column and a value column. Converting by hand means copying and pasting dozens of columns; Power Query can do it but is not available everywhere and has a learning curve. This tool performs the common reshaping steps in a browser tab. Unpivot keeps the identifier columns you choose (such as Region and Product) and turns the other columns into rows, writing the old column header into a new column you name (such as Month) and the cell into a value column, optionally skipping empty cells. Pivot does the reverse: it takes a column whose values should become headers, a value column and an aggregation (sum, count, average, min, max, first value or joined text) for rows that share the same labels. Fill down copies the last non-empty value into the blank cells below, repairing exports from merged cells. Two-row header combines a merged year row with the quarter row beneath it into names like "2025 Q1". Transpose swaps rows and columns. Steps are applied in order and listed; remove any step and the rest replay on the original data.

Who it is for

Analysts preparing data for pivot tables and BI tools, finance teams turning budget sheets into databases, researchers tidying survey exports and anyone fighting merged cells.

Wide and long

| Wide | | | Long | | | |---|---|---|---|---|---| | Product | Jan | Feb | Product | Month | Value | | Chairs | 120 | 135 | Chairs | Jan | 120 | | | | | Chairs | Feb | 135 |

Long data is easier to filter, chart and load into databases; wide data is easier to read in a report.

Typical workflows

1. Fill down merged columns such as Region. 2. Unpivot the month columns. 3. Export to a pivot table or BI tool.

Or, for a report: pivot long data into months across the top with Sum.

Aggregation

When several rows share the same labels and header value, pivot combines them. Choose Count to see how many records each cell represents, or Join text for comments.

Limits

The tool reshapes values; it does not keep cell formatting or formulas, and very large tables (hundreds of thousands of rows) may be slow in the browser.

Worked example

A sales report with Region (merged), Product and four month columns becomes 24 tidy rows after Fill down on Region and Unpivot of Jan to Apr into Month and Value. Pivoting it back with Sum by Region gives monthly totals per region.

Privacy

Your data stays in your browser.

Exemple resolt

6 rows × 4 months → fill down + unpivot → 24 tidy rows; pivot back by region.

En resum

Preguntes freqüents

How do I unpivot data in Excel without Power Query?

Load the sheet here, choose the identifier columns and unpivot the rest, then export.

What is the difference between pivot and unpivot?

Unpivot turns columns into rows (wide to long); pivot turns row values into columns.

How do I fill merged cells?

Use Fill down on the column that had merged cells.

Can it sum duplicates when pivoting?

Yes, choose Sum, Count, Average, Min, Max, First or Join text.

Can I undo a step?

Yes, remove it from the steps list or press Ctrl+Z.

Is my data uploaded?

No, it is processed in your browser.

Totalment gratisSense cost, sense registre
Els fitxers es mantenen privatsTot funciona al teu navegador
Fàcil en el teu idiomaDisponible en molts idiomes