<mergeCells> (Merge Cells)

This collection expresses all the merged cells in the sheet.


This example shows that three ranges are merged. The formatting and content for the merged range is always stored in the top left cell.

  <mergeCell ref="C2:F2"/>
  <mergeCell ref="B19:C20"/>
  <mergeCell ref="E19:G19"/>

Parent Elements


Child Elements


<mergeCell> (Merged Cell)




<count> (Count)

A count of merged cell collections.

The possible values for this attribute are defined by the XML Schema unsignedInt datatype.

The following XML Schema fragment defines the contents of this element:

<complexType name="CT_MergeCells">
	<element name="mergeCell" type="CT_MergeCell" minOccurs="1" maxOccurs="unbounded"/>
	<attribute name="count" type="xsd:unsignedInt" use="optional"/>