Hi,
I have tested your scenario but could not find the issue you have mentioned. I have a template .xlsx file which has your desired formulas into its first worksheet cells, I run the following code and it gives me perfect results.
Workbook workbook = new Workbook();
workbook.open("e:\\files\\formulaTest.xlsx",FileFormatType.EXCEL2007);
Worksheet worksheet = workbook.getWorksheets().getSheet(0);
Cells cells = worksheet.getCells();
Cell cell = cells.getCell("A1"); //The A1 cell contains =A3 formula
System.out.println(cell.getValue()); //the value is ok.....
cell = cells.getCell("C1");//The C1 cell contains the formula =TEXT("A","")
System.out.println(cell.getValue()); // the value is ok
cell = cells.getCell("C2");//The C2 cell contains the formula ="Value is "&" 25"
System.out.println(cell.getValue());// the value is ok
Which version of Aspose.Cells for Java you are using. I have tried the latest version/fix (attached). Could you try the attached version.
Thank you.
Amjad Sahi
Support Developer,
Aspose Nanjing Team
Contact Us