diff --git a/docs/button/excelHtml5.xml b/docs/button/excelHtml5.xml
index d4b9385..f173715 100644
--- a/docs/button/excelHtml5.xml
+++ b/docs/button/excelHtml5.xml
@@ -222,7 +222,7 @@
diff --git a/js/buttons.html5.js b/js/buttons.html5.js
index 26bacdf..a4264fc 100644
--- a/js/buttons.html5.js
+++ b/js/buttons.html5.js
@@ -1348,8 +1348,9 @@ DataTable.ext.buttons.excelHtml5 = {
_sheetname(config) +
'!$A$' +
dataStartRow +
- ':' +
+ ':$' +
createCellPos(data.header.length - 1) +
+ '$' +
dataEndRow
})
);