Hello Everyone,
I am trying to export the following formula in a cell of a paginated .XLSX file. However, when i export the report and then try to open the .xlsx file, that comes with errors and the pages which contain the formula are blank.
The strange thing is that when i export to .XLS the formula is placed properly.
The formula mentioned is this =SUMPRODUCT(SUMIF(INDIRECT("'"&$K$3:INDIRECT(ADDRESS(3,COLUMN()+J3))&"'!"&"K:K"),C6,INDIRECT("'"&$K$3:INDIRECT(ADDRESS(3,COLUMN()+J3))&"'!"&"I:I"))).
It does make the sumif from multiple sheets of the workbook.
Any ideas?
2 Answers:
Hello,
Not sure what exact error you are getting while exporitng into .xlsx format.
But seems that for .xlsx format you need to change the formula.
The formula for .xls and .xlsx is slightly differs that why for .xlsx format you might be getting blank.
Try using & instead of & in formula to export in .xlsx format.
For more details you can refer to below article.
https://community.jaspersoft.com/wiki/exporting-crosstab-formula-sum-excel
Hope this will help you.
Thank you for posting to the Jaspersoft Community. Our team of experts has read your question and we are working to get you an answer as quickly as we can. If you have a Jaspersoft Professional Subscription plan, please visit https://support.tibco.com/s/ for direct access to our technical support teams offering guaranteed response times.