---
title: Merged Cells
sidebar_position: 11
---
File Format Support (click to show)
By default, no cells are merged. Merge metadata is ignored when exporting to a
file format that does not support merge cells.
Formats store the actual contents of a merged cell in the "top-left" corner
(first row and first column of the merge range). Some formats can hold data for
cells that are covered by the merge range.
| Formats | Merge | Covered |
|:----------|:-----:|:-------:|
| XLSX/XLSM | ✔ | ✔ |
| XLSB | ✔ | ✔ |
| XLML | ✔ | ✔ |
| BIFF8 XLS | ✔ | ✔ |
| ODS/FODS | ✔ | ✔ |
| NUMBERS | ✔ | ✔ |
| HTML | ✔ | |
There are multiple representations of merge cells in the NUMBERS file format.
Writers use the simplified `.TST.MergeRegionMapArchive` representation. Parsers
understand the classic form and the modern `.TST.MergeOwnerArchive` form.
SheetJS | supports | merge | cells |
{merges ? merges.map(m => XLSX.utils.encode_range(m)).join("\n") : ""}> ); } ``` [`sheet_to_html`](/docs/api/utilities/html#html-table-output) will generate HTML strings that use `colspan` and `rowspan` for merged ranges:
{csv}); } ```
{JSON.stringify(aoa,2,2)}); } ```