Skip to content
Discussion options

You must be logged in to vote

I don't know how

$event->sheet->getCell('B1' )->setValue('=IF(A2 = 0;0;1)');

would have worked before, if there is anything in Laravel-Excel that converts a formula to the rules required in PhpSpreadsheet, but from the PhpSpreadsheet documentation:

Inside the Excel file, formulas are always stored as they would appear in an English version of Microsoft Office Excel, and PhpSpreadsheet handles all formulae internally in this format. This means that the following rules hold:

  • Decimal separator is . (period)
  • Function argument separator is , (comma)
  • Matrix row separator is ; (semicolon)
  • English function names must be used

If you want to use locale-specific formulae, then this is supported…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by pashochok
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants