Excel 2002 and later added information to PivotTables that the original
pivot records had no room for:
OLAP hierarchies and groups, new filters, conditional formats, table styles, display
captions. Instead of a new record type each, they all use one, SXAddl
(0x0864), whose 6-byte header says what is inside. An older reader that does not know
a class skips it. Section numbers are those of [MS-XLS] v20250819 (2.4.273.n);
integers are little-endian.
The header
Every SXAddl record starts with an SXAddlHdr (6 bytes): frtHeaderOld (4,
rt 0x0864), sxc (1, the class) and sxd
(1, the type within the class). Together they select the layout of the rest,
the data field. Three types mean the same in every class:
sxd | Meaning | Data |
|---|---|---|
0x00 | …_SXDId: starts an instance of the class | depends on the class (below) |
0x01 | …_SXDVerUpdInv: records after this are handled only up to a data functionality level | SXAddl_SXDVerUpdInv, 12 bytes in all: the header, dwVersionInvalidates (1: the highest level handled, 0xFF if not set), 1 reserved, 2 reserved, 2 reserved |
0xFF | …_SXDEnd: ends the instance | SXAddl_SXDEnd: the header then 6 reserved zero bytes |
A string longer than 255 characters is split: the first 255 are in the SXAddl record
(an SXAddl_SXString holding an XLUnicodeStringSegmentedSXADDL, with total length up to
65535) and the rest in Continue_SxaddlSxString records straight after,
each with the same sxc and sxd in its header and the next
segment. Where a table below says a record carries a “string”, this is what it means.
One oddity: the end record of the cache item class (sxc 0x09, sxd 0xFF)
is counted by the spec as belonging to the cache field class.
The classes (2.2.5.1.1.1):
sxc | Class | What it extends |
|---|---|---|
| 0x00 | SxcView | the PivotTable view |
| 0x01 | SxcField | a pivot field |
| 0x02 | SxcHierarchy | a pivot hierarchy (OLAP) |
| 0x03 | SxcCache | the PivotCache |
| 0x04 | SxcCacheField | a cache field |
| 0x05 | SxcQsi | a query table |
| 0x06 | SxcQuery | the query of a cache |
| 0x07 | SxcGrpLevel | an OLAP group level |
| 0x08 | SxcGroup | an OLAP group |
| 0x09 | SxcCacheItem | a cache item |
| 0x0C | SxcSXRule | a PivotTable rule |
| 0x0D | SxcSXFilt | a rule filter |
| 0x10 | SxcSXDH | a dimension header |
| 0x12 | SxcAutoSort | AutoSort of a field |
| 0x13 | SxcSXMgs | the OLAP measure groups |
| 0x14 | SxcSXMg | one measure group |
| 0x17 | SxcField12 | a pivot field (Excel 2007) |
| 0x1A | SxcSXCondFmts | the conditional formats of a view |
| 0x1B | SxcSXCondFmt | one conditional format |
| 0x1C | SxcSXFilters12 | the advanced filters of a view |
| 0x1D | SxcSXFilter12 | one advanced filter |
The tables below list each record with its sxd, the fields the spec gives
and what the text says they do. Records written “string” carry a string as above; the
“…_SXDId”, “…_SXDVerUpdInv” and “…_SXDEnd” records of each class (types 0x00, 0x01,
0xFF) are named only where they carry something of their own. The spec’s own header
tables have a few apparent mistakes (the SxcQuery end record is given sxc
0x07 and the group level info record 0x08); the values are those printed.
View (0x00)
sxd | Record | Contents |
|---|---|---|
| 0x02 | SXCView_SXDVer10Info (2.4.273.108) | bVerSxMacro (1, a DataFunctionalityLevel), then flags including fDisplayImmediateItems (items are shown in the field list as soon as they are available), fEnableDataEd (values may be edited), fDisableFList (field list disabled), fReenterOnLoadOnce and others. |
| 0x03 | SXCView_SXDCalcMember (.100) | A calculated OLAP member (2.4.273.100). After the 6-byte header, a 4-byte flags word: bit 0 fParentUnique (stParentUnique exists; must be 0 when fSet is 1), bit 1 fMemberName (stMemberName exists; must be 0 when fSet is 1, otherwise 1), bit 2 fSourceHier (stSourceHierarchy exists; same rule), bit 3 fLongFormula (0: the MDX expression is up to 255 characters and is in stMDXFormula; 1: it is longer and is written to the following CalcMemString record, and stMDXFormula is absent), bits 4-7 reserved, bit 8 fSet (the calculation is an OLAP named set), bits 9-31 reserved. Then reserved3 (2 bytes, zero) and the XLUnicodeString fields in this order, each only when present: stName (the MDX unique name, 1 to 255 characters), stMDXFormula (1 to 255 characters), stMemberName, stSourceHierarchy (the MDX unique name of the associated hierarchy), stParentUnique (the MDX unique name of the parent member), then wSolveOrder (4 bytes: the calculation order among calculated members, lowest first; 0 leaves it to the OLAP provider). |
| 0x0A | SXCView_SXDCalcMemString (.101) | An SXAddl_SXString (2.4.273.101, a string segment, framing in 2.5.252): the user-specified MDX expression when fLongFormula is 1; its length is above 0 and below 2048 characters when the PivotCache functionality level is under 3, otherwise below 32767. |
| 0x19 | SXCView_SXDVer12Info (.109) | Flags: fDefaultCompact and fDefaultOutline (the layout given to new pivot fields), fOutlineData and fCompactData (the data field is in outline or compact form), fNewDropZones (the application allows dropping fields in the new layout’s zones) and more. |
| 0x1E | SXCView_SXDTableStyleClient (.107) | Flags telling which table style elements apply: fLastColumn, fRowStrips, fColumnStrips, fRowHeaders, fColumnHeaders and others (see TableStyle in styles). |
| 0x21 | SXCView_SXDCompactRwHdr (.103) | A string: the row header caption in compact layout. |
| 0x22 | SXCView_SXDCompactColHdr (.102) | A string: the column header caption in compact layout. |
| 0x36 | SXCView_SXDSXPIIvmb (.106) | isxpi (4: the index of an entry on the page axis), ivmb (4: the zero-based index of an MDB record, see names, links and queries). |
Fields: SxcField (0x01), SxcField12 (0x17), SxcAutoSort (0x12)
sxc/sxd | Record | Contents |
|---|---|---|
| 0x01 / 0x02 | SXCField_SXDVer10Info (.27) | Flags: fHideDD (the drop-down of the pivot field is hidden) and others. |
| 0x17 / 0x37 | SXCField12_SXDAutoshow (.28) | citmAutoShow (4): the number of items for simple filters. |
| 0x17 / 0x1C | SXCField12_SXDISXTH (.31) | isxth (4): the pivot hierarchy this pivot field belongs to. |
| 0x17 / 0x11 | SXCField12_SXDMemberCaption (.32) | A string: the name of the member property used as caption. |
| 0x17 / 0x19 | SXCField12_SXDVer12Info (.33) | Flags: 0 reserved, 1 fHiddenLvl (an OLAP level that is hidden), 2 fUseMemPropCaption (a member property is used as caption), 3 fCompact (0 the next pivot field shows in the next column, 1 in the same column), 4 fNotAutoSortDft, 5 fFilterInclusive (a manual filter lists items that are included, not excluded). |
| 0x12 / 0x00 | SXCAutoSort_SXDId (.4) | fAscendSort (bit 0: 1 ascending, 0 descending), 31 reserved bits, 2 reserved bytes. End record: .3. |
Hierarchies (0x02)
sxd | Record | Contents |
|---|---|---|
| 0x05 | SXCHierarchy_SXDProperty (.57) | A member property: flags fDisplayInReport, fDisplayInTip, fDisplayInCaption, then cchProperty (2), cchLevelUnq (2) and the strings (the property name and the unique name of its level). |
| 0x09 | SXCHierarchy_SXDFilterMember (.44) | Members used in OLAP page filtering: a flag word (bit 0 reserved and 1, bit 1 fMultFiltHavePlex: several members are selected), cItems (2) then rgStPageItems, that many strings. |
| 0x1D | SXCHierarchy_SXDSXSetParentUnique (.58) | A string: the unique name of the parent of a set. |
| 0x1F | SXCHierarchy_SXDUserCaption (.59) | A string: the user’s caption of the hierarchy. |
| 0x20 | SXCHierarchy_SXDIconSet (.46) | dwIconset (4): the icon set of a KPI: 0 default, 6 traffic lights, 7 traffic lights 2, 8 quarters ascending, 9 quarters descending, 10 signs, 11 symbols. |
| 0x24 | SXCHierarchy_SXDMeasureGrp (.55) | A string: the measure group the hierarchy belongs to. |
| 0x25 | SXCHierarchy_SXDDisplayFolder (.42) | A string: the display folder. |
| 0x26 | SXCHierarchy_SXDParentKPI (.56) | A string: the parent KPI. |
| 0x27 | SXCHierarchy_SXDKPIValue (.53) | A string: the MDX unique name of the KPI’s value. |
| 0x28 | SXCHierarchy_SXDKPIGoal (.49) | A string: the unique name of the KPI’s goal. |
| 0x29 | SXCHierarchy_SXDKPIStatus (.50) | A string: the KPI’s status. |
| 0x2A | SXCHierarchy_SXDKPITrend (.52) | A string: the KPI’s trend. |
| 0x2B | SXCHierarchy_SXDKPIWeight (.54) | A string: the KPI’s weight. |
| 0x2C | SXCHierarchy_SXDKPITime (.51) | A string: the KPI’s time member. |
| 0x3F | SXCHierarchy_SXDFilterMember12 (.45) | An OLAP manual filter: isxtl (4: the zero-based ordinal of the level), cItems (2) and rgStMembers, that many strings. |
| 0x41 | SXCHierarchy_SXDInfo12 (.48) | Flags: fUnbalancedRealKnown, fUnbalancedReal (the hierarchy is unbalanced), fUnbalancedGroupKnown, fUnbalancedGroup (the OLAP group hierarchy is unbalanced), fHidden (the OLAP hierarchy is hidden). |
Cache (0x03), cache field (0x04) and cache item (0x09)
sxc/sxd | Record | Contents |
|---|---|---|
| 0x03 / 0x00 | SXCCache_SXDId (.6) | idCache (4): the PivotCache stream the class is associated with. |
| 0x03 / 0x02 | SXCCache_SXDVer10Info (.9) | citmGhostMax (4, signed: how many unused cache items are allowed), bVerCacheLastRefresh (1) and bVerCacheRefreshableMin (1) (DataFunctionalityLevel: the level that last refreshed the cache and the lowest that may refresh it), numDateCopy (8, a DateAsNum: the date and time of the refresh), plus flags. |
| 0x03 / 0x18 | SXCCache_SXDVerSXMacro (.10) | dwVer (1, DataFunctionalityLevel). |
| 0x03 / 0x34 | SXCCache_SXDInvRefreshReal (.8) | Flags: bit 0 fEnableRefresh, bit 1 fInvalid (the cache records are not valid). |
| 0x03 / 0x41 | SXCCache_SXDInfo12 (.7) | Flags: bit 0 fSheetData (must be 0), 1 fSrvSupportAttribDrill, 2 fSrvSupportSubQuery (what the data source supports). |
| 0x04 / 0x05 | SXCCacheField_SXDProperty (.17) | ihdb (4): a pivot hierarchy index. |
| 0x04 / 0x2D | SXCCacheField_SXDSxrmitmCount (.19) | citm (4): the number of cache item records. |
| 0x04 / 0x2F | SXCCacheField_SXDCaption (.12) | A string: the caption of the cache field. |
| 0x04 / 0x30 | SXCCacheField_SXDIfdbMempropMap (.15) | The indexes of the member property cache fields (an array). |
| 0x04 / 0x31 | SXCCacheField_SXDIfdbMpMapCount (.16) | ifdbMemProp (4): the number of elements of that array. |
| 0x04 / 0x40 | SXCCacheField_SXDPropName (.18) | A string: the name of a member property of the field. |
| 0x09 / 0x00 | SXCCacheItem_SXDId (.21) | dwItem (4): the cache item index this class belongs to. End record (0x09/0xFF): .20. |
| 0x09 / 0x2E | SXCCacheItem_SXDSxrmitmDisp (.24) | A string: the display name of the cache item. |
| 0x09 / 0x32 | SXCCacheItem_SXDItmMpropMap (.23) | The mapping of the member properties of an item (an array). |
| 0x09 / 0x33 | SXCCacheItem_SXDItmMpMapCount (.22) | cMemProps (4): the number of member property mappings. |
Groups (0x07, 0x08) and measure groups (0x13, 0x14)
sxc/sxd | Record | Contents |
|---|---|---|
| 0x08 / 0x06 | SXCGrpLevel_SXDGrpLevelInfo (.40) | Flags: bit 0 fGroupLevel (1 a user-defined group level, 0 one that corresponds to a level of the source cube), 1 reserved, 2 fCustomRollup. (Its end record, .39, and Id, .41, are in class 0x07.) |
| 0x08 / 0x07 | SXCGroup_SXDGrpInfo (.36) | An OLAP group: flags (including fHasNoParent: stParentUniqueName is absent), iGroupNum (4, signed: the group’s unique number within its level) and strings. |
| 0x08 / 0x08 | SXCGroup_SXDMember (.38) | An OLAP member or a group name: flags bit 1 fGroup (0 an OLAP member, 1 the name of a group) and a string. |
| 0x13 / 0x00 | SXCSXMgs_SXDId (.95) | cmgs (4: the number of OLAP measure groups), cmaps (4: the number of mappings between measure groups and hierarchies). |
| 0x13 / 0x23 | SXCSXMgs_SXDMGrpSXDHMap (.96) | iKey (4: a zero-based index of a SxcSXMg class) and iVal (4: a zero-based index of the hierarchy it maps to). |
| 0x14 / 0x1F | SXCSXMg_SXDUserCaption (.93) | A string: the caption of the measure group. Id .92, end .91. |
Rules, filters, headers, conditional formats and queries
sxc/sxd | Record | Contents |
|---|---|---|
| 0x0C / 0x13 | SXCSXrule_SXDSXrule (.99) | The extended form of a pivot rule: sxrtype (4 bits: the area of the table), then fPart, fDataOnly, fLabelOnly, fGrandRw, fGrandCol and more, as in SxRule. Id .98, end .97. |
| 0x0D / 0x14 | SXCSXfilt_SXDSXfilt (.77) | Flags: sxaxisRw, sxaxisCol, 1 reserved, sxaxisData, fSelected (the pivot field header is included), more; the extended form of SxFilt. |
| 0x0D / 0x15 | SXCSXfilt_SXDSXItm (.78) | The item indexes of that filter (the extended SxItm). |
| 0x10 / 0x00 | SXCSXDH_SXDId | dwCount (4): the number of SXAddl records of the type that follows. |
| 0x10 / 0x1A | SXCSXDH_SXDSxdh | A dimension header: isxth (4, signed: a pivot hierarchy), cchDimensionName, cchDimensionUnique, cchDimensionCaption (2 each) and the three strings. |
| 0x1A / 0x00 | SXCSXCondFmts_SXDId | cSxcondfmt (4, signed): the number of SxcSXCondFmt instances. End: 0x1A/0xFF. |
| 0x1B / 0x35 | SXCSXCondFmt_SXDSXCondFmt | A PivotTable conditional format: sxcondfmtScope (4: the scope), sxcondfmtType (4: the type), ipriority (4: the priority) and csxrule (4: the number of SxcSXrule classes it contains). End: 0x1B/0xFF. |
| 0x1C / 0x00 | SXCSXFilters12_SXDId | cSxfilter12 (4): the number of advanced filters. End: 0x1C/0xFF. |
| 0x1D / 0x00 | SXCSXFilter12_SXDId | dwFilterid (4): the unique identifier of the filter. End: 0x1D/0xFF. |
| 0x1D / 0x2F | SXCSXFilter12_SXDCaption | A string: the filter’s caption. |
| 0x1D / 0x38 | SXCSXFilter12_SXDSXFilter | An advanced filter (2.4.273.82). After the header: reserved1 (4, zero), reserved2 (2, zero), isxvd (4: the pivot field the filter applies to; below cDim of the SxView), isxvdMProp (4, signed: -1 when the filter is not on a member property, otherwise the pivot field index of the property; -1 and ignored unless sxft is 4 to 17), sxft (4, an SxFT: the filter type; for count, percent or sum the XlsFilter record must have cft CFTTOP10), unused (4, ignored), isxdiMeasure (4, signed: -1 in an OLAP view; for a value filter the index of its data item, below the number of SXDI records; otherwise 0), isxthMeasure (4, signed: -1 in a non-OLAP view; for a value filter the index of the measure hierarchy, below the number of SXTH records; otherwise 0). |
| 0x1D / 0x39 | SXCSXFilter12_SXDSXFilterDesc | A string: the filter’s description. |
| 0x1D / 0x3A, 0x3B | SXCSXFilter12_SXDSXFilterValue1, Value2 | Strings: the filter’s first and second values. |
| 0x1D / 0x3C | SXCSXFilter12_SXDXlsFilter | After the header: reserved (6, zero), cft (4: a CFT, the custom filter type; CFTTOP10 when the SXDSXFilter sxft is count, percent or sum), ccriteria (4, signed: 0 to 2 criteria), then data (28 bytes): an XlsFilter_Top10 when cft is CFTTOP10, otherwise an XlsFilter_Criteria. |
| 0x1D / 0x3D, 0x3E | SXCSXFilter12_SXDXlsFilterValue1, Value2 | Strings: the first and second values of the custom filter. |
| 0x05 / 0x00 | SXCQsi_SXDId | Starts the query table class (end 0x05/0xFF). |
| 0x06 / 0x04 | SXCQuery_SXDXMLSource | A string: the XML data source. |
| 0x06 / 0x05 | SXCQuery_SXDSrcDataFile | A string: the source data file. |
| 0x06 / 0x06 | SXCQuery_SXDSrcConnFile | A string: the source connection file. |
| 0x06 / 0x07 | SXCQuery_SXDReconnCond | rccDBQuery (4): the reconnect condition of the database query. End: 0x07/0xFF as printed in the spec. |
Advanced filter structures
The structures behind SXCSXFilter12_SXDSXFilter and SXCSXFilter12_SXDXlsFilter ([MS-XLS] 2.5.256, 2.5.38, 2.5.291, 2.5.292, 2.5.255, 2.5.204, 2.5.81, 2.5.269). The transcription was read from the text extract of the specification.
SxFT (4 bytes, 2.5.256)
| Value | Meaning |
|---|---|
| 0x01, 0x02, 0x03 | Value filters: count, percent, sum (a top N filter). |
| 0x04 to 0x11 | Label filters: equals, does not equal, begins with, does not begin with, ends with, does not end with, contains, does not contain, greater than (0x0C), greater than or equal to, less than, less than or equal to, between (0x10), not between (0x11). |
| 0x12 to 0x19 | Value filters: equal, not equal, greater than, greater than or equal, less than, less than or equal, between (0x18), not between (0x19). |
| 0x1A to 0x1D | Date filters: equals, older than, newer than, between. |
| 0x1E to 0x2D | Date filters: tomorrow, today, yesterday, next week, this week, last week, next month, this month, last month, next quarter, this quarter, last quarter, next year, this year, last year, year to date (0x2D). |
| 0x2E to 0x31 | Date filters, all dates in the first, second, third and fourth quarter. |
| 0x32 to 0x3D | Date filters, all dates in January (0x32) to December (0x3D). |
| 0x3E to 0x41 | Date filters: not equal, older than or equal to, newer than or equal to, not between. |
XlsFilter_Criteria and XlsFilter_Top10 (28 bytes each)
| Structure | Offset | Size | Field | Meaning |
|---|---|---|---|---|
| Criteria (2.5.291) | 0 | 10 | ezdoper1 | An SXEZDoper: the first operation. Ignored, with vts 0, when ccriteria is 0. When its vts is 6, the next record is SXDXlsFilterValue1. |
| 10 | 10 | ezdoper2 | The second operation; ignored (vts 0) unless ccriteria is 2. If only it has vts 6, the next record is SXDXlsFilterValue2; if both do, Value1 comes first, then (after any Continue_SxaddlSxString records) Value2. | |
| 20 | 4 | djoin1 | A DJoin joining the two: 0 none (required when ccriteria is below 2), 1 and, 2 or. | |
| 24 | 4 | reserved | Zero. | |
| Top10 (2.5.292) | 0 | 4 | top10ft | A Top10FT: 0 unknown, 1 count, 2 percent, 3 sum. |
| 4 | 2 | flags | Bit 0 fTop (1 top records, 0 bottom records); bits 1-15 reserved. | |
| 6 | 8 | numTopN | An Xnum: the number or percentage of records. Percent: 0 to 100; sum and count: 0 to 2147483647 (an integer for count). | |
| 14 | 14 | reserved2 | Zero. |
SXEZDoper (10 bytes, 2.5.255)
vts (1): 0 undefined (ignored), 4 numeric operation, 6 string operation, 0x0C all space characters match, 0x0E all non-space characters match. grbitSign (1): 0 none (then vts is 0), 1 less than, 2 equal, 3 less than or equal, 4 greater than, 5 not equal, 6 greater than or equal. vtValue (8): for vts 4 an Xnum, for 6 a PivotCompProp (2.5.204: fCompare 1 byte, 0 a wildcard pattern match where "?" matches one character and "*" any number, 1 a simple string comparison; then 1 reserved byte, 4 reserved bytes and 2 reserved bytes, all zero), otherwise undefined.
String framing (SXAddl_SXString, 2.5.252; XLUnicodeStringSegmentedSXAddl, 2.5.299)
An SXAddl string is one segment per record: cchTotal (4 bytes: the total characters of the whole string when this is its first segment, 0 for a later segment; at most 65535), reserved (2 bytes, zero), then an XLUnicodeString (cch 2 bytes, a flags byte whose bit 0 says double-byte characters, then the characters) of 1 to 255 characters. A string longer than 255 characters continues in following Continue_SxaddlSxString records (an SXAddl record with the same class and type, cchTotal 0).
CFT (custom filter type, 2.5.38)
0 none; 3 top N; 4 equal date; 5 before; 6 after; 7 between dates; 8 tomorrow; 9 today; 0x0A yesterday; 0x0B next week; 0x0C this week; 0x0D last week; 0x0E next month; 0x0F this month; 0x10 last month; 0x11 next quarter; 0x12 this quarter; 0x13 last quarter; 0x14 next year; 0x15 this year; 0x16 last year; 0x17 year to date; 0x18 to 0x1B the first to fourth quarter; 0x1C to 0x27 January to December; 0x28 does not equal date; 0x29 equal or earlier date; 0x2A equal or later date; 0x2B not between two dates.
Record order
[MS-XLS] 2.1.7.20.5 and 2.1.7.20.6 give the order of the SXAddl records as ABNF
([x] optional, *x zero or more, / a choice). Each record name below
is written SXAddl_class_SXDname, as in the spec; the class (SXCView,
SXCField and so on) and the name (SXDId opens, SXDEnd closes) are
those of the tables above. Continue_SxaddlSxString is a Continue record that carries the
rest of a string. UNKNOWNFRT = SXAddl is any SXAddl record a reader does not know. These rules
sit inside PIVOTFRT = PIVOTFRT9 [PIVOTADDL] (see the
PivotTable order).
PIVOTADDL = SXAddl_SXCView_SXDId *Continue_SxaddlSxString [SXAddl_SXCView_SXDVer10Info]
[SXAddl_SXCView_SXDVer12Info] *SXADDLCALCMEMBER *SXADDLHIERARCHY *SXADDLFIELD *UNKNOWNFRT
[SXAddl_SXCView_SXDTableStyleClient] [SXAddl_SXCView_SXDCompactRwHdr *Continue_SxaddlSxString]
[SXAddl_SXCView_SXDCompactColHdr *Continue_SxaddlSxString] [SXAddl_SXCView_SXDVerUpdInv]
[SXADDLCONDFMTS] [SXADDLSXFILTERS12] *SXAddl_SXCView_SXDVerUpdInv *SXAddl_SXCView_SXDSXPIIvmb
[SXAddl_SXCView_SXDVerUpdInv] SXAddl_SXCView_SXDEnd
SXADDLCALCMEMBER = (SXAddl_SXCView_SXDCalcMember [SXAddl_SXCView_SXDCalcMemString *Continue_SxaddlSxString])
SXADDLCONDFMTS = SXAddl_SXCSXCondFmts_SXDId *SXADDLCONDFMT SXAddl_SXCSXCondFmts_SXDEnd
SXADDLCONDFMT = SXAddl_SXCSXCondFmt_SXDSXCondFmt *SXADDLSXRULE SXAddl_SXCSXCondFmt_SXDEnd
SXADDLAUTOSORT = SXAddl_SXCAutoSort_SXDId SXADDLSXRULE SXAddl_SXCAutoSort_SXDEnd
SXADDLSXRULE = SXAddl_SXCSXrule_SXDId SXAddl_SXCSXrule_SXDSXrule *SXADDLSXFILT SXAddl_SXCSXrule_SXDEnd
SXADDLSXFILT = SXAddl_SXCSXfilt_SXDId SXAddl_SXCSXfilt_SXDSXfilt [SXAddl_SXCSXfilt_SXDSXItm] SXAddl_SXCSXfilt_SXDEnd
SXADDLSXFILTERS12 = SXAddl_SXCSXFilters12_SXDId *SXADDLSXFILTER12 SXAddl_SXCSXFilters12_SXDEnd
SXADDLSXFILTER12 = SXAddl_SXCSXFilter12_SXDId SXAddl_SXCSXFilter12_SXDSXFilter
[SXAddl_SXCSXFilter12_SXDCaption *Continue_SxaddlSxString]
[SXAddl_SXCSXFilter12_SXDSXFilterDesc *Continue_SxaddlSxString]
[SXAddl_SXCSXFilter12_SXDSXFilterValue1 *Continue_SxaddlSxString]
[SXAddl_SXCSXFilter12_SXDSXFilterValue2 *Continue_SxaddlSxString]
SXAddl_SXCSXFilter12_SXDXlsFilter [SXAddl_SXCSXFilter12_SXDXlsFilterValue1 *Continue_SxaddlSxString]
[SXAddl_SXCSXFilter12_SXDXlsFilterValue2 *Continue_SxaddlSxString] SXAddl_SXCSXFilter12_SXDEnd
SXADDLFIELD = [SXAddl_SXCField_SXDId *Continue_SxaddlSxString SXAddl_SXCField_SXDVer10Info
SXAddl_SXCField_SXDEnd] [SXADDLFIELD12]
SXADDLFIELD12 = SXAddl_SXCField12_SXDId *Continue_SxaddlSxString SXAddl_SXCField12_SXDVer12Info
SXAddl_SXCField12_SXDVerUpdInv [SXAddl_SXCField12_SXDMemberCaption *Continue_SxaddlSxString]
[SXAddl_SXCField12_SXDAutoshow] [SXAddl_SXCField12_SXDISXTH] [SXADDLAUTOSORT]
SXAddl_SXCField12_SXDVerUpdInv *UNKNOWNFRT SXAddl_SXCField12_SXDEnd
SXADDLHIERARCHY = SXAddl_SXCHierarchy_SXDId *Continue_SxaddlSxString *SXAddl_SXCHierarchy_SXDProperty
*SXADDLGRPLEVEL [SXAddl_SXCHierarchy_SXDVerUpdInv] *SXAddl_SXCHierarchy_SXDFilterMember
[SXAddl_SXCHierarchy_SXDVerUpdInv] [SXAddl_SXCHierarchy_SXDSXSetParentUnique *Continue_SxaddlSxString]
[SXAddl_SXCHierarchy_SXDIconSet] [SXAddl_SXCHierarchy_SXDUserCaption *Continue_SxaddlSxString]
*UNKNOWNFRT [SXAddl_SXCHierarchy_SXDVerUpdInv] *SXAddl_SXCHierarchy_SXDFilterMember12
[SXAddl_SXCHierarchy_SXDVerUpdInv] [SXAddl_SXCHierarchy_SXDInfo12]
[SXAddl_SXCHierarchy_SXDDisplayFolder *Continue_SxaddlSxString]
[SXAddl_SXCHierarchy_SXDMeasureGrp *Continue_SxaddlSxString]
[SXAddl_SXCHierarchy_SXDParentKPI *Continue_SxaddlSxString]
[SXAddl_SXCHierarchy_SXDKPIValue *Continue_SxaddlSxString]
[SXAddl_SXCHierarchy_SXDKPIGoal *Continue_SxaddlSxString]
[SXAddl_SXCHierarchy_SXDKPIStatus *Continue_SxaddlSxString]
[SXAddl_SXCHierarchy_SXDKPITrend *Continue_SxaddlSxString]
[SXAddl_SXCHierarchy_SXDKPIWeight *Continue_SxaddlSxString]
[SXAddl_SXCHierarchy_SXDKPITime *Continue_SxaddlSxString] SXAddl_SXCHierarchy_SXDEnd
SXADDLGRPLEVEL = SXAddl_SXCGrpLevel_SXDId *Continue_SxaddlSxString SXAddl_SXCGrpLevel_SXDGrpLevelInfo
*SXADDLGROUP *UNKNOWNFRT SXAddl_SXCGrpLevel_SXDEnd
SXADDLGROUP = SXAddl_SXCGroup_SXDId *Continue_SxaddlSxString SXAddl_SXCGroup_SXDGrpInfo
*SXAddl_SXCGroup_SXDMember *UNKNOWNFRT SXAddl_SXCGroup_SXDEnd
SXADDLDBQUERY = [SXAddl_SXCQuery_SXDXMLSource *Continue_SxaddlSxString]
[SXAddl_SXCQuery_SXDSrcDataFile *Continue_SxaddlSxString]
[SXAddl_SXCQuery_SXDSrcConnFile *Continue_SxaddlSxString] [SXAddl_SXCQuery_SXDReconnCond]
SXAddl_SXCQuery_SXDEnd
SXADDLQSI = SXAddl_SXCQsi_SXDId SXADDLDBQUERY *UNKNOWNFRT SXAddl_SXCQsi_SXDEnd
The view-level block opens with its Id and closes with its End; inside it come the optional
version records, then the calculated members, the hierarchies (each with its group levels and
groups), the fields (the Excel 2002 field and the Excel 2007 field with its auto-show, sort and
member-caption records), the table style, compact headers, conditional formats and filters.
The query-table rules (SXADDLQSI) belong to the worksheet’s QUERYTABLE
(pivot order).
Bit fields of the larger records
Each record starts with the 6-byte SXAddlHdr (sxc, sxd, length). The flag bits
below are in the order [MS-XLS] lists them, lowest bit first; widths are in bits.
| Record (sxc, sxd) | Fields after the header |
|---|---|
| SXCView_SXDVer10Info (0x00, 0x02) 2.4.273.108 | bVerSxMacro (1 byte); then 32 bits: fDisplayImmediateItems 1, fEnableDataEd 1, fDisableFList 1, fReenterOnLoadOnce 1, fNotViewCalculatedMembers 1, fNotVisualTotals 1, fPageMultipleItemLabel 1, fTensorFillCv 1, fHideDDData 1, reserved 3, unused 12 (the bVerSxMacro byte and these 24 bits make the 4 bytes after the header); then reserved2 (2 bytes). |
| SXCView_SXDVer12Info (0x00, 0x19) 2.4.273.109 | fDefaultCompact, fDefaultOutline, fOutlineData, fCompactData, fNewDropZones, fPublished, fTurnOffImmersive, fSingleFilterPerField, fNonDefaultSortInFlist (1 bit each), reserved 1, fDontUseCustomLists 1, reserved 9; then fHideDrillIndicators, fPrintDrillIndicators, fMemPropsInTips, fNoPivotTips (1 bit each), cIndentInc 7, fNoHeaders 1, reserved3 (2 bytes). |
| SXCView_SXDTableStyleClient (0x00, 0x1E) 2.4.273.107 | reserved 6 bytes; unused 1, fLastColumn, fRowStrips, fColumnStrips, fRowHeaders, fColumnHeaders, fDefaultStyle (1 bit each), reserved 9; stName (LPWideString, 1 to 255 characters). |
| SXCCache_SXDVer10Info (0x03, 0x02) 2.4.273.9 | reserved 6 bytes; citmGhostMax (4 bytes, signed, -1 to 1048576); bVerCacheLastRefresh (1 byte); bVerCacheRefreshableMin (1 byte); numDateCopy (8 bytes, DateAsNum); reserved 2 bytes. |
| SXCCache_SXDVerSXMacro (0x03, 0x18) 2.4.273.10 | dwVer (1 byte, the data functionality level the cache was created with); reserved 1 byte, 2 bytes and 2 bytes. |
| SXCGroup_SXDGrpInfo (0x08, 0x07) 2.4.273.36 | unused 1, reserved 2, unused 1, fHasNoParent 1, reserved 27; reserved 2 bytes; stUniqueName and stCaption (XLUnicodeString, at most 255 characters each); stParentUniqueName (present only when fHasNoParent is 0); iGroupNum (4 bytes, signed, greater than zero). |
This is a transcription of the spec’s field lists and diagrams. These layouts have not been checked against a real file.
Source
[MS-XLS] Excel Binary File Format (.xls) Structure, v20250819: 2.1.7.20.5 and 2.1.7.20.6 (the record order), 2.2.5.1.1 (the classes), 2.4.273 (the 110 SXAddl record sections, 2.4.273.1 to 2.4.273.110), 2.5.250 to 2.5.253. The sections were read from a text extract of the PDF; the sxc and sxd values come from each section’s header statement. SXCView_SXDCalcMember, SXCSXFilter12_SXDSXFilter, SXDXlsFilter and the structures under them were transcribed in round 21 from 2.4.273.79 to 2.4.273.88, 2.4.273.100, 2.4.273.101 and 2.5.38, 2.5.81, 2.5.204, 2.5.255, 2.5.256, 2.5.269, 2.5.291, 2.5.292; not checked against a real file (none in the corpus has these records). The strings’ framing (XLUnicodeStringSegmentedSXAddl, 2.5.299) is in the string framing paragraph.
Divergence from the specification
None found: the programs read do not decode SXAddl records. SheetJS lists SXAddl
(0x0864) and SXAddl12 (0x0881) in its record table with no
handler (xlsx.flow.js lines 20974 and 21181); xlrd has no handler.
Key programs
- Excel – the producer; not available here.