
ショコラ
PHPExcel 式ではなく値で取得するには?
getCalculatedValueメソッド を使う でキメマス。

もっさん先輩
getValue だとセルに設定した 式 を取得してしまいます。
$sheet->getCell("A1")->getValue()
式の結果を取得するには、getCalculatedValue を使います。
$sheet->getCell("A1")->getCalculatedValue()
以上
PHPExcel 式ではなく値で取得するには?
getCalculatedValueメソッド を使う でキメマス。
getValue だとセルに設定した 式 を取得してしまいます。
$sheet->getCell("A1")->getValue()
式の結果を取得するには、getCalculatedValue を使います。
$sheet->getCell("A1")->getCalculatedValue()
以上