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。
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。