Hi guys. I am trying to write a script to read in an Excel file (saved in text - tab delimeted format, so a text file really), search each file one line at a time to take out cells (i guess by using a regular expression for a pattern following a tab - what is the wildcard for tab?) that matches the pattern "(number/number)", eg (30 / 45). I then want to do the relevant calculation on this, ie in this case 30 divided by 5, and place the answer into the column in place of the original value in the cell. This way i can then re-open the text file in excel and the column of "(num/num)" values will be replaced with the corresponding numerical values. I also then want to take out whole columns and place them under previous columns, for example i want to take columns 4 and 5 and append them to the ends of columns 2 and 3 respectively. And to copy the contents of column 1 (title column) and append it to the bottom of column 1. If this makes sense to anyone i would be very grateful for your help. cheers

In reply to editing excel files by Mahoota

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.