Skip to content
New issue

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

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

Already on GitHub? # to your account

How to detect merged cell in .xls #25

Closed
simkimsia opened this issue Dec 4, 2017 · 5 comments
Closed

How to detect merged cell in .xls #25

simkimsia opened this issue Dec 4, 2017 · 5 comments

Comments

@simkimsia
Copy link

simkimsia commented Dec 4, 2017

I have a similar situation as in this SO question about reading merged cell values and have it apply to subsequent rows in .xls files https://stackoverflow.com/a/30753988/80353

I wonder if there's a way to do it using pyexcel-xls API without resorting to the answer given in the SO question?

@simkimsia simkimsia changed the title How to read merged cell in .xls How to detect merged cell in .xls Dec 4, 2017
@chfw
Copy link
Member

chfw commented Dec 4, 2017

Pyexcel tried to read the data only without concerning styles. So it won't be possible with existing apis. Could you please share the link to the SO answer?

And for next version , we have plans for writing data with some styles.

@simkimsia
Copy link
Author

Added. Coolness. Thanks

@chfw
Copy link
Member

chfw commented Dec 4, 2017

Thanks for your pledge on Patreon. I will prioritise this issue and see what I can do.

@chfw chfw closed this as completed in 4cea637 Dec 8, 2017
chfw added a commit that referenced this issue Dec 8, 2017
@chfw
Copy link
Member

chfw commented Dec 8, 2017

New flag: detect_merged_cells allows you to spread the same value among all merged cells. But be aware that this may slow down its reading performance.

@simkimsia
Copy link
Author

simkimsia commented Dec 19, 2017

Thanks for this @chfw. The merged cells gave me so much issues that i eventually decided it was easier to simply split the merged cells and then fill them up with the values of the preceding cells instead.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants