Solved

How do I delete columns from an Excel document on a UNIX platform.

Posted on 2008-10-09
3
661 Views
Last Modified: 2013-12-05
We're using the PERL module Spreadsheet::WriteExcel to create spreadsheets on our UNIX system.  We have a workbook we generate that has many sheets.  We would like to publish two version of it.  The second version having many of the columns removed.  Is there a way to remove columns from an Excel workbook using PERL or another tool?  We don't want empty columns left in the 2nd version.

Thank you
0
Comment
Question by:steelspy
3 Comments
 
LVL 6

Expert Comment

by:wwnosal
ID: 22681491
Look in here, quite nice examples of parsing and writing excel files on unix.

http://www.ibm.com/developerworks/linux/library/l-pexcel/
0
 
LVL 39

Expert Comment

by:Adam314
ID: 22681609
Do the columns have to be deleted from the existing file?  Or could you create two files where you are now creating one.

Using the write_* commands, you could just not write the columns of the second file you don't want there.
0
 

Accepted Solution

by:
steelspy earned 0 total points
ID: 22701522
There does not appear to be a vehicle to delete columns using these tools.  The Perl module spreadsheet::writeexcel  mandates that you specify column numbers.  Thus we require extensive effort to publish two version of the same spreadsheet.

0

Featured Post

Secure Your Active Directory - April 20, 2017

Active Directory plays a critical role in your company’s IT infrastructure and keeping it secure in today’s hacker-infested world is a must.
Microsoft published 300+ pages of guidance, but who has the time, money, and resources to implement? Register now to find an easier way.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction This Article briefly covers methods of calculating the NPV and IRR variants in Excel as well as the limitations in calculating and interpreting IRR results. Paraphrasing Richard Shockley, author of my favourite finance reference tex…
This article descibes how to create a connection between Excel and SAP and how to move data from Excel to SAP or the other way around.
The viewer will learn how to create a normally distributed random variable in Excel, use a normal distribution to simulate the return on an investment over a period of years, Create a Monte Carlo simulation using a normal random variable, and calcul…
The viewer will learn how to create two correlated normally distributed random variables in Excel, use a normal distribution to simulate the return on different levels of investment in each of the two funds over a period of ten years, and, create a …

696 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question