How do i export the following formula when i export to .XLSX

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? 

 

stavros_mrg's picture
Joined: Nov 27 2013 - 5:39am
Last seen: 2 months 1 week ago

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.

mrajkuma - 4 months 3 weeks ago

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.

jphadtar's picture
1523
Joined: Mar 20 2022 - 10:51pm
Last seen: 1 hour 51 min ago

You are a genius! The replacement of & with & worked!

However, it doesnt calculate at once. I have to Ctrl+X the formula and paste it in the formula bar again in order it returns results. 

 

stavros_mrg's picture
Joined: Nov 27 2013 - 5:39am
Last seen: 2 months 1 week ago
Feedback
randomness