https://issues.apache.org/bugzilla/show_bug.cgi?id=55185

            Bug ID: 55185
           Summary: ISNUMBER function doesn't work in if statement
           Product: POI
           Version: 3.9
          Hardware: PC
            Status: NEW
          Severity: normal
          Priority: P2
         Component: HSSF
          Assignee: [email protected]
          Reporter: [email protected]

With POI 3.9, I'm faces the same problem as reported in bug id #27405

Here is the code :
        HSSFWorkbook book = new HSSFWorkbook();
        HSSFSheet sheet2 = book.createSheet("ma feuille");

        HSSFRow row = sheet2.createRow(0);
        HSSFCell cell = null;

        cell = row.createCell(0);
        cell.setCellValue(10);

        cell = row.createCell(1);
        cell.setCellValue(20);

        cell = row.createCell(2);
        cell.setCellValue(30);

        cell = row.createCell(3);
        cell.setCellType(HSSFCell.CELL_TYPE_FORMULA);
       
cell.setCellFormula("IF(AND(ISNUMBER(A1),ISNUMBER(B1)),(A1*B1)/(1000),\"toto\")");

Where I open the workbook, I see "toto" in cell. Then I just click in the
formula for cell A3 and enter. Then it works

Stephane

-- 
You are receiving this mail because:
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to