|
|
| XP is just a number | |
| PerlMonks |
Re: WriteExcel and formulasby jmcnamara (Monsignor) |
| on Jul 23, 2012 at 13:25 UTC ( #983171=note: print w/ replies, xml ) | Need Help?? |
|
The code you show should work. I fleshed it out to a working example(*) and it shows the correct MAX and AVERAGE for valid cell ranges. If the cell range is empty then the result will be zero/#DIV0! like the corresponding Excel formula:
Spreadsheet::WriteExcel does sometimes mis-parse complex formulae resulting in an invalid 0 result. However, that isn't the case here. * You should have done this when asking the questing. It only takes a few extra lines of code.
--
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||||||