XLSIO inserting braces around formulas

Hello

I have been using the XLSIO control and found an issue. Namely, it inserts braces around my formula... which in turn causes a "#NAME?" error in Excel. I am inserting data into an existing Excel workbook (not creating formulas in XLSIO), so this change is happening to existing formulas in Excel which work perfectly fine before. If I go into the workbook after XLSIO and remove the braces, the formulas work with no issue.

Formula before: =INDEX($B$2:$B13,MATCH(2,1/($Q$2:$Q13=TRUE)))&":"&TEXTAFTER(B14," - ")

Formula after: {=INDEX($B$2:$B13,MATCH(2,1/($Q$2:$Q13=TRUE)))&":"&TEXTAFTER(B14," - ")}

Why is XLSIO inserting braces around formulas? Is there a way to prevent this? It breaks the workbook otherwise.

Dushan


8 Replies

RB Rahul Balasundaram Syncfusion Team February 14, 2023 02:36 PM UTC

Hi Dushan,

We are saving the workbook using XlsIO with a formula whose data had been removed in the referred range in Excel. After reopening the saved file and filling the data of the formula's referred range, we were able to reproduce the reported issue.


Please confirm if this is the same issue you are facing. If not, please share the Excel document in which the issue is occurring, as well as the Syncfusion XlsIO version you are using. This will be helpful for us in investigating the query further.


We will share the validation details for the issue we reproduced in two business days, on February 16th, 2023.

Regards,

Rahul



RB Rahul Balasundaram Syncfusion Team February 16, 2023 02:54 PM UTC

Dushan, we have confirmed the issue as "Formula calculation is incorrect after resaving Excel document with TEXTAFTER formula" and logged a defect report. We will include the fix for this issue in our weekly NuGet release scheduled for March 7th, 2023.

 

You can track the status of this defect report through below feedback link.

https://www.syncfusion.com/feedback/41221/formula-calculation-is-incorrect-after-resaving-excel-document-with-textafter

 

Disclaimer: Inclusion of this solution in the weekly release may change due to other factors including but not limited to QA checks and works reprioritization.



KK Konduru Keerthi Konduru Ravichandra Raju Syncfusion Team March 14, 2023 12:44 PM UTC

Dushan, we have included the fix for the issue Formula calculation is incorrect after resaving Excel document with TEXTAFTER formula in our weekly NuGet release version 20.4.0.54. Kindly upgrade to this new version 20.4.0.54 and let us know if the issue is resolved.



DU Dushan March 16, 2023 03:21 PM UTC

HI all

Looks like the braces are no longer present, which is great. However I'm also noticing some formulas return empty cells until i place my cursor in the formula bar (as if I'm going to edit) and then hit Enter. So I've changed literally nothing in the formula, but until I enter the formula bar and hit Enter, the cell remains empty.




DU Dushan March 16, 2023 03:24 PM UTC

One more note... I do still see formulas with braces. This doesn't seem to be limited to TEXTAFTER. Example: 

={-1*IFERROR(INDEX('Sheet1'!$C:$N,MATCH($A14,'Sheet1'!$T:$T,0),COUNTIF($C$3:C$3,"Actual")),0)}



RS Ramya Sivakumar Syncfusion Team March 23, 2023 02:03 PM UTC

Query

Response

 

However I'm also noticing some formulas return empty cells until i place my cursor in the formula bar (as if I'm going to edit) and then hit Enter. 

 

Could you please share the Issue reproducing Excel file or issue reproducing formula which will help us to investigate the query further.

 

One more note... I do still see formulas with braces.

This doesn't seem to be limited to TEXTAFTER. Example: 

={-1*IFERROR(INDEX('Sheet1'!$C:$N,MATCH($A14,'Sheet1'!$T:$T,0),COUNTIF($C$3:C$3,"Actual")),0)}

 

We can reproduce the reported issue and validating it. We will share the validation details on March 27, 2023.




RS Ramya Sivakumar Syncfusion Team March 27, 2023 01:56 PM UTC

we have confirmed the issue as Formula is getting corrupted while resaving the Excel document with IFERROR function and logged a defect report. We will in include the fix for this issue in our weekly NuGet release scheduled for April 11, 2023. You can track the status of this defect report through below feedback link.


https://www.syncfusion.com/feedback/42399/formula-is-getting-corrupted-while-resaving-the-excel-document-with-iferror


Disclaimer: Inclusion of this solution in the weekly release may change due to other factors including but not limited to QA checks and works reprioritization.



KK Konduru Keerthi Konduru Ravichandra Raju Syncfusion Team April 11, 2023 01:03 PM UTC

Dushan, we have included the fix for Formula is getting corrupted while resaving the Excel document with IFERROR function in our latest weekly NuGet release version 21.1.39. Kindly upgrade to this latest version of Syncfusion and let us know if the reported issue is resolved.


Loader.
Up arrow icon