/**
* Sum across multiple workbooks
* eg =SUM($Sheet1.C1:$Sheet4.C1)
- * DISABLED As we can't currently evaluate these
*/
- @Ignore
@Test
public void bug48703() throws IOException {
XSSFWorkbook wb = XSSFTestDataSamples.openSampleWorkbook("48703.xlsx");
/**
* Sum across multiple workbooks
* eg =SUM($Sheet2.A1:$Sheet3.A1)
- * DISABLED - We currently get the formula wrong, and mis-evaluate
*/
- @Ignore
+ @Test
public void test48703() throws Exception {
HSSFWorkbook wb = openSample("48703.xls");
assertEquals(3, wb.getNumberOfSheets());
Row r = sheet.getRow(0);
Cell c = r.getCell(0);
- assertEquals("SUM(Sheet2!A1:Sheet3!A1)", c.getCellFormula());
+ assertEquals("SUM(Sheet2:Sheet3!A1)", c.getCellFormula());
assertEquals(4.0, c.getNumericCellValue(), 0);
// Check the evaluated result