-
Notifications
You must be signed in to change notification settings - Fork 19
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
.commit() method breaks some formulas #20
Comments
urpizu
changed the title
.commit() method break some formulas
.commit() method breaks some formulas
Jul 24, 2018
Shall we close this issue now? Since yesterday PR, I don't think it is relevant anymore. |
Woop, nope! This is the only issue we didn't fix with the yesterday PR! Sheetfu keeps breaking formulas when Item.commit() or Table.commit(). I'd keep it so future users can understand and find alternatives to the issue. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Being a formula in a random cell:
=SUM($1:$2)
/=SUM($A:$B)
After commit it's broken to:
=SUM(R1:R2)
/=SUM(C1:C2)
After some research, it's a Google Sheets API issue. While next methods are equivalent...
range.setValue(=R[0]) ~= range.setFormulaR1C1(=R[0])
It looks that
.setValue()
can not recognize next R1C1 pattern, when.setFormulaR1C1()
can:range.setValue(=R1:R2) !== range.setFormulaR1C1(=R1:R2)
I've been able to avoid the issue using the
Item.commitFieldValue(field)
method.The text was updated successfully, but these errors were encountered: