This page follows [MS-XLSX] v20261118 (Excel extensions to the Office Open XML SpreadsheetML file format), sections 2.1 (parts), 2.2 (namespaces and extension lists), 2.4 and 2.6 (elements and types) and 2.7 (simple types), and ECMA-376 5th edition Part 1 18.2.7 and 18.2.10. Where [MS-XLSX] says MUST or MUST NOT, this page says “must”; the section number is given. It is an index to Excel’s additions and describes element by element sparklines, the conditional formatting and data validation extensions, slicers, timelines, rich data and query tables; the pivot extensions are on the Pivot tables page, and the remaining extensions are listed with the part that holds them.
How extensions are stored
- An extension list is an
extLstelement at a predefined place (18.2.10). It holds any number ofextelements, in any order. Eachexthas a requireduri(a token that names and versions the extension, in practice a GUID in braces) and any content (schemaCT_Extension: one wildcard element). - A reader that does not understand an extension must keep it, and a writer must write it back
whole, unless an ancestor of the list is discarded (18.2.7). Namespaces used inside an
extneed not be listed inmc:Ignorable. - [MS-XLSX] 2.2.4: to stay readable by programs that know only ECMA-376, Excel uses one of three
mechanisms: the
Ignorableattribute (for added attributes such asdyDescentonrowandsheetFormatPr, andknownFontsonfont), anmc:AlternateContentelement (aChoicein an Excel namespace with aFallbackholding the standard form), or anextLst. - 2.2.1: the global elements
f,refandsqref(namespacehttp://schemas.microsoft.com/office/excel/2006/main, prefixxm) hold cell references and formulas; when they sit inside anextthat the program does not understand it can still adjust the references when the sheet layout changes (rows or columns inserted or removed). A program that preserves unknown extensions should do the same.
Namespaces
| Namespace | Used for |
|---|---|
http://schemas.microsoft.com/office/spreadsheetml/2009/9/main (x14 in the schemas) | most Excel 2010 extensions: conditional formatting, data validation, sparklines, slicers, pivot extensions, workbook properties, protected ranges, ignored errors |
http://schemas.microsoft.com/office/spreadsheetml/2010/11/main | later extensions (section 5.3 of the specification) |
http://schemas.microsoft.com/office/spreadsheetml/2009/9/ac | section 5.5 of the specification (attribute extensions) |
http://schemas.microsoft.com/office/excel/2006/main (xm) | the shared f, ref, sqref elements |
http://schemas.microsoft.com/office/drawingml/2010/slicer | the slicer graphic in a drawing |
http://schemas.microsoft.com/office/drawing/2012/timeslicer | the timeline graphic in a drawing |
Extension URIs by place
From [MS-XLSX] 2.2.4. Each row is the uri of an ext in the
extLst of the named element, and the element it holds. Nothing else in this list is
known to be defined by the specification; a URI not listed here is not documented there.
In the extLst of | uri | Holds |
|---|---|---|
worksheet (2.2.4.12) | {78C0D931-6437-407D-A8EE-F0AAD7539E65} | conditionalFormattings |
{CCE6A557-97BC-4B89-ADB6-D9C93CAAB3DF} | dataValidations | |
{05C60535-1F16-4FD2-B633-F4F36F0B64E0} | sparklineGroups | |
{A8765BA9-456A-4DAB-B4F3-ACF838C121DE} | slicerList | |
{FC87AEE6-9EDD-4A0A-B7FB-166176984837} | protectedRanges | |
{01252117-D84E-4E92-8308-4BE1C098FCBB} | ignoredErrors | |
{F7C9EE02-42E1-4005-9D12-6889AFFD525C} | webExtensions | |
{7E03D99C-DC04-49d9-9315-930204A7B6E9} | timelineRefs | |
cfRule | {B025F937-C7B1-47D3-B67F-A62EFF666E3E} | id |
sortState (worksheet) | {0FC57C36-975A-43D2-8416-536B9B585D1B} | richSortCondition |
filterColumn (worksheet) | {68452572-C921-441B-96FD-77FB3E787301} | filterColumn |
workbook (2.2.4.11) | {876F7934-8845-4945-9796-88D515C7AA90} | pivotCaches |
{BBE1A952-AA13-448E-AADC-164F8A28A991} | slicerCaches | |
{79F54976-1DA5-4618-B147-4CDE4B953A38} | workbookPr | |
{841E416B-1EF1-43b6-AB56-02D37102CBD5} | pivotCaches | |
{983426D0-5260-488c-9760-48F4B6AC55F4} | pivotTableReferences | |
{A2CB5862-8E78-49c6-8D9D-AF26E26ADB89} | timelineCachePivotCaches | |
{D0CA8CA8-9F24-4464-BF8E-62219DCF47F9} | timelineCacheRefs | |
{140A7094-0E35-4892-8432-C4D2E57EDEB5} | workbookPr | |
{FCE2AD5D-F65C-4FA6-A056-5C36A1767C68} | dataModel | |
{B58B0392-4F1F-4190-BB64-5DF3571DCE5F} | calcFeatures | |
{FCE6A71B-6B00-49CD-AB44-F6B1AE7CDE65} | externalLinkPr | |
{FA53438D-04C0-449E-B49E-183307DE486D} | externalCodeService | |
{D14903EA-33C4-47F7-8F05-3474C54BE107} | version | |
{197E6ECD-B69A-414C-8033-1280256DF6DC} | externalCodeServiceImageAsInput | |
dataModel (workbook) | {9835A34E-60A6-4A7C-AAB8-D5F71C897F49} | ModelTimeGroupings |
styleSheet (2.2.4.9) | {EB79DEF2-80B8-43E5-95BD-54CBDDF9020C} | slicerStyles |
{46F421CA-312F-682F-3DD2-61675219B42D} | dxfs | |
{9260A510-F301-46a8-8635-F512D64BE5F5} | timelineStyles | |
{A0A4C193-F2C1-4fcb-8827-314CF55A85BB} | dxfs | |
xf in cellXfs | {C7286773-470A-42A8-94C5-96B5CB345126} | xfComplementExt |
dxf in dxfs | {0417FA29-78FA-4A13-93AC-8FF0FAFDF519} | DXFComplementExt |
table (2.2.4.10) | {504A1906-F514-4F6F-8877-14C23A59335A} | table |
queryTable (2.2.4.7) | {883FBD77-0823-4A55-B5E3-86C4891E6966} | queryTable |
connection (2.2.4.1) | {D79990A0-CA42-45E3-83F4-45C500A0EAA5}, {DE250136-89BD-433C-8126-D09CA5730AF9} | connection |
futureMetadata (2.2.4.4; name must match) | {3E2802C4-A4D2-4D8B-9148-E3BE6C30E623} (name XLRICHVALUE){BDBB8CDC-FA1E-496E-A857-3C3F30C029C3} (name XLDAPR) | rvbdynamicArrayProperties |
pivotTableDefinition (2.2.4.5) | {962EF5D1-5CA2-4C93-8EF4-DBF5C05439D2}, {44433962-1CF7-4059-B4EE-95C3D5FFCF73}, {C510F80B-63DE-4267-81D5-13C33094786E}, {E67621CE-5B39-4880-91FE-76760E9C1902}, {747A6164-185A-40DC-8AA5-F01512510D54} | pivotTableDefinition, pivotTableData, pivotTableServerFormats, pivotTableUISettings, pivotTableDefinition16 |
pivotField, dataField, pivotHierarchy, pivot filter | {2946ED86-A175-432A-8AC1-64E0C546D7DE}; {E15A36E0-9728-4E99-A89B-3F7291B0FE68}; {F1805F06-0CD304483-9156-8803C3D141DF} (printed so, not a valid GUID); {0605FD5F-26C8-4aeb-8148-2DB25E43C511} | pivotField; dataField; pivotHierarchy; pivotFilter |
pivotCacheDefinition (2.2.4.6) | {725AE2AE-9491-48BE-B2B4-4EB974FC3084}, {5DA0FC9A-693D-419c-AD59-312A39285967}, {ABF5C744-AB39-4b91-8756-CFA1BBC848D5} | pivotCacheDefinition, timelinePivotCacheDefinition, pivotCacheIdVersion |
cacheField, cacheHierarchy, calculatedMember, cacheSource | {63CAB8AC-B538-458D-9797-405883B0398D}, {4F2E5C28-24EA-4EB8-9CBF-B6C8F9C3D259}; {8CF416AD-EC4C-4ABA-99F5-12A058AE0983}, {B97F6D7D-B522-45F9-BDA1-12C45D357490}; {0C70D0D5-359C-4A49-802D-23BBF952B5CE}, {57DEB092-E4DC-418E-9C9A-C0C97F8552CB}; {F057638F-6D5F-4E77-A914-E7F072B9BCA8} | cacheField, cachedUniqueNames; cacheHierarchy; calculatedMember; sourceConnection |
slicerCacheDefinition (2.2.4.8) | {03082B11-2C62-411c-B77F-237D8FCFBE4C}, {2F2917AC-EB37-4324-AD4E-5DD8C200BD13}, {470722E0-AACD-4C17-9CDC-17EF765DBC7E} | slicerCachePivotTables, tableSlicerCache, slicerCacheHideItemsWithNoData |
Alternate content
- Drawings (2.2.4.2):
oneCellAnchor,twoCellAnchor,absoluteAnchorandgrpSpmay contain anmc:AlternateContentwhoseChoice(namespace.../drawingml/2010/slicer) holds aslicerand whoseFallbackholds ansp(a plain shape). - External references (2.2.4.3): in
oleItems, aChoicein the2009/9/mainnamespace holds an extendedoleItem; the fallback is the standardoleItem. - Filters and sorts (2.2.4.5, 2.2.4.7, 2.2.4.10, 2.2.4.12): in
filterColumnaChoiceholdsiconFilter(fallbackcustomFilters), or an extendedcustomFilters(fallback the standard one or nothing), orfilterswith extendedfilterchildren (fallbackcustomFilters); infiltersthe extendedfilter(fallback the standard one or nothing); insortStatean extendedsortCondition(fallback the standard one).
Parts added by Excel
All from [MS-XLSX] 2.1. “Implicit” and “explicit” are the package relationship kinds of the standard (an implicit relationship has no id in the source part).
| Part | Content type | Root element | Reached from |
|---|---|---|---|
| Control properties (2.1.1) | application/vnd.ms-excel.controlproperties+xml | formControlPr | explicit, from a control; the control must not also have an embedded control persistence part |
| Custom data (2.1.2) | application/binary | user binary data for add-ins | implicit, from the custom data properties part (at most one) |
| Custom data properties (2.1.3) | application/vnd.openxmlformats-officedocument.customDataProperties+xml | datastoreItem | implicit, from the workbook |
| Slicer cache (2.1.4) | application/vnd.ms-excel.slicerCache+xml | slicerCacheDefinition | explicit, from the workbook, one per slicer cache reference |
| Slicers (2.1.5) | application/vnd.ms-excel.slicer+xml | slicers | explicit, from a worksheet |
| Data model (2.1.6) | application/vnd.openxmlformats-officedocument.model+data | binary, specified in [MS-XLDM] | the dataModel extension of the workbook |
| Timeline cache (2.1.7) | application/vnd.ms-excel.TimelineCache+xml | timelineCacheDefinition | explicit, from the workbook |
| Timelines (2.1.8) | application/vnd.ms-excel.Timeline+xml | timelines | explicit, from a worksheet |
| Survey (2.1.9) | application/vnd.ms-excel.Survey+xml | survey | source relationship type http://schemas.microsoft.com/office/2010/relationships/Survey (2.1.9); the survey belongs to a table (2.4.69), but the specification gives no source part and does not say whether the relationship is explicit or implicit |
| Rich value data (2.1.10) | application/vnd.ms-excel.rdRichValue+xml | rvData | implicit, from the metadata part; needs the structure part |
| Rich value structure (2.1.11) | application/vnd.ms-excel.rdRichValueStructure+xml | rvStructures | implicit, from the rich value data part |
| Rich value array (2.1.12) | application/vnd.ms-excel.rdArray+xml | arrayData | implicit, from the rich value data part |
| Rich styles (2.1.13) | application/vnd.ms-excel.richStyles+xml | richStyleSheet | implicit, from the supporting property bag data part |
| Supporting property bag data (2.1.14) | application/vnd.ms-excel.rdSupportingPropertyBag+xml | supportingPropertyBags | implicit, from the rich value data part |
| Supporting property bag structure (2.1.15) | application/vnd.ms-excel.rdSupportingPropertyBagStructure+xml | spbStructures | implicit, from the supporting property bag part |
| Rich value types (2.1.16) | application/vnd.ms-excel.rdRichValuetypes+xml | rvTypesInfo | implicit, from the rich value structure part (may) |
| Threaded comments (2.1.17) | application/vnd.ms-excel.threadedcomments+xml | ThreadedComments | implicit, from a worksheet |
| Persons (2.1.18) | application/vnd.ms-excel.person+xml | personList | implicit, from the workbook |
| Named sheet views (2.1.19) | application/vnd.ms-excel.namedsheetviews+xml | namedSheetViews | implicit, from a worksheet |
| Web image supporting rich data (2.1.20) | application/vnd.ms-excel.rdrichvaluewebimage+xml | webImagesSrd | implicit, from the rich value data part |
| Rich value rels (2.1.21) | application/vnd.ms-excel.richvaluerel+xml | richValueRels | implicit, from the rich value data part |
| Feature property bag (2.1.22) | application/vnd.ms-excel.featurepropertybag+xml | FeaturePropertyBags | source relationship type http://schemas.microsoft.com/office/2022/11/relationships/FeaturePropertyBag (2.1.22); implicit: an xf with an xfComplement (2.4.99), and a differential format with a DXFComplement (2.4.103), have an implicit relationship to a feature property bag, and the part must then be in the package; the specification names no source part with an explicit relationship |
| Python (2.1.23) | application/vnd.ms-excel.python+xml | python | implicit, from the PY function in a worksheet |
The source relationship type of each part is under its heading in the specification (the 2007 to 2023
Microsoft namespaces and http://schemas.openxmlformats.org/officeDocument/2006/relationships/
for control properties, custom data and custom data properties). The rich value parts depend on one
another: a rich value data part requires a rich value structure part, and the others add to those
(2.1.10 to 2.1.16, 2.1.20, 2.1.21).
The data model part
The workbook data model (Power Pivot) is a binary part whose format is in [MS-XLDM], not described
in [MS-XLSX]; [MS-XLSX] 2.1.6 adds only annotations in the model: measures get optional
Type (Implicit or Explicit), Name,
Table, Column, Aggregation (SUM,
MAX, COUNTA, AVERAGE, STDEV.S,
STDEV.P, VAR.S, DISTINCTCOUNT, written
AGGREGATION(TABLENAME.COLUMNNAME)) and Application; a column of a tabular
dimension gets ShortColumnId. The viewer lists the part and does not open the model.
Sparklines
Sparklines are held in the sparklineGroups element (namespace
2009/9/main) inside the worksheet extension
{05C60535-1F16-4FD2-B633-F4F36F0B64E0} (2.4.8, 2.6.6 to 2.6.9, 2.7.3 to 2.7.5). There
must be fewer than 231 groups, and fewer than 231 sparklines in a group.
sparklineGroup children in order, each optional except sparklines:
colorSeries, colorNegative, colorAxis,
colorMarkers, colorFirst, colorLast, colorHigh,
colorLow (each a spreadsheet colour whose auto attribute must not be
present), xm:f (the date range when dateAxis is on: one row or one column
of one sheet, or a name) and sparklines. Each sparkline has
xm:f (its data: one row or one column of a single sheet, or a name) and
xm:sqref (the cell it is drawn in, exactly one cell).
| Attribute | Type, default | Meaning |
|---|---|---|
type | line, column, stacked; line | line, column, or 100% stacked column (win/loss) sparklines |
lineWeight | double, 0.75 | line weight in points, from 0 to 1584 |
manualMax, manualMin | double | the shared vertical axis limits; only allowed when maxAxisType or minAxisType is custom |
minAxisType, maxAxisType | individual, group, custom; individual | each sparkline has its own limit; one limit shared across the group, computed; or the manual value |
dateAxis | Boolean, false | use a date axis (spacing by the dates in xm:f of the group) |
displayEmptyCellsAs | span (interpolated), gap (not plotted), zero; zero | how blank cells are plotted |
markers, high, low, first, last, negative | Boolean, false | show markers; colour the highest, lowest, first, last and negative points |
displayXAxis, displayHidden, rightToLeft | Boolean, false | draw the horizontal axis; plot data in hidden cells; draw right to left |
xr2:uid | GUID | unique id of the group; if one group has it all must, and they must differ |
Conditional formatting and data validation (2009/9 namespace)
Excel 2010 repeats the standard rule elements in the namespace
http://schemas.microsoft.com/office/spreadsheetml/2009/9/main, inside the worksheet
extensions for conditionalFormattings (2.4.6) and dataValidations (2.4.7),
with cell ranges written as xm:sqref and formulas as xm:f ([MS-XLSX]
2.6.1 to 2.6.5, 2.6.26 to 2.6.30, 2.6.36, 2.7.7 to 2.7.10). What follows is the content of those
types, element by element.
CT_ConditionalFormatting (2.6.2)
Children in order: cfRule (0 or more, CT_CfRule), xm:sqref (the range; 0 or 1)
and extLst. Attribute pivot (Boolean, false): true when the range holds only
cells of the data area of a pivot table. conditionalFormattings (2.6.1) holds one or more of
these.
CT_CfRule (2.6.27)
Children in order: xm:f (0 to 3), colorScale, dataBar,
iconSet, dxf and extLst.
- Formulas may not use the range operator between sheets, a workbook prefix, a local
cell reference, a bang reference or name, an array constant, a sheet range reference or a structure
reference, and may not be a plain area of one sheet. For
cellIsthey are the operands ofoperator(two forbetweenandnotBetween, otherwise one); forexpressionand the text, blank and error types a formula that returns zero hides the format and a non-zero value shows it; forcolorScale,dataBarandiconSetthe same, and the format shows when the formula is absent. dxf(differential format) must not be present forcolorScale,dataBaroriconSet, nor whenpriorityis absent.colorScale,dataBarandiconSetchildren exist if and only iftypehas that value.
| Attribute | Type, default | Meaning and rules |
|---|---|---|
type | ST_CfType | how the format is shown |
priority | int, over 0 | rules apply from the smallest to the largest value; no value may repeat in the sheet part. When absent, the rule only carries extension information for a data bar of the standard rule with the same id; its dataBar child must exist; if id matches no rule, the record and its dataBar are ignored. When priority is present, id is ignored. |
stopIfTrue | Boolean, false | skip the lower-priority rules for a cell when this rule is true |
aboveAverage | Boolean, true | above or below average; only with type aboveAverage |
equalAverage | Boolean, false | with aboveAverage: true and true means equal to or above the average, true and false equal to or below; false and true means above the average plus stdDev standard deviations, false and false below the average minus stdDev standard deviations (the specification’s wording) |
stdDev | int | standard deviations from the average; only with type aboveAverage and equalAverage false |
percent, bottom | Boolean, false | only with type top10: rank is a percentage; the bottom end of the range instead of the top |
rank | unsignedInt | only with top10: 0 to 100 when percent is true, otherwise 1 to 1,000 |
operator | ST_ConditionalFormattingOperator | only with cellIs |
text | string | only with beginsWith, containsText, endsWith, notContainsText |
timePeriod | ST_TimePeriod | only with timePeriod |
activePresent | Boolean, false | must be true if and only if a formula is present and type is colorScale, dataBar or iconSet |
id | GUID | identifies the rule; matches a rule without priority to the standard one. If neither priority nor id exists the rule and its data bar are ignored |
CT_Cfvo (2.6.26) and ST_CfvoType (2.7.9)
A value object with an optional xm:f and extLst; attribute type
(required) and gte (Boolean, true; only on the children of an icon set: greater-than-or-equal
when true, greater-than when false). X is the formula value, or 0 when xm:f is absent.
| type | Value |
|---|---|
num | X |
percent | the minimum plus X percent of the difference between the maximum and minimum of the range (with minimum 1, maximum 10 and X 10 the value is 1.9) |
percentile | the minimum value of the cell that is in the X percentile of the range |
max, min | the maximum, minimum of the range (no xm:f) |
formula | X; if the formula is only a numeric constant it is ignored and X is 0 |
autoMin | the smaller of zero and the minimum of the range |
autoMax | the larger of zero and the maximum of the range |
Limits by parent: the first of a colour scale is not max, the last not min,
the middle neither; the first of a data bar is not max or autoMax, the second
not min or autoMin; autoMin and autoMax belong only
to data bars; a child of an icon set is not max or min. The formula is
absolute (no relative column or row).
CT_ColorScale (2.6.29)
Two or three cfvo and the same number of color: the first is the start, the
middle (if three) the midpoint, the last the end of the scale.
CT_DataBar (2.6.30)
Children in order: cfvo (exactly 2: minimum and maximum length), fillColor,
borderColor, negativeFillColor, negativeBorderColor,
axisColor. Existence rules: fillColor if and only if the parent rule has
priority; borderColor if and only if border is true;
negativeFillColor if and only if negativeBarColorSameAsPositive is false;
negativeBorderColor if and only if negativeBarBorderColorSameAsPositive is false
and border is true; axisColor if and only if axisPosition is not
none. The cfvo of the standard rule are ignored when the extension rule with the
same id exists.
| Attribute | Type, default | Meaning |
|---|---|---|
minLength | unsignedInt, 10 | shortest bar as a percentage of the cell width; 0 up to maxLength. When the standard rule has 0 and 100, the extension rule must hold 10 and 90 (and the reverse: otherwise the two must be equal) |
maxLength | unsignedInt, 90 | longest bar as a percentage; minLength to 100 |
showValue | Boolean, true | bar and number, or bar only |
border | Boolean, false | the bar has a border |
gradient | Boolean, true | gradient fill, or solid |
direction | context, leftToRight, rightToLeft; context | direction of the bar (2.7.7) |
negativeBarColorSameAsPositive | Boolean, false | whether the negative bar colour differs from the positive (the specification gives only this description; the existence rule above is the working one) |
negativeBarBorderColorSameAsPositive | Boolean, true | likewise for the border colour |
axisPosition | automatic, middle, none; automatic | axis calculated, at the middle of the cell, or none (2.7.8) |
CT_IconSet (2.6.28) and CT_CfIcon (2.6.36)
An icon set has 3 to 5 cfvo (the schema says 2 or more; the first is ignored) followed by up to
five cfIcon. Attributes: iconSet (ST_IconSetType, default
3TrafficLights1), showValue (true: icon and value), percent
(undefined, ignored), reverse (false; ignored when custom is true) and
custom (false). When custom is true there are as many cfIcon as
cfvo, and they replace the icons of iconSet; when false, none.
cfIcon has two required attributes: iconSet (the set the icon is taken from)
and iconId (the index in that set: at most 2 for a 3-icon set, 3 for 4 icons, 4 for 5
icons, and 0 for NoIcons). ST_IconSetType (2.7.10) values: 3Arrows, 3ArrowsGray, 3Flags,
3TrafficLights1, 3TrafficLights2, 3Signs, 3Symbols, 3Symbols2, 4Arrows, 4ArrowsGray, 4RedToBlack,
4Rating, 4TrafficLights, 5Arrows, 5ArrowsGray, 5Rating, 5Quarters, 3Stars, 3Triangles, 5Boxes,
NoIcons.
CT_DataValidations (2.6.3), CT_DataValidation (2.6.5), CT_DataValidationFormula (2.6.4)
dataValidationsholds at most 65,534dataValidation; attributesdisablePrompts(false: input prompts of the sheet are off when true),xWindowandyWindow(pixel position of the upper-left corner of the prompt against the application window, should not exceed 65,535) andcount.dataValidationchildren:formula1,formula2(each holding onexm:f) andxm:sqref(required, the ranges). With abetweenornotBetweenoperator and a type other thancustom,listornone,formula1is the lesser andformula2the greater bound and both must exist. With any other operator, or typecustom,formula1is the only formula (forlistorcustomit may be replaced by thex12ac:listchild, 2.4.66, which holds the first formula as text when the items need quoting).formula2must not exist then. With typenone, neither exists.- Formulas may not use the range operator between sheets, a local cell reference, a bang reference or name, an
array constant, a sheet range, a
pyorlambdaparameter list or a structure reference. A reference to another workbook is allowed when it is the only one offormula1of alist(any size), and otherwise only to a single cell. - Attributes:
type(none),errorStyle(stop),imeMode(noControl),operator(between; undefined and ignored forcustom,listandnone),allowBlank(false),showDropDown(false; for alist, this specification says true displays the drop-down combo box and false suppresses it; ECMA-376 words the attribute the same way),showInputMessage(false),showErrorMessage(false),errorTitle(at most 32 characters),error(at most 225),promptTitle(at most 32),prompt(at most 255),xr:uid(GUID).
Slicers
A slicer has three parts of data: the slicer view on a worksheet (2.6.67 and 2.6.68, element
slicers in the 2009/9 namespace), the drawing element that places it (2.6.69, namespace
http://schemas.microsoft.com/office/drawing/2010/slicer) and the slicer cache in the workbook
(2.6.70 to 2.6.85, root slicerCacheDefinition).
Slicer view: CT_Slicers and CT_Slicer
slicers holds one or more slicer. Each has an optional extLst and
these attributes:
| Attribute | Type, default | Meaning and rules |
|---|---|---|
name | string, required | 1 to 32,767 characters; unique in the workbook, case-insensitive |
xr10:uid | GUID | if any slicer has it, all must, and the values differ |
cache | string, required | name of the slicer cache; a slicerCacheDefinition with that name must exist in the workbook |
caption | string | at least 1 character if present |
startItem | unsignedInt, 0 | zero-based index of the first item shown |
columnCount | unsignedInt, 1 | 1 to 20,000 |
showCaption | Boolean, true | whether the caption is shown |
level | unsignedInt, 0 | OLAP level of the hierarchy; for OLAP data from 0 to less than the count of the cache’s levels (not 0 when the hierarchy has an All level); must not exist for non-OLAP data |
style | string | name of a slicer style in the workbook or a built-in one: SlicerStyleLight1 to 6, SlicerStyleOther1 and 2, SlicerStyleDark1 to 6 |
lockedPosition | Boolean, false | the view is locked |
rowHeight | unsignedInt, required | row height of the items in EMU |
The drawing element slicer (2.6.69) has one required string attribute name,
which must equal the name of a slicer in the sheet’s slicers,
and an extLst of drawing extensions.
Slicer cache: CT_SlicerCacheDefinition and below
Children in order: pivotTables (CT_SlicerCachePivotTables, 0 or 1), data
(CT_SlicerCacheData, 0 or 1) and extLst. Attributes: name (required; the
defined-name rule of 2.2.2 and unique among defined names, case-insensitive), xr10:uid and
sourceName (required): for non-OLAP data the name of a pivot cache field whose
serverField is false (and the includeNewItemsInFilter of the fields it covers must
be equal), for OLAP data the uniqueName of a cache hierarchy whose measure,
set and measures are false (and whose pivot hierarchy has
includeNewItemsInFilter false).
- CT_SlicerCachePivotTables: one or more
pivotTablewith no duplicates; all the pivot tables must have the sameshowCalcMbrs. EachpivotTable(CT_SlicerCachePivotTable) hastabId(thesheetIdof the sheet that holds the pivot table; ignored for a non-worksheet pivot table) andname(the pivot table; itscreatedVersionmust be 3 or more, andcalculatedMembersInFiltersmust be equal across them). - CT_SlicerCacheData: exactly one of
olap(CT_OlapSlicerCache) ortabular(CT_TabularSlicerCache). - CT_TabularSlicerCache (non-OLAP): children
items(CT_TabularSlicerCacheItems) andextLst; attributespivotCacheId(an existing pivot cache),sortOrder(ascendingordescending, default ascending),customListSort(true: custom lists are used when sorting),showMissing(true: items no longer in the source are shown) andcrossFilter(defaultshowItemsWithDataAtTop).itemshas acountandichildren (CT_TabularSlicerCacheItem):x(index of the item in the pivot cache field; unique, within the pivot cache’s record count),s(selected; at least oneimust be true) andnd(no data; must not exist whencrossFilterisnone). - CT_OlapSlicerCache:
levels(CT_OlapSlicerCacheLevelsData, withcount),selections(CT_OlapSlicerCacheSelections, withcount) andextLst; attributepivotCacheId. Eachlevel(CT_OlapSlicerCacheLevelData) hasranges, and attributesuniqueName(1 to 32,767 characters),sourceCaption(up to 65,535),count(members at the level; 0),sortOrder(natural,ascendingordescending; default natural) andcrossFilter.rangesholdsrange(CT_OlapSlicerCacheRange) withstartItem(0 or a multiple of 1,000) and 1 to 1,000i(CT_OlapSlicerCacheItem:nunique name,ccaption,ndno data, andpparents (CT_OlapSlicerCacheItemParent, attributen), nearest first). Aselection(CT_OlapSlicerCacheSelection) hasnandpparents, leaving out the All member. - ST_SlicerCacheCrossFilter (2.7.21):
none(the “no data” style is not applied and those items are not sorted separately),showItemsWithDataAtTop(style applied, items without data sorted to the bottom) andshowItemsWithNoData(style applied, not sorted separately). - Extensions (2010/11 namespace, 2.6.103 and 2.6.104):
slicerCacheHideItemsWithNoDataholdsslicerCacheOlapLevelNamechildren (uniqueName,countof hidden items). The extensioncacheHierarchy(2.6.102) has one required attributeaggregatedColumn: the index of the cache hierarchy an OLAP measure aggregates, or -1 when the measure is not implicit. - Slicer styles: the table style elements specific to slicers (2.7.13) are
unselectedItemWithData,selectedItemWithData,unselectedItemWithNoData,selectedItemWithNoDataand the fourhovered...variants.
Timelines
Timelines follow the slicer layout in the 2010/11 namespace: the references in the workbook and sheet
(2.6.98 to 2.6.101), the timeline view (2.6.110, 2.6.111), the drawing element (2.6.139, namespace
http://schemas.microsoft.com/office/drawing/2012/timeslicer) and the timeline cache
(2.6.112 to 2.6.116, 2.6.118).
- timelineCacheRefs / timelineCacheRef (workbook): fewer than 231 (as printed in the specification)
timelineCacheRef, each with a requiredr:idto a timeline cache part. timelineRefs / timelineRef (worksheet): exactly onetimelineRefwith a requiredr:idto the part that holds the sheet’s timelines. - CT_Timelines: one or more
timeline(CT_Timeline). Its attributes:name(required, 1 to 32,767 characters, unique in the workbook),xr10:uid,cache(required, the name of a timeline cache),caption(at least 1 character),showHeader,showSelectionLabel,showTimeLevelandshowHorizontalScrollbar(all true by default),level(required: 0 year, 1 quarter, 2 month, 3 day),selectionLevel(required, the same codes: the level at which the selection was made),scrollPosition(dateTime: the start of the visible time span) andstyle(a timeline style of the workbook or TimelineStyleLight1 to 6, TimelineStyleDark1 to 6). The drawing elementtimeslicercarries a requirednameequal to atimelineof the sheet, plusextLst. - CT_TimelineCacheDefinition: children
pivotTables(CT_TimelineCachePivotTables: one or morepivotTable, no duplicates, each withtabId, which is 4294967295 (0xFFFFFFFF) for a non-worksheet pivot table, andname;createdVersion3 or more),state(required),timelinePivotFilterandextLst; attributesname(the defined-name rule, unique),xr10:uidandsourceName(required: the MDX unique name of the key attribute for OLAP data). - CT_TimelineState: children
selection(0 or 1) andbounds(required), both CT_TimelineRange with required dateTime attributesstartDateandendDate; attributessingleRangeFilterState(true: the filter is one contiguous range),minimalRefreshVersion,lastRefreshVersion,pivotCacheId(an existing OLAP pivot cache) andfilterType(required, ST_PivotFilterType). - CT_TimelinePivotFilter: exists only when the state’s
filterTypeis notdateBetween,dateEqualorunknown. OneautoFilterchild; attributesuseWholeDay(false),fld(field index),id(the filter’s id in the pivot table),nameanddescription(each up to 65,535 characters). - timelinePivotCacheDefinition (2.6.109): one attribute
timelineData(false), which must be true if a timeline cache refers to the OLAP pivot cache. - Timeline styles (2.6.105 to 2.6.108):
timelineStyleshas a requireddefaultTimelineStyle(1 to 255 characters) andtimelineStylechildren; each has aname(1 to 255 characters; it must match a user table style of the styles part whosepivotandtableare false) and at most onetimelineStyleElementswithtimelineStyleElementchildren, each with a uniquetypeand an optionaldxfId(index in thedxfsof the extension, 2.4.55). Types (2.7.24):selectionLabel,timeLevel,periodLabel1,periodLabel2,selectedTimeBlock,unselectedTimeBlock,selectedTimeBlockSpace.
Rich data
Rich values are stored in a set of parts that refer to each other by zero-based index. A cell holds a
value-metadata index (rvb, CT_RichValueBlock, one required attribute i: the index
of the rich value); the parts below hold what it points to ([MS-XLSX] 2.4.75 to 2.4.81, 2.4.100,
2.6.157 to 2.6.198, 2.6.216 to 2.6.218, 2.6.241, 2.6.242, 2.7.32 to 2.7.38).
Rich value data (rvData) and structures (rvStructures)
- CT_RichValueStructures (
rvStructures):schildren (CT_RichValueStructure) andextLst; requiredcount(at most 2,147,483,647 and equal to the number ofs). A structure has a requiredt(the name of the rich value type) and one or morekkeys (CT_Key):n(the key name; case-insensitive, unique in the structure, at most 255 characters) andt(the data type of the value, defaultd). - CT_RichValueData (
rvData):rvchildren (CT_RichValue) andextLst; requiredcountequal to the number ofrv. Arvhas a requireds(the index of its structure), an optionalfbfallback (CT_RichValueFallback, text content, attributet, defaultn) and one or morev(CT_Value, text). The nthvbelongs to the nthkof the structure and takes its type from it. A value of typeais the index of a rich array;rthe index of an earlierrv;spbthe index of a supporting property bag. - Value types (ST_RichValueValueType):
dreal,iinteger,bBoolean,eerror,stext,rrich value,arich array,spbsupporting property bag. Fallback types (ST_RichValueFallbackType):b,n,e,s. - Rich arrays (
arrayData, CT_ArrayData):achildren (CT_Array) with requiredcount(at most 2,147,483,647). An array has requiredr(rows, at most 1,048,576), optionalc(columns, 1; at most 16,384) andvchildren (CT_ArrayValue, text witht, defaultd) numberingrorrtimesc. Types (ST_ArrayValueType):d,i,b,e,s,r,a; anaindex points to an earlier array, anrindex to an earlier rich value.
Supporting property bags
- spbStructures (CT_SupportingPropertyBagStructures):
sstructures with one or morekkeys (CT_SupportingPropertyBagKey:n, case-sensitive and unique;t, defaultd, one ofd,i,b,s,spb,spba),extLstand a requiredcount. - supportingPropertyBags (CT_SupportingPropertyBags): optional
spbArrays(CT_SupportingPropertyBagArrayData:count,aarrays each withcountandvvalues of typed,i,b,sorspb, defaultd) and a requiredspbData(CT_SupportingPropertyBagData:count,spbchildren,extLst). Anspbhas a requireds(index of its structure) andvvalues; anspbindex points to an earlier bag,spbato an array.
Types, styles and relationships
- rvTypesInfo (CT_RichValueTypesInfo): optional
global(CT_RichValueGlobalType:keyFlags,extLst),types(typechildren with a requirednameof up to 255 characters,keyFlagsandextLst) andextLst.keyFlagsholds one or morekey(requiredname), each with one or moreflag(requirednameand Booleanvalue): the flags that differ from the defaults for that type or for all types. - richStyleSheet (CT_RichStylesheet): optional
dxfs,richProperties(one or morerPrwith requirednandt:b,n,iors),richStyles(one or morerStywith an optionaldxfidindex into the stylesdxfsandrpvchildren whose requirediis the index of a rich property and whose text is the value) andextLst. - richValueRels (CT_RichValueRels):
relchildren, each with a requiredr:idnaming a relationship of the part, andextLst. The web image properties (webImagesSrd, 2.6.216 to 2.6.218) holdwebImageSrdwithaddress,moreImagesAddressandblip, each with a requiredr:id.
Rich value filters and sorts
These extend the standard autofilter types with an optional key (ST_RichFilterKey, up to
65,535 characters: a key of at most 255 characters, written plainly or as #length#key, and
repeated for nested keys; a key starting with # must use the second form):
CT_RichFilter (val, blank, nodata),
CT_RichFilters (filter, dateGroupItem), CT_RichDateGroupItem
(year, month, day, hour, minute, second, dateTimeGrouping), CT_CustomRichFilter
and CT_CustomRichFilters (and; one or two criteria), CT_DynamicRichFilter
(type, val, maxVal, valIso, maxValIso),
CT_RichTop10 (top, percent, val,
filterVal) and CT_RichSortCondition (richSortKey up to 255 characters, plus the
standard sort condition attributes). Where the dynamic filter needs a range, val or
valIso is the inclusive minimum and maxVal or maxValIso the exclusive
maximum; the quarter and month types need neither.
Query tables
queryTable (2.6.88, 2010/11 namespace) adds three attributes to the query table of the
standard: clipped (Boolean, false: the result did not fit on the sheet and was cut),
sourceDataName (the name of the primary data connection) and drillThrough
(Boolean, false: the table is the result of a drill-through on an OLAP source). It has no children.
The connection side (2.6.91) adds id (required, up to 65,535 characters; empty when
model is true), model (a connection to the data model; the connection
type must be 5), excludeFromRefreshAll, autoDelete and
usedByAddin (all false), and the children textPr and modelTextPr
(type 103), rangePr (102), oledbPr (100) and dataFeedPr (101).
Those four data-model connection children are described by the data model specification and are not
expanded here.
Other extensions in the specification
- Workbook properties (2.6.10):
defaultImageDpi(96, 150 or 220; default 220),discardImageEditData(false),accuracyVersion(should be 0). - Conditional formatting and data validation: described element by element in the section above. The viewer reads these rules into its conditional formatting and data validation tables.
- Pivot, slicer and timeline structures (2.3.1 to 2.3.5): the slicer, timeline, rich data and query table elements are described above (slicers, timelines, rich data, query tables); the pivot ones are on the Pivot tables page.
- Threaded comments (2.3.7), named sheet views (2.3.8), feature property bag (2.3.9), Python in Excel (2.3.10): each is a part of the table above with its own root element.
In the viewer
The viewer lists the uri of every worksheet and workbook extension it meets, reads the
Excel 2010 conditional formatting and data validation extensions into its tables, counts
sparklines per sheet, and lists the extra parts in the Parts tab. It does not draw sparklines.
The slicer, timeline, query table, rich data and data model parts are shown as parts only.
Sources
- [MS-XLSX] v20261118, research/ooxml/ms/MS-XLSX.txt: 2.1 (lines 1374 to 1788), 2.2 (1795 to 1810 and 4072 to 4521), 2.4.3 to 2.4.11 (5953 to 6063), 2.6.1 to 2.6.5 (7385 to 7617), 2.6.6 to 2.6.10 (7618 to 7873), 2.6.26 to 2.6.30 (8429 to 8890), 2.6.67 to 2.6.88 (10324 to 11140), 2.6.98 to 2.6.118 (11396 to 12030), 2.6.139 (12530 to 12557), 2.6.157 to 2.6.198 (13066 to 14144), 2.6.216 to 2.6.218 (14665 to 14733), 2.6.241 to 2.6.242 (15263 to 15300), 2.7.13 (16229 to 16268), 2.7.19 to 2.7.21 (16405 to 16477), 2.7.24 (16530 to 16572), 2.7.32 to 2.7.38 (16784 to 16976), 5.5 (18905 to 18916), 2.6.36 (9165 to 9188), 2.7.7 to 2.7.10 (16004 to 16178), 2.7.3 to 2.7.5 (15905 to 15972)
- ECMA-376 5th edition Part 1 18.2.7 and 18.2.10, and the Transitional
sml.xsd(CT_Extension,CT_ExtensionList) - The viewer code explorer/formats/xlsx/book.js and sheet.js