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

New Post: PHPExcel Excel2007 can not handle currency format correctly

$
0
0
MarkBaker,

Thanks for post your comments

I tested two excel files with same data. One save as Excel5 1997-2003 (xls). Other saved as Excel2007 xlsx.

I set cells format as currecy,then move click "custom". Then run PHPExcel to read and display the value of getFormatCode(). The results are:
For Excel5 file, getFormatCode() returns expected format code such as "$"#,##0, $"#,##0;[Red]"$"#,##0, $"#,##0_);("$"#,##0), or $#,##0_);Red
For Excel2007, if cell format is -$1,234 or $1,234, getFormatcode() returns $#,##0 or $#,##0;[Red]"$"#,##0 : which means "Expected"
if cell format is ($1,234), getFormatCode() returns General。

Viewing all articles
Browse latest Browse all 2707

Trending Articles



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