Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

priyalaks's avatar

Laravel Excel - While importing excel with Formulae .

Laravel Excel - While importing excel with Formulae , the Formula is getting saved into the DB instead of value from the cell . How do we handle this situation ? Advices please.

0 likes
4 replies
priyalaks's avatar
priyalaks
OP
Best Answer
Level 1

@vincent15000 Thank you. I am using the latest version Laravel Excel -3.1 though . But your idea let me where to search for the solution . I used below concerns to get the value of the formula while importing.

Maatwebsite\Excel\Concerns\WithCalculatedFormulas
2 likes
Tonyhossa's avatar

I've run into that issue too. What worked for me was modifying the import logic to save only the cell value, not the formula. Check the Laravel Excel documentation for specifics. Also, you can take the course to master Excel. I hope that helps!

Please or to participate in this conversation.