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

calculateFormula throws #VALUE! error on Array Types #782

Closed
MartinDawson opened this issue Jul 25, 2021 · 2 comments
Closed

calculateFormula throws #VALUE! error on Array Types #782

MartinDawson opened this issue Jul 25, 2021 · 2 comments
Assignees
Labels
Bug Something isn't working

Comments

@MartinDawson
Copy link
Contributor

Description

It should not throw an error but instead return the actual values.

Steps to reproduce

const sheetName = hf.addSheet(state.currentSheet);
const sheetId = hf.getSheetId(sheetName);

// Fill the HyperFormula sheet with data.
hf.setSheetContent(sheetId, [[0, 1]]);
hf.setCellContents(
  { sheet: sheetId, row: 0, col: 2 },
  "=ARRAYFORMULA(ISEVEN(A1:B2*10))"
);

console.log(hf.calculateFormula("=ARRAYFORMULA(ISEVEN(A1:B2*10))", sheetId));

Demo

https://codesandbox.io/s/mutable-glade-ptscz?file=/src/hyperformulaConfig.js

@MartinDawson MartinDawson added the Bug Something isn't working label Jul 25, 2021
@izulin izulin mentioned this issue Jul 31, 2021
7 tasks
@izulin izulin self-assigned this Jul 31, 2021
@izulin
Copy link
Collaborator

izulin commented Aug 2, 2021

Should be fixed on develop branch now.

@wojciechczerniak
Copy link
Contributor

Done in #789

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants