Replies: 3 comments
-
Cool, thanks for nothing. |
Beta Was this translation helpful? Give feedback.
-
Hi @magedrick , Apologies for the delayed response. I will research this and let you know what I find out. |
Beta Was this translation helpful? Give feedback.
-
Hi @magedrick , dataTable formulas do not work the way that normal formulas do. With a normal formula you have e.g. From ISO/IEC 29500 18.3.1.40 f (Formula) Meaning that the dataTable formula is not a normal formula itself, but rather displays the value of a normal formula in a different cell, but with alternative inputs. So in your xml you have The dataTable isn't a formula itself, it shows what other formulas would display given alternative inputs. In your example, The values in the dataTable are pulled from the upper-left of a 2d and directly above/left of a 1d range. Note that in the file the range specified is only where the values go, not including the inputs.
|
Beta Was this translation helpful? Give feedback.
-
I'm writing an application in C# to read formulas from various cells in an Excel spreadsheet, and one section is giving me trouble. In Excel, it displays the formula as "{=TABLE(,B5)}" for all cells in this range.
I stepped through my C# application to see what the properties are, but there's no actual formula listed anywhere I can find (the CellFormula is an empty string). The InnerXml/OuterXml indicates a CellFormula, I tried reading through the SDK documentation for them, but it is confusing and vague when it comes to "dataTable" types.
Supposedly the relevant information is in the top-left corner of the dataTable section, which is cell D15. This is how the OuterXml looks:
<x:c r="D15" s="377" xmlns:x="http://schemas.openxmlformats.org/spreadsheetml/2006/main"><x:f t="dataTable" ref="D15:G35" dt2D="0" dtr="0" r1="B5" ca="1" /><x:v>3.0000000000000001</x:v></x:c>
Where is the formula? How does Excel know what to calculate in this range D15:G35?
Beta Was this translation helpful? Give feedback.
All reactions