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

R1C1 Ranges don't parse properly #188

Open
CameronPattersonWTW opened this issue Jul 5, 2024 · 0 comments
Open

R1C1 Ranges don't parse properly #188

CameronPattersonWTW opened this issue Jul 5, 2024 · 0 comments

Comments

@CameronPattersonWTW
Copy link

The formula
=R[1]C[1]:R[2]C[2]

Does not parse properly. According to the viewer, the inner ':' is processed first resulting in this parse tree:

parsetree

We can force it to parse correctly by adding parenthesis around each reference
=(R[1]C[1]):(R[2]C[2])

parsetree (1)

However excel does not require the parenthesis to know how to interpret this correctly

Also, the R[1]C[1] Style formulas are considered as the intersection of two ranges, rather than a reference that resolve's to a single cell. If you change back to A1 formulas this is resolved properly as a single cell. These issues are likely related to how R1C1 formulas are handled in the grammar

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

No branches or pull requests

1 participant