-
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
How did you insert those numbers? Did you load them from a csv file? (Your descriptions is rather vague). If so, does the csv have vales containing commas like Setting a format code for a cell using $sheet->getStyle($cell)->getNumberFormat()->setFormatCode($format[0]); doesn't change the content of that cell. It won't magically convert a string value into a number. It simply tells Excel how to format that value for display purposes; but if the value is a string rather than a numeric, then it won't change anything. |
Beta Was this translation helpful? Give feedback.
-
the solution is first determine the cell as numeric and that set the formatCode.
|
Beta Was this translation helpful? Give feedback.
the solution is first determine the cell as numeric and that set the formatCode.