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

rewriting cell addresses in formulas when inserting rows / cells #51

Open
gorn opened this issue Sep 26, 2019 · 1 comment
Open

rewriting cell addresses in formulas when inserting rows / cells #51

gorn opened this issue Sep 26, 2019 · 1 comment

Comments

@gorn
Copy link
Owner

gorn commented Sep 26, 2019

This idea might very well be out of the scope of any gem like this, but I put it here for discussion. Currently the gem touches the original file only as less as necessarry. This for example means, that if I insert a row, all other rows after it are pushed down, but no formulas are influenced. This can possibly lead to unexpected results if any cells contain adresses to other cells. Open/LibreOffice deals with the same thing by implementing very sophisticated rewriting of cell adresses in such cases. It might sound natural to work with it, but I am sure that the logic behind is complex. The question is wheter it is even worth of trying to implement something like this.

Note that if you work with spreadsheets without any formulas, than there is no problem at all. Generally it really depends on how the gem is used. In most cases the formulas are not neededed as the values can be precalculated in ruby and then inserted as value only. I am curious about any opinions regarding this.

@vtamara
Copy link
Contributor

vtamara commented Sep 27, 2019

Sounds useful, given the discussion of #45.

I wonder if DocumentBuilder of OnlyOffice could recalculate https://www.onlyoffice.com/document-builder.aspx ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants