We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

IF() Formula returns 0 instead of #N/A

“IF()” Formula is producing 0 instead of #N/A as Excel does.

B5 = #N/A

=IF(B5, “Y”, “N”)
Excel -> #N/A
Aspose -> 0

Attached is the test files and sample program.

Excel 2003



I can notice the issue using your file as Aspose.Cells formula calculation engine returns "0" instead of "#N/A".

Sample code:

Workbook wb = new Workbook(@"E:\test2\ifformula/If_NA.xls");


Debug.WriteLine(wb.Worksheets[0].Cells["D4"].StringValue);// ""
Debug.WriteLine(wb.Worksheets[0].Cells["D7"].StringValue); //"0"

I have logged a ticket with an id: CELLSNET-40440. We will look into it soon.

thank you.

The issues you have found earlier (filed as CELLSNET-40440) have been fixed in this update.

This message was posted using Notification2Forum from Downloads module by aspose.notifier.