HSSFFormulaEvaluator fe = new HSSFFormulaEvaluator(wb);
HSSFCell cell = wb.getSheetAt(0).getRow(0).createCell(100);
assertError(fe, cell, "DGET(A5:E11, \"Yield\", A1:A3)", FormulaError.NUM);
- //next one fails - no match found when it should match and return 10
- //assertDouble(fe, cell, "DGET(A5:E11, \"Yield\", A1:F3)", 10);
+ assertDouble(fe, cell, "DGET(A5:E11, \"Yield\", A1:F3)", 10);
}
}
HSSFSheet sheet = wb.createSheet();
addRow(sheet, 0, "Tree", "Height", "Age", "Yield", "Profit", "Height");
addRow(sheet, 1, "=Apple", ">10", null, null, null, "<16");
- addRow(sheet, 2, "=Pear", ">12");
+ addRow(sheet, 2, "Pear", ">12");
addRow(sheet, 3);
addRow(sheet, 4, "Tree", "Height", "Age", "Yield", "Profit");
addRow(sheet, 5, "Apple", 18, 20, 14, 105);
addRow(sheet, 7, "Cherry", 13, 14, 9, 105);
addRow(sheet, 8, "Apple", 14, null, 10, 75);
addRow(sheet, 9, "Pear", 9, 8, 8, 77);
- addRow(sheet, 10, "Apple", 12, 11, 6, 45);
+ addRow(sheet, 10, "Apple", 8, 9, 6, 45);
return wb;
}
}