Data & CSV
CSV wide to long
Turn measurement columns into variable/value rows.
A clear answer. Here’s how.
Keeps one identifier column and turns every other column into variable/value records in input row and column order. Measurement strings are preserved. Requires distinct, non-empty output headings and at least two input columns. Output is limited to 50,000 rows; blank omission tests exactly empty cells.
See a worked example
Worked example
A fixed demonstration, separate from the values you enter above.
- Wide CSV
Person,January,February Ada,10,12 Sam,8,9
- Column separator
- Comma
- Identifier column
- Person
- Output variable heading
- Variable
- Output value heading
- Value
- Blank measurement cells
- Keep blank values
Example result
| Person | Variable | Value |
|---|---|---|
| Ada | January | 10 |
| Ada | February | 12 |
| Sam | January | 8 |
| Sam | February | 9 |