Data & CSV
CSV long to wide
Turn identifier/variable/value records into a wider table.
A clear answer. Here’s how.
Creates one row per exact identifier and one column per non-empty variable name, both in first-seen order. Missing combinations are blank. Repeated pairs follow your selected reject/first/last/sum rule; sum ignores blank values and rejects non-numeric text. Requires three distinct source columns, unique generated headings and at most 200 output columns.
See a worked example
Worked example
A fixed demonstration, separate from the values you enter above.
- Long CSV
Person,Month,Amount Ada,January,10 Ada,February,12 Sam,January,8 Sam,February,9
- Column separator
- Comma
- Identifier column
- Person
- Variable-name column
- Month
- Value column
- Amount
- Repeated identifier/variable pairs
- Reject repeated pairs
Example result
| Person | January | February |
|---|---|---|
| Ada | 10 | 12 |
| Sam | 8 | 9 |