Hi. I am using the OpenXML libraries from C# to read Excel files.
One of my requirements is to be able to show the exact formula for each cell that has one. The OpenXML encoded file uses "shared formulas" to reduce file size.
Like this:
D3 : <x:f t="shared" ref="D3:D6" si="1" >D2+C3</x:f><x:v >130</x:v>
D4 : <x:f t="shared" si="1" /><x:v >136</x:v>
D5 : <x:f t="shared" si="1" /><x:v >141</x:v>
D6 : <x:f t="shared" si="1" /><x:v >147</x:v>
Its a fairly simple root formula in the example above (D2+C3) and obviously these can be arbitrarily complex.
What I want to know is if there is a library or example code available that takes any lower cell (e.g. D4,D5,D6) and return the "unshared" formula?
e.g. for D6 this would return "D5+C6"