techjohnny has asked for the wisdom of the Perl Monks concerning the following question:
I have an order report that is generated in Crystal in this format:
I usually take this report and manually copy and paste transpose into a new worksheet so it will display in columns with all the customers in rows and the months across the top. I have used Perl in the paste to parse and reformat data before, but without help from the monks. I was hoping to get some help again?
Since some months do not have sales, that month should report either blank or 0. So far I've simply created an array with:
@months = (jan,feb,mar,apr,may,jun,jul,aug,sep,oct,nov,dec); for $m (@months) { print $m,"\t"; } print "\n";
This simply only creates the columns across the top, but the numbers is where it's tricky. I'm guessing it would look for MM/YYYY and data and enter that information or skip and fill in MM/YYYY 0 Thanks in advance.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Reformat RAW Excel Data
by GotToBTru (Prior) on Jan 11, 2016 at 20:15 UTC | |
by 1nickt (Canon) on Jan 11, 2016 at 21:58 UTC | |
by techjohnny (Novice) on Jan 12, 2016 at 01:12 UTC | |
by 1nickt (Canon) on Jan 12, 2016 at 03:45 UTC | |
|
Re: Crystal Reports to CSV
by FreeBeerReekingMonk (Deacon) on Jan 12, 2016 at 01:40 UTC | |
|
Re: Reformat RAW Excel Data
by FreeBeerReekingMonk (Deacon) on Jan 12, 2016 at 02:07 UTC |