Open michaelnguyen2021 opened 8 years ago
I think we should add Accounting Number Format (as click the $ button in Excel) to NumberFormat class
Found the format code on StackOver (http://stackoverflow.com/questions/5669941/phpexcel-accounting-formats )
$objPHPExcel->getActiveSheet()->getStyle($cell)->getNumberFormat() ->setFormatCode('_("$"* #,##0.00_);_("$"* \(#,##0.00\);_("$"* "-"??_);_(@_)');
I test and it works as expected
There's nothing to stop you defining additional formats in your own code, they're simply strings as you see
I think we should add Accounting Number Format (as click the $ button in Excel) to NumberFormat class
Found the format code on StackOver (http://stackoverflow.com/questions/5669941/phpexcel-accounting-formats )
I test and it works as expected