Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things

Re: Filtering an excel.

by CountZero (Bishop)
on Sep 02, 2012 at 16:15 UTC ( #991298=note: print w/replies, xml ) Need Help??

in reply to Filtering an excel.

Assuming you already have an Excel spreadsheet, use Spreadsheet::ParseExcel::Simple to read your spreadsheet row by row. Then check the value of the 'C' column in that row and if it meets your criterium, get the value of the other columns you need.

Spreadsheet::WriteExcel has an autofilter method, but it does NOT filter your data. It just sets up the autofilter function in the spreadsheet, so that when you next open the spreadsheet in Excel the autofilter is already installed for your use.

Note also that you cannot "edit" an existing spreadsheet with Spreadsheet::WriteExcel: it is strictly "write only"!


A program should be light and agile, its subroutines connected like a string of pearls. The spirit and intent of the program should be retained throughout. There should be neither too little or too much, neither needless loops nor useless variables, neither lack of structure nor overwhelming rigidity." - The Tao of Programming, 4.1 - Geoffrey James

My blog: Imperial Deltronics

Replies are listed 'Best First'.
Re^2: Filtering an excel.
by Thomas Kennll (Acolyte) on Sep 02, 2012 at 17:37 UTC
    Thanks!! That was helpful!

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://991298]
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (12)
As of 2018-04-19 21:33 GMT
Find Nodes?
    Voting Booth?