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

“用一个forked handsontable/formula-parser 来处理公式计算。”公式引擎Bug较多! #552

Closed
wangxiya opened this issue May 31, 2024 · 8 comments

Comments

@wangxiya
Copy link

wangxiya commented May 31, 2024

举例:if(a=0,0,b/a)会提示错误,因为引擎会先计算b/a,然后将值传入。

@wangxiya wangxiya changed the title “用一个forked handsontable/formula-parser 来处理公式计算。”为什么这么处理,现在公式计算有很多错误! “用一个forked handsontable/formula-parser 来处理公式计算。”公式引擎Bug较多! May 31, 2024
@sanchit3008
Copy link
Collaborator

Hi, thanks for submitting. Would it be possible for you to verify if these bugs still exist in the latest formula.js version? We could plan an upgrade if that is the case.

@october-rain
Copy link

举例:if(a=0,0,b/a)会提示错误,因为引擎会先计算b/a,然后将值传入。

老哥,你项目里,针对现在公式的bug,是通过引入 handsontable/formula-parser 来解决的吗?

@alonesmall
Copy link

举例:if(a=0,0,b/a)会提示错误,因为引擎会先计算b/a,然后将值传入。

老哥,你项目里,针对现在公式的bug,是通过引入 handsontable/formula-parser 来解决的吗?

他说的是这个项目用的这个插件有bug。
image

@sanchit3008
Copy link
Collaborator

@Corbe30 lets explore https://www.npmjs.com/package/hyperformula/v/2.0.1 sometime

@Renkiee
Copy link

Renkiee commented Dec 6, 2024

是的,这个公式引擎bug较多,应该怎么解决

@sanchit3008
Copy link
Collaborator

@Renkiee can you please list some of them?

@Renkiee
Copy link

Renkiee commented Dec 7, 2024

  1. =IF(A1="","","YES")。这种写法会无法获取是否为空
  2. =IF(A1,B1 * B2,B3 * B4)。当A1有值,且B1 B2 B3都有值的情况下。但是B4没有值,会出现#VALUE!。
    我希望在满足对应的情况,再去执行对应的逻辑分支。不要在一开始全部校验,对于空的单元格去做运算我希望空单元格的值可以为0. 例如LuckySheet and univer在公式上面的实现就很还原excel。我希望能尽快实现,因为我的网站急需这个功能

@Corbe30
Copy link
Contributor

Corbe30 commented Jan 20, 2025

Hi all, these issues are now fixed in v1.0.0!
@wangxiya @Renkiee @october-rain @alonesmall

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

6 participants