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

Parse Range Intersections Correctly #23

Closed
SheetJSDev opened this issue Jan 27, 2014 · 1 comment
Closed

Parse Range Intersections Correctly #23

SheetJSDev opened this issue Jan 27, 2014 · 1 comment
Labels

Comments

@SheetJSDev
Copy link

Cute website!

You are not properly parsing range intersections:

=SUM((A1:C3 B2:D4))

The formula is evaluated as =SUM((B2:C3))

If you want to see the formula building blocks, consult MS-XLS Ptg* records. XLS files don't store the string version of the formulas, which is why the formula spec is laid out. Relevant code block from js-xls: https://github.com/SheetJS/js-xls/blob/master/bits/68_fparse.js#L114-L337

@joshbtn
Copy link
Owner

joshbtn commented Jan 27, 2014

Looking to make a more useful tool in general. The parsing logic pretty crude and the js conversion is a bit hacked together. I'll take a look! Thanks for the tip

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

No branches or pull requests

2 participants