http://www.perlmonks.org?node_id=991298


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"!

CountZero

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!