Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GetRows loops on empty cells but with a style #195

Closed
Bagu3tte opened this issue Mar 13, 2018 · 2 comments
Closed

GetRows loops on empty cells but with a style #195

Bagu3tte opened this issue Mar 13, 2018 · 2 comments
Projects

Comments

@Bagu3tte
Copy link

Hello, I would like to know if there is an alternative function to GetRows that will only return cells with content?

Example:
image

If I do a len(GetRows("sheet1")) on the sheet in example, the len function will return 1048576 instead of 2.

@xuri
Copy link
Member

xuri commented Mar 16, 2018

Thanks for your issue. Could you tell me which version of Excel that created this file? and please provides file attachments if you can. This lib will check the last XML element of worksheet inner the xlsx file when you call the function GetRows(), then
autofill the entire cell of the worksheet with the empty value.

@Bagu3tte
Copy link
Author

I used Google Sheets and exported to .xlsx.
example.xlsx

@xuri xuri closed this as completed in dea7ba0 Jan 1, 2019
@xuri xuri added this to Resolved issues in v1.4.1 Jan 1, 2019
nullfy pushed a commit to nullfy/excelize that referenced this issue Oct 23, 2020
* qax-os#195: proposed resolution to the issue

* Make GetRows return value avoid empty cell

* Update test file to fix broken testing.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
No open projects
v1.4.1
  
Resolved issues
Development

No branches or pull requests

2 participants