Quantcast
Channel: PHPExcel Forum Rss Feed
Viewing all articles
Browse latest Browse all 2707

New Post: Avoid rand() recalculation when opening a woorkbook

$
0
0
At this point, no it isn't.
Excel flags certain functions such as RAND() as volatile and changes the behaviour of whether or not to recalculate cells in a spreadsheet on load based on that, and the (somewhat limited) documentation suggests that volatile formulae will always be recalculated.

When loading files into PHPExcel, PHPExcel will not recalculate any formulae unless you explicitly request getCalculatedValue() or getFormattedValue() for a cell
If you want to retrieve the result of a formula calculation without recalculating (e.g. the value that was last calculated in MS Excel itself) in PHPExcel, then getOldCalculatedValue() can be used.

Viewing all articles
Browse latest Browse all 2707

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>