Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

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

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


Comment on Re: Filtering an excel.
Download Code
Re^2: Filtering an excel.
by Thomas Kennll (Acolyte) on Sep 02, 2012 at 17:37 UTC
    Thanks!! That was helpful!

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://991298]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (6)
As of 2014-07-30 00:24 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite superfluous repetitious redundant duplicative phrase is:









    Results (229 votes), past polls