Formula calculation result differs from Excel native calculation

Hi, we’ve gotta new serious problem that we’d like to be fixed ASAP because it’s found in a production environment.


Here is a piece of code:
import java.io.InputStream;

import com.aspose.cells.Workbook;

public class CalcFail
{
public static Workbook createWB(InputStream inputStream)
{
try
{
return new Workbook(inputStream);
}
catch (Exception e)
{
e.printStackTrace();
throw new RuntimeException(e);
}
}

public static void main(String[] args) throws Exception
{
Workbook workbook = createWB(CalcCrash.class.getResourceAsStream(“pyatnadcat.xlsx”));
System.out.println("result should be : " + workbook.getWorksheets().get(“eval_fail”).getCells().get(“D26”).getValue());
workbook.calculateFormula();
System.out.println("result after calc : " + workbook.getWorksheets().get(“eval_fail”).getCells().get(“D26”).getValue());
workbook.dispose();
}
}

This code makes a very simple thing. It takes a cell value previously calculated by Excel then calculates it by Aspose.Cells and takes the result again. The result is different :frowning:

The source Excel file you can find in attachment

Hi Vladimir,


Thank you for sharing the sample spreadsheet.

We have evaluated the presented scenario while using the latest version of Aspose.Cells for Java 8.8.3 and we are able to notice the said problem, that is; calculated value for the cell D26 does not match with Excel results. We have logged this incident in our bug tracking system as CELLSJAVA-41895 for further investigation. Please spare us little time to properly investigate the matter and revert back with updates in this regard.

Console:
<span style=“font-family: “Courier New”, Consolas, Courier, monospace; font-size: small; white-space: pre; background-color: rgb(255, 255, 255);”>8.8.3.0
1.8.0_66
result should be : Пятнадцать
result after calc : 1Пять

Hi,


This is to inform you that we have fixed your issue (logged earlier as “CELLSJAVA-41895”) now. We will soon provide the fix after performing QA and incorporating other enhancements and fixes.

Thank you.

Hi,

Please try our new version/fix: Aspose.Cells for Java (Latest Version)

We have fixed your issues “ CELLSJAVA-41895 ” now.

Let us know your feedback.

Thank you

The issues you have found earlier (filed as CELLSJAVA-41895) have been fixed in this update.


This message was posted using Notification2Forum from Downloads module by Aspose Notifier.