This is:
- [x] a bug report
Format values with parameter
I create a parameter mask in excel 2016
Sorry for my bad english, for better explanation, i'm using images for example.
I'm need format a some cells with the Brazilian Real format. The library does not include this format by default.
I took the format used by Excel, using the program interface. When using within the library, the generated file does not apply the format.
Format gerated:
With used:
Final Result:
PHP: 7.1.9
Php Spreadsheet: 1.0 by composer.json
Use . for the decimal separator, , for the thousands separator in your format mask for PHPSpreadsheet.... the code is not locale-aware, and won't change it for you internally where the mask is always stored as . for decimals and , for thousands ; in MS Excel, localisation for thousands and decimal separators are handled within the Excel GUI.
ie.
->setFormatCode('R$ #,##0.00_-');
are working, thanks!
Most helpful comment
Use
.for the decimal separator,,for the thousands separator in your format mask for PHPSpreadsheet.... the code is not locale-aware, and won't change it for you internally where the mask is always stored as.for decimals and,for thousands ; in MS Excel, localisation for thousands and decimal separators are handled within the Excel GUI.ie.