[BUG] Row.actualCellCount and Row.cellCount values are reversed if empty column present
See original GitHub issue🐛 Bug Report
Row.actualCellCount and Row.cellCount are reversed if empty column present Input: A|B|C 1| |1
Lib version: 4.1.1
Steps To Reproduce
const workbook = new Excel.Workbook()
await workbook.xlsx.load(input)
workbook.eachSheet(sheet => {
const row = sheet.getRow(2)
console.log(`columnCount ${sheet.columnCount}`) //columnCount 3
console.log(`actualCellCount ${row.actualCellCount}`) //actualCellCount 2
console.log(`cellCount ${row.cellCount}`) //cellCount 3
})
The expected behaviour:
actualCellCount
must return actual cells count including empty cells, i.e. 3 in described above example
Issue Analytics
- State:
- Created 3 years ago
- Comments:7 (4 by maintainers)
Top Results From Across the Web
Beginner's Guide to exceljs. Handling spreadsheet data in ...
The topic for today is about exceljs, a JavaScript package that acts ... easily iterate all current cells in the column that is...
Read more >Guide to ExcelJS: Excel Workbook Manager - Built In
ExcelJS is a helpful JavaScript package that acts as Excel workbook manager. This guide will help ... Data manipulation on rows and columns....
Read more >exceljs - npm.io
A count of the number of rows that have values. If a mid-document row is empty, it will not be included in the...
Read more >exceljs - npm
Reverse engineered from Excel spreadsheet files as a project. ... If a mid-document row is empty, it will not be included in the...
Read more >Count the Number of Used Rows or Columns - VBA Code ...
VBA – Find the Maximum Value For Each Column in a Range ... that occasionally Excel thinks the last row exists somewhere, but...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Thx. But it is the opposite in the code comments
Thanks!