Reading wrong cell calculated value #2180
-
Good morning, I am trying to read a cell value at a precise coordinate, that cell contains an addition of two other cells (=A1+B1 for example). Here's the cell formula :
What my code is doing is reading through the generated excel file using PHPSpreadsheet, it stores the generated.xlsx into a temp directory which allows me to reinstance it into a new spreadsheet. I also have to disable the calculationCache but it doesn't seems to fix my bug. Have you already encountered a case where php returned another value as it should be in the final .xlsx file ? Unfortunately my code is a bit private because it's made to generate customer contract, but if needed, I could rewrite something similar to reproduce the bug. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
It's possible that there's an error in one of those calculations, and Excel functions like If you could rewrite something similar, or alternatively debug the formula evaluation process yourself. I've published a gist showing how to enable logging in the calculation engine, and display the internal process of formula evaluation |
Beta Was this translation helpful? Give feedback.
It's possible that there's an error in one of those calculations, and Excel functions like
INDEX()
VLOOKUP()
andMATCH()
are surprisingly complicated; but without being able to debug the evaluation of your actual formulae (with values), I can't really do much to diagnose the problem.If you could rewrite something similar, or alternatively debug the formula evaluation process yourself. I've published a gist showing how to enable logging in the calculation engine, and display the internal process of formula evaluation