Gunnar Hjalmarsson said:
Really?

The reason why I pretended not to 'understand' is that
OP's "How can this be done?" doesn't indicate that he had made any own
attempt to find a solution. Such as a simple search for 'Excel' at
search.cpan.org...
Well, he is posting this in a Perl group, so one could assume he meant in
Perl. As for weather or not he did any prior homework, well I think its a
bit inconclusive.
Maybe that's just me, but I think it's reasonable to expect some own
effort before asking for help here.
How do we know this isn't his last desperate attempt? This doesn't seem like
something trivial and while Excel itself may be off topic, there could be
something in Perl that can be of some relation, say creating a tab delimited
file that can be easily made into an Excel spread sheet. But that would not
make it directly related, and may not be what the OP is looking for.