Hello Monks!

I want to calculate the time spent on several tasks, source file is a csv or excel sheet with:

Date;Name;Subject;Minutes; 01.02.2011;Name ;XXX 01.02.2011 (MH) Server Reboot after installing ne +w Controller Software e.g. Checked Logfiles ... 15:45-17:30
1. column: Date
2. column: name
3. column: Subject
4. column should be: spent time (empty now, this should be calculated)

So i have to calculate hh:mm-hh:mm from the 3. column and add a 4. column containing the results(105 minutes in the above example)

Calculated Result should look like:
Date;Name;Subject;Minutes; 01.02.2011;Name ;XXX 01.02.2011 (MH) Server Reboot after installing ne +w Controller Software e.g. Checked Logfiles ... 15:45-17:30;105;
Any hints how to do start over?
I think its easier to work with the .csv than to mess with Win32::OLE?

Thanks
MH

In reply to Calculate time from excel/csv file? by matze77

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.