Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re: Filtering an excel.

by CountZero (Bishop)
on Sep 02, 2012 at 16:15 UTC ( [id://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

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?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others having an uproarious good time at the Monastery: (2)
As of 2024-04-19 01:07 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found