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

Formula SyntaxError using IF #253

Closed
Vladimir0184 opened this issue Jun 26, 2019 · 4 comments
Closed

Formula SyntaxError using IF #253

Vladimir0184 opened this issue Jun 26, 2019 · 4 comments

Comments

@Vladimir0184
Copy link

Vladimir0184 commented Jun 26, 2019

With a formula using IF, the error "SyntaxError" occurs.
For example, the formula: IF(A1>0, A2/A1,0) will be in error.
And the formula IF (A1>0,A2/A1, 0) will be without error. The difference lies in the presence of a space in front of the zero at the end of the formula for the case of a false condition.

@jingwood
Copy link
Member

I tested the case you mentioned, I can't find any problem. Is there any other stuff that affects the result? It will be helpful if you save your worksheet as .RGF file and upload to here.
image

@Vladimir0184
Copy link
Author

Vladimir0184 commented Jul 3, 2019

Sorry for not answering for so long. I could not save the example in the RGF format, since the erroneous formula is simply not preserved. But I tried to save it in the xlsx format, which I then need to open using ReoGridEditor.
if_formula.xlsx
img1
img2
The difference in the images is the presence of a space in the second image by the leading zero at the end of the formula.

@yamidcelta
Copy link

Nice, that tip works for me, separate the comma with spaces, thank you.

@jingwood
Copy link
Member

jingwood commented Apr 3, 2021

Fixed by #392

@jingwood jingwood closed this as completed Apr 3, 2021
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

3 participants