You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
I'm building up an excel sheet. I'm using CellFormula to add a formula to a cell. That works fine. When opening the file with Excel, @ characters are injected into the formula and the formula is broken.
Pre-DA (dynamic arrays featured) Excel, didn't need these because the default behavior when specifying a range of cells in a formula where only one cell is required, is to use the cell that aligns with the formula's cell address either vertically or horizontally. This is called IIE or "Implicitly Intersection Evaluation" [sic].
With DA featured Excel, the default would be to apply the formula to all the cells in the range that was used to address the single cell requested by the formula. The "@" was added by Excel to indicate to someone reading it that Excel would use DA style processing called "Array Evaluation" or also known as "lifting" for that particular cell range reference.
This is not a feature of the SDK or of VBA per se but of Excel. With the SDK, you as a programmer could add "@" to your formula but would have to ensure that it followed the rules of Excel which is beyond the scope of the SDK's CellFormula processing. CellFormula is oblivious to the contents of formulas and modifying it to be aware of and process formula strings would not be desirable for the SDK as a framework. Nor should it be necessary to write SpreadsheetML successfully.
If you are seeing an error in the SDK due to this new "@" convention of DA featured Excel, then please clarify what's happening.
Since this is by design, I'm going to close. If you have a proposal for a way to handle this on the SDK side if it would make things easier, please reopen and we can continue the discussion.
Describe the bug
I'm building up an excel sheet. I'm using CellFormula to add a formula to a cell. That works fine. When opening the file with Excel, @ characters are injected into the formula and the formula is broken.
Sample formula:
=WENN(ANZAHL2('I&C Extension'!D3:E3)>1;INDEX(D2:D1300;VERGLEICH(INDEX(A:A;ZEILE())&"OC001";A2:A1300&C2:C1300;0));Material!C9)
ends up as
=WENN(ANZAHL2('I&C Extension'!D3:E3)>1;INDEX(D2:D1300;VERGLEICH(@Index(A:A;ZEILE())&"OC001";@a2:A1300&@c2:C1300;0));Material!C9)
Using version 2.20.
There are hints for VBA to use CellFormula2, but this isn't available in the SDK. How to avoid this?
The text was updated successfully, but these errors were encountered: