Hi, my company is using Cells for Java v23.9 to run calculations on a rather large workbook set for Automatic calculation. We map user inputs to an Inputs tab, run workbook.CalculateFormula, then map the calculated outputs to our API response.
The workbook.CalculateFormula method appears to only do a partial calculation. When we open the workbook, it shows the initial calculation, then automatically calculates some additional formulas, but we have to force full calculation or manually touch an uncalculated cell in order to get the final full calculated values.
Whereas when we manually add the user inputs to the workbook, the full calculations are done automatically with no additional calculations needed.
Our issue is that we need the fully calculated values to map with and are unable to obtain them programmatically. I have tried testing with multiple variations of CalculationOptions and FormulaSettings as well as trying v24.4. None of these variations have produced the results we are looking for. However, when we programmatically force full calculation, we are able to get the first and second calculated values, but still not the fully calculated values.
The calculations missing from the first and second round of Calculate are formulas using SUMPRODUCT, so I am wondering if there is something within those formulas that Aspose is having an issue with? This is an example of one of the of formulas: =(SUMPRODUCT(XLOOKUP('LDF Tables'!$E$4:$H$4,$E$5,$I$5,0),XLOOKUP('LDF Tables'!$E$5:$H$5,$I$9:$J$9,$I$10:$J$10,0),'LDF Tables'!$E10:$H10)+SUMPRODUCT(XLOOKUP('LDF Tables'!$E$4:$H$4,$E$6,$I$6,0),XLOOKUP('LDF Tables'!$E$5:$H$5,$I$9:$J$9,$I$10:$J$10,0),'LDF Tables'!$E10:$H10))
I am obtaining a copy of the workbook that I can share with you, but thought I’d ask about the above formula in the meantime.
Any help is much appreciated!