I am attempting to use the CountIf(). However, when opening the spreadsheet in Excel, i get a #NAME? error in the cell(s) where the formula is used. A Typical formula looks like this:
COUNTIF(D3: D3, "C") // space added after colon to keep emoticon from forming
If i place my cursor in the function editor bar and simply press return, Excel updates the function and all is well. So it is syntactically correct. How can I use the COUNTIF() function?
Also, is there anyway to use formulas that are not already coded into the Aspose object? I don't care about the Excel.CalculateFormula(). I can let Excel do the calculations when the user opens the spreadsheet...Thanks.
I found this thread while looking for COUNTIF, but I’m experiencing a weird problem with the hotfix above: I wonder if anyone else has experienced this.
I assigned a Formula to be “=AVERAGE(O2:O70)“
However when I open the Excel file I see the formula stored as =AVERAGE(‘O2:O70’())
Similarly =(COUNTIF(O2:O70,”<=24”)/O77)*100 becomes =(COUNTIF(‘O2:O70’(),"<=24")/O77)*100 (note that the O77 is not affected).
@prasenjeetd,
Aspose.Cells has replaced Aspose.Excel that is discontinued and no more available now. This new product has support for all the latest features available in different versions of MS Excel. You can use all the functions/formulas that are available in MS Excel including IFCOUNT as demonstrated in the following sample code: