I am the current maintainer of Spreadsheet::ParseExcel.

Excel stores formulas in two parts. The first in a pre-parsed stack of RPN tokens that the Excel formula parser uses and the second is the value of the formula when it was last evaluated (generally when the workbook was saved).

Spreadsheet::ParseExcel ignores the first part (a general deparser is a little too tricky to implement) and just reads the result part. This is usually okay for applications that read an Excel file but isn't very useful if you are trying to re-write a file since the formula is effectively lost. This is currently the case with Spreadsheet::ParseExcel::SaveParser.

So it isn't the case that your formulas aren't being evaluated at the right time. They aren't evaluated at all.

Currently, there isn't a workaround for this. I have some plans for solutions that might be implemented in the future but they are either non-trivial or potentially error prone and neither will happen in the short term, unfortunately.

--
John.


In reply to Re: Spreadsheet::SaveParser - how to preserve formulas during parse, evaluate during write ? by jmcnamara
in thread Spreadsheet::SaveParser - how to preserve formulas during parse, evaluate during write ? by mikeh0078

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.