Jump to content

Excel formula not calculating when using IFERROR and propertyExpression

Go to solution Solved by szaharia,

Recommended Posts

I'm using jasper reports 4.7, and I'm working on creating an excel report using the IFERROR excel function.  Here is an example of one of the text fields I am using


"IFERROR(K" + ($V{PAGE_COUNT}.intValue()+2) + "/I" + ($V{PAGE_COUNT}.intValue()+2) +",0)"
However, when I open this up, Excel has #NAME? in the cell.  If I edit the cell, but don't make any changes to its contents, the formula is calculated correctly.  If I remove the IFERROR function from the above propertyExpression, the division calculates fine in my excel file.  Do I need to do something else to get the IFERROR function to calculate properly?
Link to comment
Share on other sites

  • Replies 1
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

  • Solution


The IFERROR() function is not recognized by Excel 2003. In this case it should be replaced by IF(ISERROR(...), ... , ...).

But for Excel 2007 or newer, IFERROR() is the right function, indeed. In this case, please upload a file containing your sample formula.



Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Create New...