Hello,
We’ve encountered some issues with CELL function’s implementation, in these two cases:
1. Set column width to 8.50, e.g. for column B.
When using CELL(“width”, B2), Aspose reports 8 as the result, Excel reports 9 - it performs an upper rounding.
2. Format a cell as Currency/Accounting with symbol € (Euro) or £ (English Pound), e.g for cell A1.
When using CELL(“format”, A1), Aspose reports C2 as the result, Excel reports ,2
Can you investigate and provide a small fix for these two particular cases, so that the calculated results are the same as in Excel ?
Tests were made against Aspose.Cells version 7.2.2.5 .
Thanks in advance,
Mihai Andrei,
Sr. Software Engineer,
IBM Romania
Hi,
Hello,
I’ve attached a small console application describing my first message.
The console application prints the values of the two formulas before and after executing Workbook.CalculateFormula() - the first values are the ones computed by Excel, the second the ones computed by Aspose.
The test file used is also in the zip, CELL.xlsx .
Thank you,
Mihai Andrei.
Hi,
Hi,
Hi,
1. Set column width to 8.50, e.g. for column B.
When using CELL(“width”, B2), Aspose reports 8 as the result, Excel reports 9 - it performs an upper rounding.
We will fix this issue.
2. Format a cell as Currency/Accounting with symbol € (Euro) or £ (English Pound), e.g for cell A1.
When using CELL(“format”, A1), Aspose reports C2 as the result, Excel reports ,2
It should be the bug of MS Excel.
As you want to get the same result as MS Excel, we will change our code to get the same result .
Hi,
Hello,
I’ve tested the fixes, they are ok.
However, for CELL(“width”) function, I noticed the upper rounding is made also for values smaller than *.50. For the first option below it should give 8, not 9 as it does right now.
i.e.
1. If width of a column is set to 8.43 it should be rounded by =CELL(“width” to 8
2. If width of a column is set to 8.50 (>=0.50) it should be rounded by CELL(“width” to 9
.
Hi,
The issues you have found earlier (filed as CELLSNET-40833) have been fixed in this update.
This message was posted using Notification2Forum from Downloads module by aspose.notifier.