-
-
Notifications
You must be signed in to change notification settings - Fork 227
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
Table formulas are broken! Simple subtraction no longer works #1551
Labels
Comments
stevencohn
added a commit
that referenced
this issue
Aug 17, 2024
stevencohn
added a commit
that referenced
this issue
Sep 22, 2024
Merged
weissm
pushed a commit
to weissm/OneMore
that referenced
this issue
Sep 23, 2024
* Add cell, tablecols, tablerows functions stevencohn#1551 * math function * new calculator stevencohn#1551 * trasnlate error messages * translations * translations
weissm
pushed a commit
to weissm/OneMore
that referenced
this issue
Sep 23, 2024
* Add cell, tablecols, tablerows functions stevencohn#1551 * math function * new calculator stevencohn#1551 * trasnlate error messages * translations * translations
weissm
pushed a commit
to weissm/OneMore
that referenced
this issue
Sep 23, 2024
* Add cell, tablecols, tablerows functions stevencohn#1551 * math function * new calculator stevencohn#1551 * trasnlate error messages * translations * translations
weissm
pushed a commit
to weissm/OneMore
that referenced
this issue
Sep 23, 2024
* Add cell, tablecols, tablerows functions stevencohn#1551 * math function * new calculator stevencohn#1551 * trasnlate error messages * translations * translations
weissm
pushed a commit
to weissm/OneMore
that referenced
this issue
Sep 23, 2024
* Add cell, tablecols, tablerows functions stevencohn#1551 * math function * new calculator stevencohn#1551 * trasnlate error messages * translations * translations
weissm
pushed a commit
to weissm/OneMore
that referenced
this issue
Sep 23, 2024
* Add cell, tablecols, tablerows functions stevencohn#1551 * math function * new calculator stevencohn#1551 * trasnlate error messages * translations * translations
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
Problem to Solve
Oh! The shame!! Relative cell references breaks simple subtraction.
From a user:
To Reproduce
Workaround
Add spaces before and after the minus sign. For example, change
A1-A2
toA1 - A2
Proposed Solution
Relative cell references will be replaced by a new function,
cell()
, and two variables,tablerows
andtablecols
. While the next release will break the relative cell reference feature, the new functions will be much more powerful, allowing both column offset and row offset, as well as forward looking relative references. The full syntax of the cell function will becell(colOffset, rowOffset)
Offsets are always relative to the current cell, i.e.,
0,0
refers to the current cell. Both positive and negative offsets are allowed.Examples
To add a reverse-looking summary cell to the bottom of a table, something like
sum(A1,cell(0,-1))
will total all cells in the column from the first row (A1), down to the row just prior to the formula cell.To add a forward-looking summary cell to the top of a table in cell A1, something like
sum(A2, cell(0, tablerows-1))
will total all cells in the column from the second row (A2), down to the cell in the last row of the table; note that rowOffset parameter still needs to be expressed as an offset from the current cell, hencetablerows-1
.The text was updated successfully, but these errors were encountered: