Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
Hello,
I have this very wide spread sheet that I need to change it from horizon to vertical. To give you a rough idea, the original data layout looks like this:
|||01/01/2007|01/02/2007|01/03/2007|...|06/29/2007|
|JOHN DOE|Event1|PARTY|CLASS|WORK|...|VACATION|
|JOHN D0E|Event2|CLASS|CLASS|WORK|...|PARTY|
|JANE DOE|Event1|PARTY|CLASS|WORK|...|VACATION|
|JANE DOE|Event2|CLASS|CLASS|WORK|...|PARTY|
...
I would change the layout to the below format:
|JOHN DOE|01/01/2007|EVENT1|PARTY|
|JOHN DOE|01/02/2007|EVENT1|CLASS|
|JOHN DOE|01/03/2007|EVENT1|WORK|
|JOHN DOE|06/29/2007|EVENT1|VACATION|
...
|JOHN DOE|01/01/2007|EVENT2|CLASS|
|JOHN DOE|01/02/2007|EVENT2|CLASS|
|JOHN DOE|01/03/2007|EVENT2|WORK|
|JOHN DOE|06/29/2007|EVENT2|PARTY|
...
Is there an easy way to do it?
I'd greatly appreciate if you could please help me out.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: How to Change Data Layout from Horizon to Vertical
by shmem (Chancellor) on Jan 16, 2007 at 23:22 UTC | |
|
Re: How to Change Data Layout from Horizon to Vertical
by rodion (Chaplain) on Jan 17, 2007 at 00:30 UTC | |
|
Re: How to Change Data Layout from Horizon to Vertical
by NetWallah (Canon) on Jan 17, 2007 at 05:42 UTC | |
|
Re: How to Change Data Layout from Horizon to Vertical
by ww (Archbishop) on Jan 17, 2007 at 14:19 UTC | |
|
Re: How to Change Data Layout from Horizon to Vertical
by sailortailorson (Scribe) on Jan 16, 2007 at 23:11 UTC | |
| A reply falls below the community's threshold of quality. You may see it by logging in. |