I am collecting some data through a Perl script. Data needs to be reviewed and processed by others using Excel. I am currently writing data as a tab delimited text file, and Excel can open it just fine.
There, the data hierarchy, however, would be easier if reviewers saw a tree rather than a flat list. That is, instead of presenting data in columns,
foo foo1 foo foo2 foo foo3 bar bar1 bar bar2 ...
present it as a tree with a mouse click for extension:
foo foo1 foo2 foo3 bar bar1 bar2 ...
The Excel group function (found in 2007 in the Data> Structure> Group section) is a good match for this presentation, which is a bit easier to work than pivot tables.
What is the easiest way to go from this flat list of columns to this grouped list? Ideally, I could write the data in text form so that Excel automatically applies the grouping when it was imported. Alternatively, if there were a small number of steps that the reviewer could apply after importing the data, for example, using a macro or template, this would also be normal.
source share