question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[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:closed
  • Created 3 years ago
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
kiba-dcommented, Sep 23, 2020

Thx. But it is the opposite in the code comments

0reactions
alubbecommented, Sep 28, 2020

Thanks!

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found