I'am using POI in order to read excels files from my users. In one of the cells, i've got this formula :
IF(H24>0,((D24*(Q24))/((3600*H24)/I24))+IF(AND(N24>0,L24>0),(D24*L24*(Q24)/N24),0),0)
The problem arrive when i've got a 0 value for N24. In this case, POI returns me an DIV/0 error, but i don't understand why .. because of the IF (N24>0) test.
Anyway, I tried changing the formula and keep only the latest part like this : IF (N24>0,D24*L24*(Q24)/N24),0) => still doesn't work.
To Evaluate the formula I use : FormulaEvaluator evaluator = wb.getCreationHelper().createFormulaEvaluator(); switch (evaluator.evaluateFormulaCell(cell))
.....
I am using POI 3.10, same pb with 3.11
Any idea ?