Answer the question
In order to leave comments, you need to log in
How to beat "number saved as text" error in PHPExcel?
Hello everyone, when driving in a cell, msExcel swears at numbers, saying that the number is stored as text
Tried through the setValueExplicit method indicating the type. Did not help
$worksheet->getCell('L'.$row)->setValueExplicit($p->getQuantity(), \PHPExcel_Cell_DataType::TYPE_STRING);
Answer the question
In order to leave comments, you need to log in
Have you tried it like this? should help)
$worksheet->getCell('L'.$row)->setValueExplicit($p->getQuantity(), \PHPExcel_Cell_DataType::TYPE_NUMERIC);
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question