We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Greetings Oshiro san,
First I'd like to thank you for this great js lib, it's awsome.
I encountered some unexpected results from xlsx-calc. It seem that xlsx-calc does not perform exactly the same as what excel does.
Considering a table like this:
[ ["A"], [""], [""], [""], ]
and a function MIN:
B1=MIN(A2:A4)
Normally in excel, B1 will be 0 if cell A2:A4 is empty, but xlsx-calc cannot handle this. I also find another formulae that behaives weired, LOOKUP.
I created a excel sheet to illustrate this, please find the attached file. TEST1.xlsx
I understand this is not the normal case. But can you provide any suggestions on this to fix it?
Best, Josh
The text was updated successfully, but these errors were encountered:
Kindly consider these two tests:
"use strict"; const XLSX_CALC = require("../src"); const assert = require('assert'); describe('assert.equal', function () { let workbook; function create_workbook() { return { Sheets: { Sheet1: { A1: {}, C3: { v: "", t: "n" }, C4: { v: "", t: "n" }, C5: { v: "", t: "n" }, } } }; } beforeEach(function () { workbook = create_workbook(); }); describe('MIN', function() { it('finds the min in range', function() { workbook.Sheets.Sheet1.A1.f = 'MIN(C3:C5)'; XLSX_CALC(workbook); assert.equal(workbook.Sheets.Sheet1.A1.v, 0); // "" == 0 }); }); });
and this one:
"use strict"; const XLSX_CALC = require("../src"); const assert = require('assert'); describe('assert. strictEqual', function () { let workbook; function create_workbook() { return { Sheets: { Sheet1: { A1: {}, C3: { v: "", t: "n" }, C4: { v: "", t: "n" }, C5: { v: "", t: "n" }, } } }; } beforeEach(function () { workbook = create_workbook(); }); describe('MIN', function() { it('finds the min in range', function() { workbook.Sheets.Sheet1.A1.f = 'MIN(C3:C5)'; XLSX_CALC(workbook); assert.strictEqual(workbook.Sheets.Sheet1.A1.v, 0); // "" === 0 }); }); });
Sorry, something went wrong.
No branches or pull requests
Greetings Oshiro san,
First I'd like to thank you for this great js lib, it's awsome.
I encountered some unexpected results from xlsx-calc. It seem that xlsx-calc does not perform exactly the same as what excel does.
Considering a table like this:
and a function MIN:
Normally in excel, B1 will be 0 if cell A2:A4 is empty, but xlsx-calc cannot handle this. I also find another formulae that behaives weired, LOOKUP.
I created a excel sheet to illustrate this, please find the attached file.
TEST1.xlsx
I understand this is not the normal case. But can you provide any suggestions on this to fix it?
Best,
Josh
The text was updated successfully, but these errors were encountered: