diff --git a/lib/xlsx/genxlsx.js b/lib/xlsx/genxlsx.js
index 36ba0129..1dd67fb2 100644
--- a/lib/xlsx/genxlsx.js
+++ b/lib/xlsx/genxlsx.js
@@ -511,8 +511,15 @@ function makeXlsx(genobj, new_type, options, gen_private, type_info) {
} // Endif.
} // End of for loop.
- outString +=
- ''
+ outString += ''
+ if (data.sheet.mergeCells && data.sheet.mergeCells.length > 0) {
+ outString += ''
+ for (var mergeIndex = 0; mergeIndex < data.sheet.mergeCells.length; mergeIndex++) {
+ outString += ''
+ }
+ outString += ''
+ }
+ outString += ''
return outString
}
diff --git a/manual/xlsx/README.md b/manual/xlsx/README.md
index 27ea8d98..5b765ba0 100644
--- a/manual/xlsx/README.md
+++ b/manual/xlsx/README.md
@@ -67,3 +67,12 @@ sheet.data[1] = [];
sheet.data[1][3] = 'abc';
```
+Merge cells:
+
+```js
+sheet.mergeCells = ['A3:E3'];
+// or some
+sheet.mergeCells = ['B4:D4', 'C5:C6'];
+
+```
+