Hello,
When I run the following program:
public static void main(String[] someArgs) throws Exception
{
Workbook myWorkbook = new Workbook(“test/Test04.xls”);
myWorkbook.getSettings().setCalcMode(CalcModeType.MANUAL);
System.out.println(myWorkbook.getWorksheets().get(0).getCells().get(0, 0).getStringValue());
myWorkbook.calculateFormula();
System.out.println(myWorkbook.getWorksheets().get(0).getCells().get(0, 0).getStringValue());
}
with the attached spreadsheet (also see png), which contains a formula consisting of COUNTA and INDIRECT, I get the following result:
5
1
I would expect the result ‘5’ both times.