WithCalculatedFormulas doesn't appear to work with OnEachRow.
implements OnEachRow, WithCalculatedFormulas to class~/vendor/maatwebsite/excel/src/Cell.php and find public function getValue($nullValue = null, $calculateFormulas = false, $formatData = true). Force $calculateFormulas = trueExpected behavior:
Implementing WithCalculatedFormulas should set $calculateFormulas = true
Actual behavior:
The original Excel formula is imported
If you could provide a failing tests that would be useful to understand what's going wrong
Hi @949mac ,
I think in the function onRow, you have to pass the $calculateFormulas option to $row->toArray(null, true).
Hello @ngocongcan,
Ah, beautiful! Thank you very much.
Best Regards,
Mike
Most helpful comment
Hi @949mac ,
I think in the function onRow, you have to pass the $calculateFormulas option to $row->toArray(null, true).