Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Sort CSV file within Excel based on specific column

by jaacmmason (Acolyte)
on Oct 11, 2012 at 19:57 UTC ( #998526=perlquestion: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    #!perl
    
    ...
     
    #Sort the file based on "Call Type" Column (F is column number 5, as A
    + is 0)     
       $Excel->sort_data('WorksheetName',5,'DESC');
    
  2. or download this
    #Find Last Column and Row
    my $LastRow = $Sheet->UsedRange->Find({What=>"*", SearchDirection=>xlP
    +revious, SearchOrder=>xlByRows})->{Row};
    my $LastCol = $Sheet->UsedRange->Find({What=>"*", SearchDirection=>xlP
    +revious, SearchOrder=>xlByColumns})->{Column};
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://998526]
Approved by Corion
help
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (6)
As of 2018-06-18 06:27 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Should cpanminus be part of the standard Perl release?



    Results (108 votes). Check out past polls.

    Notices?