12

When inspecting a cell element in XLSX file, I find the following formula element:

<f t="shared" si="0"/>

What is the meaning of such a formula element?

1 Answer 1

14

ECMA-376 Part 1 Section 18.3.1.40 says:

The possible values for the t attribute are defined by the simple type ST_CellFormulaType, and are as follows:

...
shared (Shared formula)
...

Shared formula. If a cell contains the same formula as another cell, the "shared" value can be used for the t attribute and the si attribute can be used to refer to the cell containing the formula. Two formulas are considered to be the same when their respective representations in R1C1-reference notation, are the same.

Basically it is a space saving optimisation. One that is guaranteed to be a pain for anyone parsing/modifying the file.

1

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.